feat(v4.0.2): Add full support for P2P trading
This commit is contained in:
22
examples/apidoc/V5/P2P/get-market-online-ads-list.js
Normal file
22
examples/apidoc/V5/P2P/get-market-online-ads-list.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
// Create a client
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'XXXXX',
|
||||
secret: 'XXXXX',
|
||||
});
|
||||
|
||||
// Get market online ads list
|
||||
client
|
||||
.getP2POnlineAds({
|
||||
tokenId: 'USDT',
|
||||
currencyId: 'USD',
|
||||
side: '0', // 0: buy; 1: sell
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user