cryptocurrency.api
Version:
Cryptocurrency API
24 lines (23 loc) • 820 B
TypeScript
import * as I from './binance.types';
export declare class Binance {
websockets: BinanceWebsocket;
private _b;
constructor(options: {
APIKEY: string;
APISECRET: string;
useSeverTime?: boolean;
reconnect?: boolean;
});
prices(): Promise<I.PriceTickerAllResponse>;
prices(symbol: string): Promise<I.PriceTickerResponse>;
candlesticks(symbol: string, interval: string, options: I.CandleStickOptions): Promise<I.CandleStickResponse>;
private _bindTransType;
}
declare class BinanceWebsocket {
private readonly _ws;
constructor(_ws: any);
candlesticks(symbol: string[] | string, interval: string, callback: (candlesticks: I.WsCandleStickResponse) => void): void;
terminate(id: string): any;
private _bindTransType;
}
export { I as types, };