diff --git a/catalyst/data/bundles/poloniex.py b/catalyst/data/bundles/poloniex.py index 5e1ddd36..4dcdf7bc 100644 --- a/catalyst/data/bundles/poloniex.py +++ b/catalyst/data/bundles/poloniex.py @@ -102,7 +102,10 @@ class PoloniexBundle(BaseCryptoPricingBundle): ) raw.set_index('date', inplace=True) - scale = 1 + # BcolzDailyBarReader introduces a 1/1000 factor in the way pricing is stored + # on disk, which we compensate here to get the right pricing amounts + # ref: data/us_equity_pricing.py + scale = 1000 raw.loc[:, 'open'] /= scale raw.loc[:, 'high'] /= scale raw.loc[:, 'low'] /= scale