Skip to main content

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:

  1. Downloads data from Binance Vision
  2. Extracts compressed archives
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rm_bdd-0.1.1a2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rm_bdd-0.1.1a2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file rm_bdd-0.1.1a2.tar.gz.

File metadata

  • Download URL: rm_bdd-0.1.1a2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rm_bdd-0.1.1a2.tar.gz
Algorithm Hash digest
SHA256 67e414c712afaf9e92e38e340ecf165c96b5397af4b932840741204b574fb039
MD5 2b51890b55cbffbd3c5526c0a0c2000e
BLAKE2b-256 4b2b60b797c90914456703da9a8289eb30ec37e5b8c4a9c6692d2d5648e17b80

See more details on using hashes here.

Provenance

The following attestation bundles were made for rm_bdd-0.1.1a2.tar.gz:

Publisher: publish_to_pypi.yml on romamyronenko/rm_binance_data_downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rm_bdd-0.1.1a2-py3-none-any.whl.

File metadata

  • Download URL: rm_bdd-0.1.1a2-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

Hashes for rm_bdd-0.1.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 95e17d124ccbc747cef9b5d172302643e26c97c903b6d86fedbfadfc4cd51b99
MD5 ec87f15d99cc7bd106a29374d7c52a3d
BLAKE2b-256 f43a333a1babb0bf6ce00eedfe2f6b8cacc0e0bf67b1020c011f16676f0d2bd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for rm_bdd-0.1.1a2-py3-none-any.whl:

Publisher: publish_to_pypi.yml on romamyronenko/rm_binance_data_downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page