3 stable releases

Uses new Rust 2024

1.7.1 Nov 25, 2025
1.6.0 Nov 23, 2025

#5 in #kline

MIT license

24KB
488 lines

Exchanges Klines Fetcher

A command-line tool to fetch and save historical candlestick (kline) data from exchanges. Supports pagination to handle exchanges 1000-candle limit and saves data in JSON format.


Example

  1. Fetch last candles
download-ticks fetch --symbol BTCUSDT --interval H1
  1. Fetch the candles for a range
download-ticks fetch -s BTCUSDT -i H1 --from-date "2019-05-01T00:00:00Z" --to-date "2019-05-02T00:00:00Z"
  1. Fetch the candles for a range and save to a json file
download-ticks fetch -s BTCUSDT -i H1 -f "2019-05-01T00:00:00Z" -t "2019-05-02T00:00:00Z" --output-file output.json
  1. Show information from a json file
download-ticks info -f output.json

Contributing

Contributions are welcome! Open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Dependencies

~13–29MB
~358K SLoC