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

17 lines
288 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apiKey',
secret: 'apiSecret',
});
client
.cancelAllSpreadOrders()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});