Files
bybit-api/examples/apidoc/V5/Spread-Trading/get-spread-orderbook.js
2025-04-17 11:24:09 +02:00

18 lines
322 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getSpreadOrderbook({
symbol: 'SOLUSDT_SOL/USDT',
limit: 1, // Show 5 levels of depth
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});