feat(v4.1.4): full spread trading support
This commit is contained in:
17
examples/apidoc/V5/Spread-Trading/get-spread-orderbook.js
Normal file
17
examples/apidoc/V5/Spread-Trading/get-spread-orderbook.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user