aboutsummaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'api.py')
-rw-r--r--api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.py b/api.py
index aed31eb..0eba863 100644
--- a/api.py
+++ b/api.py
@@ -126,7 +126,7 @@ def fetch_chart_data_backtest(ticker='XRP/USD', interval='1Min', period_end_date
chart_data = data_obj['bars'][ticker]
for tmp in chart_data:
# t, o, h, l, c, v, n, vw (keys for data)
- timezone_adjusted = datetime.fromisoformat(tmp['t']).astimezone(pytz.timezone('US/Eastern'))
+ timezone_adjusted = datetime.fromisoformat(tmp['t'].replace("Z", "")).astimezone(pytz.timezone('US/Eastern'))
timestamps.append(timezone_adjusted.timestamp())
close_prices.append(tmp['c'])