feat(): add samples & missing endpoints for spot leverage token and spot margin

This commit is contained in:
tiagosiebler
2023-06-09 14:53:32 +01:00
parent 987b3f81d0
commit 4b7683d5b2
19 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getSpotMarginLoanAccountInfo()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});