Returns a Promise from a private WebsocketV2 method request.
Optional
import { privateWsRequest } from 'ts-kraken'; privateWsRequest({ method: 'cancel_all' }).then(({ count }) => { console.log({ count }); }).catch(error => { console.error({ error }); }); Copy
import { privateWsRequest } from 'ts-kraken'; privateWsRequest({ method: 'cancel_all' }).then(({ count }) => { console.log({ count }); }).catch(error => { console.error({ error }); });
Returns a Promise from a private WebsocketV2 method request.