Skip to content

ycwan9/zipline-bitmex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zipline BitMEX

image

image

image

image

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

About

BitMEX bundle for Zipline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%