feat(): added missing API examples

This commit is contained in:
Jerko J
2024-09-06 10:14:02 +02:00
parent 027057105c
commit bc318f0823
7 changed files with 85 additions and 3 deletions

View File

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