feat(): start adding per-endpoint examples

This commit is contained in:
tiagosiebler
2023-06-07 11:39:59 +01:00
parent d79a09a184
commit af8b3f3e82
13 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { LinearClient } from '../src/index';
// or
// import { LinearClient } from 'bybit-api';
const client = new LinearClient();
(async () => {
try {
// console.log('getSymbols: ', await client.getSymbols());
// console.log('getOrderBook: ', await client.getOrderBook(symbol));
console.log(
'getKline: ',
await client.getKline({
symbol: 'ETHUSDT',
interval: 'D',
from: 1,
}),
);
} catch (e) {
console.error('request failed: ', e);
}
})();