Skip to main content

Command line tool for downloading data charts from Binance

Project description

Binypt - Cryptocurrency Chart Data Downloader

PyPI - Version PyPI - License PyPI - Status

Overview

Binypt is a versatile Python command-line utility tool that allows you to effortlessly download historical cryptocurrency chart data from the Binance exchange. Whether you're a trader, researcher, or just a crypto enthusiast, Binypt simplifies the process of collecting and exporting candlestick data for your preferred trading pairs and time intervals.

Installation

Before using Binypt, make sure you have the required dependencies installed:

pip install binypt-cli

Usage

Binypt offers a range of options to tailor your data collection. Here's how to use it:

$ binypt -p <TRADING_PAIR> -i <INTERVAL> -od <OPEN_DATE> -cd <CLOSE_DATE> [OPTIONS]

Required Arguments

  • -p, --trading-pair: Specify the trading pair symbol (e.g., BTCUSDT).
  • -i, --interval: Set the candlestick interval (e.g., 1h, 1d, 1w).
  • -od, --open-date: Define the start date for data collection (YYYY-MM-DD/HH:mm:ss).
  • -cd, --close-date: Define the end date for data collection (YYYY-MM-DD/HH:mm:ss).

Optional Arguments

  • -o, --output-path: Path to the output file for data storage. Supported formats: .csv, .excel, .pkl. (Default: binypt_data.csv)
  • -hr, --add-hr-time: Include human-readable time format in the output data.
  • -v, --verbose: Enable verbose logging for debugging purposes.

Examples

Basic Usage

Download 1-hour candlestick data for the BTCUSDT trading pair from January 1, 2023, to January 10, 2023, and save it as "btc_data.csv":

$ binypt -p BTCUSDT -i 1h -od 2023-01-01/00:00:00 -cd 2023-01-10/23:59:59 -o btc_data.csv

Verbose Mode

Enable verbose logging to get detailed information during data retrieval:

$ binypt -p BTCUSDT -i 1h -od 2023-01-01/00:00:00 -cd 2023-01-10/23:59:59 -v

Human-Readable Time Format

Include human-readable time format in the output data:

$ binypt -p BTCUSDT -i 1h -od 2023-01-01/00:00:00 -cd 2023-01-10/23:59:59 -hr

Output

Binypt will download the requested data and save it in the specified format and file path. The data will be ready for further analysis or visualization.

License

This software is distributed under the MIT License. You are free to use, modify, and distribute it as needed. Please refer to the LICENSE file for more details.

Happy trading, and may your charts always be green! 🚀💰


Generated by ChatGPT

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

binypt_cli-1.0.4.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

binypt_cli-1.0.4-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

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