A Python library for fetching OHLC data from multiple cryptocurrency exchanges.
Project description
Crypto Candle Fetcher
A Python library for fetching OHLC (candlestick) data from multiple cryptocurrency exchanges. By Metupia Group
Features
- Supports multiple exchanges: Binance, Coinbase, KuCoin, OKX, Bybit, BingX, Gate.io, Huobi, Bitstamp, MEXC, Kraken, Crypto.com.
- Saves data in CSV and JSON formats.
- Normalizes and processes candlestick data.
- Provides easy-to-use API methods for fetching and handling OHLCV data.
- Supports multiple timeframes:
5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w. - Automatically converts timestamps to standard UTC datetime format.
- Compatible with Python 3.7+.
Installation
Install the library using pip:
pip install crypto-candle-fetcher
Usage
1. Initialize the Fetcher
from crypto_candle_fetcher import CryptoCandleFetcher
fetcher = CryptoCandleFetcher(exchange="binance", csv_save=True, json_save=False, Debug=True)
2. Fetch Candlestick Data
data = fetcher.fetch_candles(pair="BTC/USDT", interval="1h", period=30)
Complete Example
from crypto_candle_fetcher import CryptoCandleFetcher
fetcher = CryptoCandleFetcher(exchange="binance", csv_save=True, json_save=False, Debug=True)
data = fetcher.fetch_candles(pair="BTC/USDT", interval="1h", period=30)
License
This project is licensed under the MIT License.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crypto_candle_fetcher-0.1.6.tar.gz.
File metadata
- Download URL: crypto_candle_fetcher-0.1.6.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6241444041b7510de0c4506aa66d00f5c913e34dcd8df88b0171ec70e4ea2ee0
|
|
| MD5 |
1929b7286d2d3dee24418734f1bc6c85
|
|
| BLAKE2b-256 |
d32b63bf4bda9c012960c0d403957b0f35c1c81341ac153338765159d078457b
|
File details
Details for the file crypto_candle_fetcher-0.1.6-py3-none-any.whl.
File metadata
- Download URL: crypto_candle_fetcher-0.1.6-py3-none-any.whl
- Upload date:
- Size: 39.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c27bb12f0b6bb7aaa05abdc5b715ff71e63e177218e33e8b320681c85dafa074
|
|
| MD5 |
84891c7f4034768393d50a0776902c68
|
|
| BLAKE2b-256 |
f65c72cf304047924f3b64fb1a267cb2d2f2fb55e69a7c839ce4c6f3e9f57006
|