okx-public-api
Version:
open api for connect to OKX
13 lines (12 loc) • 679 B
TypeScript
export default class OKXclient {
instance: any;
constructor(apiKey: string, apiSecret: string, passphrase: string);
getName(): Promise<string>;
getRequest(endpoint: string, params?: {}): any;
postRequest(endpoint: string, data?: {}): any;
getBalance(): any;
getMarket(instId: string, sz?: number | null): any;
putOrders(market: string, spot: string, countOrd: number, orderList: [number, number][]): any;
transferCurrAcc(currency: string, amount: number | string, from: number | string, to: number | string): any;
withdrawalToAddress(currency: string, amount: number | string, fee: number | string, chain: string, address: string): any;
}