mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-26 13:18:31 +08:00
Naive integration with the consolidated exchanges api (minor fix)
This commit is contained in:
@@ -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