Skip to main content

BitMEX bundle for Zipline

Project description

BitMEX bundle for Zipline

Usage

  1. Install this package with pip:

pip install zipline-poloniex

. 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:

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

start = pd.Timestamp('2017-08-01', tz='utc')
end = pd.Timestamp('2017-08-08', tz='utc')

register(
        'bitmex',
        bitmex(['XBTUSD', 'XBTU17']),
        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.1.tar.gz (2.8 kB view hashes)

Uploaded Source

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