Extract symbol data as pandas data frames from the Kraken_OHLCVT.zip file of the Kraken exchange
Project description
krakenohlcvt
A python package to handle Kraken exchange historial OHLCVT data without needing to unzip the Kraken_OHLCVT.zip file.
Installation
pip install krakenohlcvt
or
potry add krakenohlcvt
Usage
from krakenohlcvt import KrakenDataHandler
# Enter path to the Kraken zip file:
import os
DATA_PATH = os.path.expanduser("~/Downloads/Kraken_OHLCVT.zip")
# or simpler:
DATA_PATH = "path/to/Kraken_OHLCVT.zip"
# load it
kd = KrakenDataHandler(DATA_PATH)
# you can inspect which symbols it contains:
kd.list_symbols()
# when searching for a specific symbol, search with either "starts_with=" or "contains="
kd.list_symbols(starts_with="ETH")
# then get the timeframe from the specific symbol
df = kd.load_symbol_data("ETHUSDT", "15m")
# save a timeframe of a specific symbol as df pickle:
kd.save_to_df_pickle(symbol="ETHUSDT", timeframe="15m", outpath=os.path.expanduser("~/projects/python/LotusBot/src/backtester/ETHUSDT_15m.csv"), dropna_rows=True)
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
krakenohlcvt-0.1.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for krakenohlcvt-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b81fa82d6d02edc320b2c6fed5c2669bd52f4819a700263e18529d258dd177 |
|
MD5 | a0fe4a13df66b85f3e027f2ce7cf821c |
|
BLAKE2b-256 | bfda4562b7cba8b83c0dadf3d4b29b97ba7dda23432b86ba8d50e93af3079f96 |