Reference: Add Order
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'AddOrder', data: { ordertype: "limit", type: "buy", volume: "0.0002", pair: "XBTUSD", price: "57500" } }).then(({ txid, descr: { order }}) => { console.log({ txid, order }); }); Copy
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'AddOrder', data: { ordertype: "limit", type: "buy", volume: "0.0002", pair: "XBTUSD", price: "57500" } }).then(({ txid, descr: { order }}) => { console.log({ txid, order }); });
Reference: Add Order
Example