Binance DataTool
Binance DataTool is an unofficial CLI for downloading historical Spot, USDⓈ-M Futures, and COIN-M Futures data from Binance's public archive and verifying it locally with SHA256. With the binance-datatool skill, your AI agent can discover datasets, preview downloads, and read results as JSON.
Install
Install the CLI with pipx and Python 3.11 or later.
For downloads, install aria2 with brew install aria2 on macOS or sudo apt install aria2
on Ubuntu/Debian.
pipx install binance-datatool
export BINANCE_DATATOOL_ARCHIVE_HOME="$HOME/binance_archive"
The archive home is where downloads and their checksums are stored. Add the export line to
your shell profile to reuse the same directory in future sessions. If your shell cannot find
binance-datatool after installation, run pipx ensurepath and open a new terminal.
Download and verify BTCUSDT candles
With an AI agent
Install the skill from your project directory with npx (included with npm).
npx skills add lostleaf/binance-datatool --skill binance-datatool
Paste this prompt into Codex CLI. In Claude Code, start it with /binance-datatool.
$binance-datatoolDownload all available monthly archives of BTCUSDT spot daily candles to~/binance_archive. Verify the files and tell me how many passed.
From the command line
binance-datatool download spot --freq monthly --type klines --interval 1d BTCUSDT
binance-datatool verify spot --freq monthly --type klines --interval 1d BTCUSDT
Each ZIP covers one month of daily candles. Look under
~/binance_archive/data/spot/monthly/klines/BTCUSDT/1d/. Rerun download to fetch missing
or updated files. After a fresh download, verify should report verified ZIPs and 0 failed.
Later runs count ZIPs with a current verification as skipped.
Preview a batch download
Pipe a symbol list into download --dry-run to see which files a batch would fetch.
binance-datatool list-symbols spot --freq monthly --quote USDT --exclude-stables \
| binance-datatool download spot --freq monthly --type klines --interval 1d --dry-run
Documentation
- To choose a dataset, check availability by market and archive frequency,
then use
list-filesto see which archives Binance publishes for a symbol. - Run
binance-datatool --helpto list commands. For options and JSON output, see the CLI reference. - To work on Binance DataTool, see the contributor guide.
Metadata
Release files for binance-datatool 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| binance_datatool-0.2.1.tar.gz | 449.2 kB | With provenance | Details for binance_datatool-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| binance_datatool-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for binance_datatool-0.2.1-py3-none-any.whl |
Total release size: 494.0 kB
Release files / binance_datatool-0.2.1.tar.gz
| Download URL | binance_datatool-0.2.1.tar.gz |
|---|---|
| Size | 449.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d429d00ce03adc2957b462e6efedcbb3ed6a9183b7c6b71be020c664602e65b3
|
|
BLAKE2b-256 checksum How to use checksums |
4ac56d7c60675cf5ee7b5982bbfa973b77219f211e0e3f503488d4ace82a35c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / binance_datatool-0.2.1-py3-none-any.whl
| Download URL | binance_datatool-0.2.1-py3-none-any.whl |
|---|---|
| Size | 44.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04a26e545553fa5b6a5d264a34f0814835b255ab30ae3c01b550e736e93f6448
|
|
BLAKE2b-256 checksum How to use checksums |
238164fef8259a6cd62180489abf830d3e657fd9592f2e4712ccb73e9f0e1976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for binance-datatool 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for binance_datatool-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.