Cryptolab library to replay historic data
Project description
Libraries Python for CryptoLab
Website: https://www.crypto-lab.io
Documentation: https://www.crypto-lab.io/documentation
Swagger: https://www.crypto-lab.io/swagger
Python
Install library from Pypi pip install cryptolab
Sample to use it to replay data
import cryptolab
# Init lib with api key
cl = cryptolab.CryptoLab('{YOUR_API_KEY}', on_error)
# Init the raplayer with the parameters
cl.init_replayer(event, '{EXCHANGE}', '{MARKET}', '{START_DATE}', '{END_DATE}')
# On event - callback
def event(trade):
print(trade)
# add you algorithm here to backtest your strategy
# On event error
def on_error(message):
print(message) # ex: quota reached, data not avaible, plan inactive, etc.
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
Cryptolab-0.0.4.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file Cryptolab-0.0.4.tar.gz
.
File metadata
- Download URL: Cryptolab-0.0.4.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aba95fd2263a1013218ff77c07f180b608abdbdf084e0e7c4711f8ae9e46426 |
|
MD5 | ad006093f0afda7d1513764055996e66 |
|
BLAKE2b-256 | 135750706ff76274d30b6a71da830d5c91849273ebccb126f7c7d65a3d2962ce |
File details
Details for the file Cryptolab-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: Cryptolab-0.0.4-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c351824e9762932629de01749e8a8ca23879af7894cec7ec824f89f9e88b35c8 |
|
MD5 | c1d8d23c758262aef6b43e0efc8da61b |
|
BLAKE2b-256 | a04449e7bd51caeeb7bca8bcc32469249458cb37511afb51e1fec564ab4fc2bb |