Skip to content

susieyy/catalyst-bitmex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Catalyst BitMEX

BitMEX bundle for Catalyst

Usage

  1. Install this package with pip:
pip install git+https://github.com/susieyy/catalyst-bitmex

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

  1. Register this package to Catalyst by writing following content to $HOME/.catalyst/extension.py:
import pandas as pd
from catalyst.data.bundles import register
from catalyst_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:
catalyst ingest -b bitmex

About

BitMEX bundle for Catalyst

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%