Reference: Batch Cancel
import { privateWsRequest } from 'ts-kraken'; privateWsRequest({ method: 'batch_cancel', params: { orders: ['YOUR-ORDER-ID1', 'YOUR-ORDER-ID2'] } }).then(({orders_cancelled}) => { console.log({ orders_cancelled }); }).catch(error => { console.error({ error }); }); Copy
import { privateWsRequest } from 'ts-kraken'; privateWsRequest({ method: 'batch_cancel', params: { orders: ['YOUR-ORDER-ID1', 'YOUR-ORDER-ID2'] } }).then(({orders_cancelled}) => { console.log({ orders_cancelled }); }).catch(error => { console.error({ error }); });
Reference: Batch Cancel
Example