okx-api
Version:
Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests
21 lines (20 loc) • 634 B
TypeScript
import { APIMarket } from '../shared';
export interface RestClientOptions {
apiKey?: string;
apiSecret?: string;
apiPass?: string;
market?: APIMarket;
strict_param_validation?: boolean;
baseUrl?: string;
parse_exceptions?: boolean;
/**
* Enable keep alive for REST API requests (via axios).
*/
keepAlive?: boolean;
/**
* When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
* Only relevant if keepAlive is set to true.
* Default: 1000 (defaults comes from https agent)
*/
keepAliveMsecs?: number;
}