Binance Data Downloader
Project description
rm-binance-data-downloader
A Python library for downloading, extracting and formatting historical Binance market data.
The package provides a pipeline that:
- Downloads data from Binance Vision
- Extracts compressed archives
- Formats data into a structured dataset
It is designed for fast data preparation for quantitative trading, backtesting and data analysis.
Installation
pip install rm-bdd
Features
- Download historical Binance data
- Automatic archive extraction
- Data formatting pipeline
- Metadata management
- Async architecture
- Easy integration into trading systems
Quick Example
import asyncio
import time
from rm_bdd import get_manager
async def main():
downloads_path = "downloads/"
extracts_path = "extracts/"
data_path = "data/"
manager = get_manager(downloads_path, extracts_path, data_path)
await manager.download_and_save("BTCUSDT", "1m")
asyncio.run(main())
Read data
import pandas as pd
df_1m = pd.read_parquet("data", filters=[("symbol", "==", "SOLUSDT"), ("timeframe", "==", "1m")])
Pipeline Overview
The processing pipeline consists of three stages:
Downloader
Downloads historical data archives from Binance Vision.
Extractor
Extracts downloaded archives.
Formatter
Formats extracted CSV data into a structured dataset ready for analysis.
Metadata Manager
The library uses a metadata system to track downloaded, extracted and formatted data.
This prevents duplicate downloads and processing.
Example Use Case
Typical workflow:
download → extract → format → analyze
Used for:
- algorithmic trading
- backtesting
- machine learning datasets
- market research
Requirements
Python 3.10+
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rm_bdd-0.1.1.tar.gz.
File metadata
- Download URL: rm_bdd-0.1.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f87004b00fed9f585e79aa56ed893a6aee8ed8ff7f619dc0063d2c83ff464e2
|
|
| MD5 |
b15ff5845c6e207ee04967165c6ccaa4
|
|
| BLAKE2b-256 |
ff66922f9ac7902409b5162fa88685454ef81796e0fad6bb790c0c8adaa628b5
|
Provenance
The following attestation bundles were made for rm_bdd-0.1.1.tar.gz:
Publisher:
publish_to_pypi.yml on romamyronenko/rm_binance_data_downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rm_bdd-0.1.1.tar.gz -
Subject digest:
9f87004b00fed9f585e79aa56ed893a6aee8ed8ff7f619dc0063d2c83ff464e2 - Sigstore transparency entry: 1086394156
- Sigstore integration time:
-
Permalink:
romamyronenko/rm_binance_data_downloader@512d581fc652e434aa08b68f764d8ca2c172123f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/romamyronenko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@512d581fc652e434aa08b68f764d8ca2c172123f -
Trigger Event:
push
-
Statement type:
File details
Details for the file rm_bdd-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rm_bdd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa20199aa0e6d2a128b1c6ebadb60e940054abf6524723ae8e570f522f1a671
|
|
| MD5 |
f98a4c85ce1e05f49aa628d0e4330486
|
|
| BLAKE2b-256 |
295afa7e2ee2cb1341e8f3587c8f146e3f084d7af96112a247d96ca203f5ce84
|
Provenance
The following attestation bundles were made for rm_bdd-0.1.1-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on romamyronenko/rm_binance_data_downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rm_bdd-0.1.1-py3-none-any.whl -
Subject digest:
efa20199aa0e6d2a128b1c6ebadb60e940054abf6524723ae8e570f522f1a671 - Sigstore transparency entry: 1086394217
- Sigstore integration time:
-
Permalink:
romamyronenko/rm_binance_data_downloader@512d581fc652e434aa08b68f764d8ca2c172123f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/romamyronenko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@512d581fc652e434aa08b68f764d8ca2c172123f -
Trigger Event:
push
-
Statement type: