Reference: Get Trades History
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'TradesHistory', data: { trades: true, type: 'closed position' } }).then(({ trades, count }) => { console.log({ trades, count }) }); Copy
import { privateRestRequest } from 'ts-kraken'; privateRestRequest({ url: 'TradesHistory', data: { trades: true, type: 'closed position' } }).then(({ trades, count }) => { console.log({ trades, count }) });
Reference: Get Trades History
Example