1.5.20 • Published 2 months ago

binance-historical v1.5.20

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

binance-historical

Utility to retrieve historical data from Binance.

Alt Text

Usage

With the cli

npm install -g binance-historical
binance-historical download

# or by using npx
npx binance-historical download

With the library

import { getKline, Kline } from 'binance-historical';

const result: Array<Kline> = await getKline(
  'ETHUSDT',
  '4h',
  new Date('01-09-2020'),
  new Date('01-12-2021'),
);

console.log(result);
// [
//   ...,
//   {
//     openTime: 1579953600000,
//     open: '159.30000000',
//     high: '161.00000000',
//     low: '158.70000000',
//     close: '160.41000000',
//     volume: '25015.67605000',
//     closeTime: 1579967999999,
//     quoteAssetVolume: '4001959.95527980',
//     trades: 14330,
//     takerBaseAssetVolume: '13000.12296000',
//     takerQuoteAssetVolume: '2079824.44045350',
//     ignored: '0'
//   },
//   ...
// ]
1.5.20

2 months ago

1.5.16

2 months ago

1.5.18

2 months ago

1.5.17

2 months ago

1.5.19

2 months ago

1.5.12

2 years ago

1.5.14

2 years ago

1.5.13

2 years ago

1.5.15

1 year ago

1.5.11

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago