feat(): Update per release notes as of 17th July, 2024

- added convert endpoints
- added examples for those endpoints
- minor param/response changes based on release notes
This commit is contained in:
Jerko J
2024-07-17 14:16:40 +02:00
parent 17be240141
commit 06476e6dd6
16 changed files with 297 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
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);
});