Skip to main content

BitMEX bundle for Zipline

Project description

BitMEX bundle for Zipline

[WARNING] There is a bug in this repo. It can ingest the data from the BitMEX API to the Zipline folder, but somehow I can’t run an algorithm upon it. Any PRs or advice would be appreciated!

Usage

  1. Install this package with pip:

pip install zipline-bitmex

. You may want to run this command with --user parameter.

  1. Register this package to Zipline by writing following content to $HOME/.zipline/extension.py:

from zipline.data.bundles import register
from zipline_bitmex import bitmex_bundle
import pandas as pd

start = pd.Timestamp('2019-01-01', tz='utc')
end = pd.Timestamp('2019-01-07', tz='utc')

register(
    'bitmex',
    bitmex_bundle(['XBTUSD']),
    calendar_name='bitmex',
    start_session=start,
    end_session=end,
    minutes_per_day=24*60,
)
  1. Ingest the data bundle with:

zipline ingest -b bitmex

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

zipline-bitmex-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

zipline_bitmex-0.1.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file zipline-bitmex-0.1.2.tar.gz.

File metadata

  • Download URL: zipline-bitmex-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for zipline-bitmex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80ee70cfea98f87e41693efc7fb57d840aa2bd10cd0814c7857a809dd5f82c45
MD5 c4561d431ef63407c08282775f30f678
BLAKE2b-256 c7be4fb192d3697a36c6230ef001e095633989982fd87322c3c2611d4fe066e4

See more details on using hashes here.

File details

Details for the file zipline_bitmex-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: zipline_bitmex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for zipline_bitmex-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 647747cbced126ae537be725f399a96f7acb171a1d50c243e9726883397e6817
MD5 01004b934e246e1b5db0566cd616bd29
BLAKE2b-256 692d2f61365aba32b86d45938f3fc71c75398791dcc49933c1ab1da7834a087f

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