feat(): add/update missing v5 market endpoints. add api doc examples for each endpoint.

This commit is contained in:
tiagosiebler
2023-06-07 12:13:25 +01:00
parent 15d5ae00cf
commit 4f563a65a5
21 changed files with 322 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getIndexPriceKline({
category: 'inverse',
symbol: 'BTCUSDZ22',
interval: '1',
start: 1670601600000,
end: 1670608800000,
limit: 2,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});