Skip to main content

No project description provided

Project description

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.

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

binance_history_downloader-0.1.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

binance_history_downloader-0.1.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file binance_history_downloader-0.1.4.tar.gz.

File metadata

  • Download URL: binance_history_downloader-0.1.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.13 Linux/6.2.0-1015-azure

File hashes

Hashes for binance_history_downloader-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e4eba9d0944e23f9385109e096c2d0fdbecec19efd1a2ea46848651bce9a2711
MD5 d3297d2a8c1d95a8d1daa594a721a4a0
BLAKE2b-256 f7b69f6704ba91ae7cde3e55dd9cce34a23e7a79acd4e251955e2b607cfff80d

See more details on using hashes here.

File details

Details for the file binance_history_downloader-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for binance_history_downloader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 096fb4cda613a2026fdf5441401f6c0b50da4f4b929d1f71ad94cb7d2dec1891
MD5 4d77f3ca57d7ac62b8a0618272b176d8
BLAKE2b-256 bb5e8a67859b1d00f8cd4f8305c753282a933be1ee87df71bd8ad190e826aaee

See more details on using hashes here.

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