Returns a Promise from a public WebsocketV2 method request.
import { publicWsRequest } from 'ts-kraken'; publicWsRequest({ method: 'ping', req_id: 42 }) .then(({ method, req_id, time_in, time_out }) => { console.log({ method, req_id, time_in, time_out }); }); Copy
import { publicWsRequest } from 'ts-kraken'; publicWsRequest({ method: 'ping', req_id: 42 }) .then(({ method, req_id, time_in, time_out }) => { console.log({ method, req_id, time_in, time_out }); });
Returns a Promise from a public WebsocketV2 method request.