Naive integration with the consolidated exchanges api (minor fix)

This commit is contained in:
fredfortier
2017-10-09 14:52:59 -04:00
parent 4f80ebee57
commit 8811aa669a
+1 -1
View File
@@ -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'])