From 8811aa669a31ad067f078ae19089c39641f815be Mon Sep 17 00:00:00 2001 From: fredfortier Date: Mon, 9 Oct 2017 14:52:59 -0400 Subject: [PATCH] Naive integration with the consolidated exchanges api (minor fix) --- catalyst/exchange/bundle_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/exchange/bundle_utils.py b/catalyst/exchange/bundle_utils.py index 57a2d6ea..9dd1e436 100644 --- a/catalyst/exchange/bundle_utils.py +++ b/catalyst/exchange/bundle_utils.py @@ -95,7 +95,7 @@ def get_history(exchange_name, data_frequency, symbol, start=None, end=None): data = response.json() if 'error' in data: - raise ValueError(response['error']) + raise ValueError(data['error']) for candle in data: last_traded = pd.Timestamp.utcfromtimestamp(candle['ts'])