UNPKG

okx-api

Version:

Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests

23 lines (22 loc) 618 B
import { APICredentials, APIMarket } from '../shared'; export interface WSClientConfigurableOptions { accounts?: APICredentials[]; /** * The API group this client should connect to: * market: 'prod' (default) * market: 'aws' * market: 'demo' */ market?: APIMarket; pongTimeout?: number; pingInterval?: number; reconnectTimeout?: number; requestOptions?: any; wsUrl?: string; } export interface WebsocketClientOptions extends WSClientConfigurableOptions { market: APIMarket; pongTimeout: number; pingInterval: number; reconnectTimeout: number; }