Reference: Add Order Batch
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'AddOrderBatch', data: { pair: 'BTC/EUR', orders: [{ ordertype: 'limit', type: 'buy', volume: '0.0002', price: '50000' },{ ordertype: 'limit', type: 'sell', volume: '0.0002', price: '70000' }] } }).then(({ orders }) => { console.log({ orders }); }); Copy
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'AddOrderBatch', data: { pair: 'BTC/EUR', orders: [{ ordertype: 'limit', type: 'buy', volume: '0.0002', price: '50000' },{ ordertype: 'limit', type: 'sell', volume: '0.0002', price: '70000' }] } }).then(({ orders }) => { console.log({ orders }); });
Reference: Add Order Batch
Example