Skip to main content

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 Git: https://github.com/crypto-lab-io/client-libraries

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}')

# Replay  On event - callback
def event(self, trade, message=None):

    if(message):
        print(message)

    if(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.

Logo

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

Cryptolab-0.0.5.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

Cryptolab-0.0.5-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file Cryptolab-0.0.5.tar.gz.

File metadata

  • Download URL: Cryptolab-0.0.5.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for Cryptolab-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8c5e7952ffb941787b76a73c34bb6aaa643bed703adab3972b82762ccedce945
MD5 c7592901e1ecf247ad15a50752e53b88
BLAKE2b-256 7c1f77dcecdd5066c9901ed842e468f805ea0ace8f799e8222abec9485bd276a

See more details on using hashes here.

File details

Details for the file Cryptolab-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: Cryptolab-0.0.5-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

Hashes for Cryptolab-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0d2212ed89a91a8f4a291dd0a71742d65bc41b5b6ec6334d3e5d7bb012443bef
MD5 091a7c79ea593159992bb938a7852fe4
BLAKE2b-256 b3785a63c6f7d8c5ca892cf3a1cb4f7c9b134bbd2efc962bc3e6524f6194ad52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page