BitMEX bundle for Catalyst
- Install this package with pip:
pip install git+https://github.com/susieyy/catalyst-bitmex
. You may want to run this command with --user
parameter.
- 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)
- Ingest the data bundle with:
catalyst ingest -b bitmex