To install dependencies:
bun install
To run:
bun run fetcher.ts --exchange binance --symbol BTC/USDT --timeframe 15m --since "2024-01-01 00:00:00" --until "2024-07-18 00:00:00" --output binance_spot_btcusdt_15m.csv
Release to npm:
bun build fetcher.ts --compile --outfile bin/fetcher
npm publish
Install fetcher
bun install -g @kepler-quant/fetcher
Download history kline data
fetcher --exchange binance --symbol BTC/USDT --timeframe 15m --since "2024-01-01 00:00:00" --until "2024-07-18 00:00:00" --output binance_spot_btcusdt_15m.csv
This project was created using bun init
in bun v1.1.20. Bun is a fast all-in-one JavaScript runtime.