21 lines
360 B
JavaScript
21 lines
360 B
JavaScript
const { RestClientV5 } = require('bybit-api');
|
|
|
|
// Create a client
|
|
const client = new RestClientV5({
|
|
testnet: true,
|
|
key: 'XXXXX',
|
|
secret: 'XXXXX',
|
|
});
|
|
|
|
// Cancel P2P advertisement
|
|
client
|
|
.cancelP2PAd({
|
|
itemId: '1899667660027793408',
|
|
})
|
|
.then((response) => {
|
|
console.log(response);
|
|
})
|
|
.catch((error) => {
|
|
console.error(error);
|
|
});
|