Skip to main content

Binance Downloader

Overview

Binance Downloader is a Python package for efficiently downloading cryptocurrency data from the Binance API. It supports downloading various types of data including trading klines, aggregate trades, ticker data, and more, with a focus on futures market data.

Features

  • Download data from Binance Futures market.
  • Supports various data types like klines, aggregate trades, book tickers, etc.
  • Parallel downloading for faster data retrieval.
  • Progress bar to track download status.
  • Easy to use with a simple Python API.

Installation

To install Binance Downloader, you will need Python 3.10 or later. The package can be installed via pip. Run the following command:

pip install binance_history_downloader

Usage

Here is a basic example of how to use Binance Downloader:

from binance_history_downloader import download
from binance_history_downloader import DataType

# Example: Downloading premium index klines for SOLUSDT
data, errors = download('SOLUSDT', DataType.PREMIUM_INDEX_KLINES, '2023-01-01', '2023-01-31')
# Example usage
# df, errors  = download('SOLUSDT', DataType.PREMIUM_INDEX_KLINES', '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.INDEX_PRICE_KLINES, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.MARK_PRICE_KLINES, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.KLINES, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.AGG_TRADES, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.BOOK_TICKER, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.METRICS, '2023-10-20', '2023-11-16')
# df = download('SOLUSDT', DataType.LIQUIDATION_SNAPSHOT, '2023-10-20', '2023-11-16')


# Check for errors
if errors:
    print("Errors occurred:", errors)

# Work with the data
print(data.head())

Requirements

  • Python 3.10+
  • pandas
  • tqdm

Contributing

Contributions to Binance Downloader are welcome! Please read our contributing guidelines for details on how to contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for binance_history_downloader 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for binance_history_downloader 0.1.4
File Size Uploaded Provenance Actions
binance_history_downloader-0.1.4.tar.gz 3.4 kB Without provenance Details for binance_history_downloader-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for binance_history_downloader 0.1.4
File Interpreter ABI Platform Actions
binance_history_downloader-0.1.4-py3-none-any.whl Python 3 none any Details for binance_history_downloader-0.1.4-py3-none-any.whl

Total release size: 7.6 kB

Release files / binance_history_downloader-0.1.4.tar.gz

Download URL binance_history_downloader-0.1.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e4eba9d0944e23f9385109e096c2d0fdbecec19efd1a2ea46848651bce9a2711
BLAKE2b-256 checksum
How to use checksums
f7b69f6704ba91ae7cde3e55dd9cce34a23e7a79acd4e251955e2b607cfff80d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.13 Linux/6.2.0-1015-azure

Release files / binance_history_downloader-0.1.4-py3-none-any.whl

Download URL binance_history_downloader-0.1.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
096fb4cda613a2026fdf5441401f6c0b50da4f4b929d1f71ad94cb7d2dec1891
BLAKE2b-256 checksum
How to use checksums
bb5e8a67859b1d00f8cd4f8305c753282a933be1ee87df71bd8ad190e826aaee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.13 Linux/6.2.0-1015-azure

Security for binance_history_downloader 0.1.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page