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,20 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getOpenInterest({
category: 'inverse',
symbol: 'BTCUSD',
intervalTime: '5min',
startTime: 1669571100000,
endTime: 1669571400000,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});