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")
# if timeframe not in ["1m", "15m", "1h", "1d"], then the '1m' data gets loaded and the timeframe
# inferred from the 1m data!
# 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)
# convert unix time in the index to human-readable datetime object
[kd.unix_to_datetime(x) for x in df.index] # very slow! a lot faster:
kd.unix_to_datetime(df.index)
# also possible
[datetime.datetime.fromtimestamp(x) for x in df.index]
Metadata
Release files for krakenohlcvt 0.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| krakenohlcvt-0.1.17.tar.gz | 3.7 kB | Without provenance | Details for krakenohlcvt-0.1.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| krakenohlcvt-0.1.17-py3-none-any.whl | Python 3 | none | any | Details for krakenohlcvt-0.1.17-py3-none-any.whl |
Total release size: 8.2 kB
Release files / krakenohlcvt-0.1.17.tar.gz
| Download URL | krakenohlcvt-0.1.17.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b443c593096ea6b7e386c1cb952d273200b139327c736271d9e522370b29acd
|
|
BLAKE2b-256 checksum How to use checksums |
40ffedebe4c2c491c5d09931ed63814fd8ed3407bbcea4fe7810353bf62e6b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.6.0
|
Release files / krakenohlcvt-0.1.17-py3-none-any.whl
| Download URL | krakenohlcvt-0.1.17-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5a168ffffcd732a606872e5209af1206a8fbe93f1f79c35e6cd04177ff24f31
|
|
BLAKE2b-256 checksum How to use checksums |
3c41ca5fe005fe06f4105aa117576b11b7915b25aeae6d2673aab426ccd99ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.6.0
|
Security for krakenohlcvt 0.1.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.