@bcswaper/apis
Version:
bcswaper apis
19 lines (18 loc) • 765 B
TypeScript
import { OkxAccount } from '../../context';
import { InstType } from './okxContext';
export declare class OkxHttpClient {
private okxAccInfo;
private apiClient;
constructor(okxAccInfo: OkxAccount, baseURL?: string);
getSignedHeader(method: string, path: string, params?: any): {
"OK-ACCESS-KEY": string;
"OK-ACCESS-TIMESTAMP": string;
"OK-ACCESS-SIGN": string;
"OK-ACCESS-PASSPHRASE": string;
};
sign(secretkey: string, path: string, params?: string, method?: string): string[];
get<T>(path: string, params?: any): Promise<T>;
post<T>(path: string, body: any): Promise<T>;
getCandles(instId: string, bar: string): Promise<any>;
getInstInfo(instType: InstType, instId: string): Promise<any>;
}