binance-historical
Version:
Download historical klines from binance api
7 lines (6 loc) • 568 B
TypeScript
import type { BinanceInterval, Kline, OutputFormat } from './types';
export declare const saveKline: (fileName: string, jsonArray: Array<Kline>, format?: OutputFormat) => void;
export declare const formatDate: (date: Date, withHour?: boolean) => string;
export declare function intervalToSeconds(interval: BinanceInterval): number;
export declare function calculateNumberOfCall(interval: BinanceInterval, startTime: number, endTime: number): number;
export declare function divideInterval(numberOfDivisions: number, startDate: number, endDate: number): Array<number>;