- added convert endpoints - added examples for those endpoints - minor param/response changes based on release notes
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
const { RestClientV5 } = require('bybit-api');
|
|
|
|
const client = new RestClientV5({
|
|
testnet: true,
|
|
key: 'apikey',
|
|
secret: 'apisecret',
|
|
});
|
|
|
|
client
|
|
.getConvertStatus({
|
|
quoteTxId: 'quoteTransactionId',
|
|
accountType: 'eb_convert_funding',
|
|
})
|
|
.then((response) => {
|
|
console.log(response);
|
|
})
|
|
.catch((error) => {
|
|
console.error(error);
|
|
});
|