Function privateWsRequest

  • Returns a Promise from a private WebsocketV2 method request.

    Type Parameters

    Parameters

    Returns Promise<PrivateWsResponse<R>["result"]>

       import { privateWsRequest } from 'ts-kraken';

    privateWsRequest({ method: 'cancel_all' }).then(({ count }) => {
    console.log({ count });
    }).catch(error => {
    console.error({ error });
    });