Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crypto_candle_fetcher-0.1.6.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

crypto_candle_fetcher-0.1.6-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

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

Hashes for crypto_candle_fetcher-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6241444041b7510de0c4506aa66d00f5c913e34dcd8df88b0171ec70e4ea2ee0
MD5 1929b7286d2d3dee24418734f1bc6c85
BLAKE2b-256 d32b63bf4bda9c012960c0d403957b0f35c1c81341ac153338765159d078457b

See more details on using hashes here.

File details

Details for the file crypto_candle_fetcher-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for crypto_candle_fetcher-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c27bb12f0b6bb7aaa05abdc5b715ff71e63e177218e33e8b320681c85dafa074
MD5 84891c7f4034768393d50a0776902c68
BLAKE2b-256 f65c72cf304047924f3b64fb1a267cb2d2f2fb55e69a7c839ce4c6f3e9f57006

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