Command line tool for downloading data charts from Binance
Project description
Binypt - Cryptocurrency Chart Data Downloader
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! 🚀💰
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for binypt_cli-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e12219ad3cba715b2d75fbef5ace2189d3e8f0af82ec3f41ade5447890f3ff |
|
MD5 | 3e03b86cb4dcd9db775a1d08f3218325 |
|
BLAKE2b-256 | dcc92bde4753840612f32ff1e533271dcd907629ae55c7f81ff457c48d519b4e |