Skip to content

dancju/zipline-bitmex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zipline BitMEX

BitMEX bundle for Zipline

[WARNING] This Python module is unusable by now due to an upstream bug of Zipline. Unfortunately, it seems that Zipline is no longer under maintenance.

Usage

  1. Install this package with pip.
pip install --user zipline-bitmex
  1. Register this package to Zipline by amending the following script to ~/.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.
zipline ingest -b bitmex

Releases

No releases published

Packages

No packages published

Languages