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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file binypt_cli-1.0.4.tar.gz.

File metadata

  • Download URL: binypt_cli-1.0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

File hashes

Hashes for binypt_cli-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fc00abb44b740ce6d3e9570976b1fae513d3501697a344f9e65e14b8fb2d29f7
MD5 f647eaef55436c802b6080c8301647f4
BLAKE2b-256 d088825edf32a328d13037d9b9ba8d15b4b60acd7b1142fa2360a5b6bdc855fc

See more details on using hashes here.

File details

Details for the file binypt_cli-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: binypt_cli-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

File hashes

Hashes for binypt_cli-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a446da0a71edb9e7fd62d0a9951b66d71cd45d94dcc8dbb0a8e242f36355be
MD5 29bfa21d3a4bb83274f363c6c52d2e36
BLAKE2b-256 b1505d40c6060df1c02981a3a30d6825fb5033f6912baf5560269b172e3bccaf

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