feat(): add samples for account endpoints. Breaking change: getFeeRate takes an object

This commit is contained in:
tiagosiebler
2023-06-09 10:33:00 +01:00
parent 1577764392
commit 6dbbecb9a5
15 changed files with 208 additions and 8 deletions

View File

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