feat(v4.0.2): Add full support for P2P trading
This commit is contained in:
23
examples/apidoc/V5/P2P/release-digital-asset.js
Normal file
23
examples/apidoc/V5/P2P/release-digital-asset.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
// Initialize the client with testnet mode
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'YOUR_API_KEY',
|
||||
secret: 'YOUR_API_SECRET',
|
||||
});
|
||||
|
||||
// Example parameters
|
||||
const params = {
|
||||
orderId: '1899736339155943424', // Replace with your order ID
|
||||
};
|
||||
|
||||
// Call the function
|
||||
client
|
||||
.releaseP2POrder(params)
|
||||
.then((response) => {
|
||||
console.log('Response:', response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error:', error);
|
||||
});
|
||||
Reference in New Issue
Block a user