ftx-public-api
Version:
open api for connect to FTX
13 lines (12 loc) • 653 B
TypeScript
export default class FTXclient {
instance: any;
constructor(apiKey: string, apiSecret: string);
getName(): Promise<string>;
getRequest(endpoint: string, params?: any): any;
postRequest(endpoint: string, data?: any | {}): any;
getBalance(): any;
getMarket(market: string, depth?: number | null): any;
putOrders(market: string, spot: string, countOrd: number, orderList: [number, number][]): Promise<boolean>;
withdrawalToAddress(currency: string, amount: string | number, method: string, address: string, tag: string | null | undefined, password: string): any;
getDepositAdrr(coin: string, method: string): any;
}