Files
bybit-api/examples/apidoc/V5/Market/get-tickers.js

18 lines
290 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getTickers({
category: 'inverse',
symbol: 'BTCUSDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});