mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-30 13:10:53 +08:00
Naive integration with the consolidated exchanges api (minor fix)
This commit is contained in:
1 parent
4f80ebee57
commit
8811aa669a
1 file changed
+1
-1
@@ -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'])
|
||||
|
||||
Reference in new issue
Block a user