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

19 lines
346 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apiKey',
secret: 'apiSecret',
});
client
.getSpreadOrderHistory({
orderId: '5e010c35-2b44-4f03-8081-8fa31fb73376',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});