From 5bf22fc7e3c392c8bd44315ca2d06d7dca7d084e Mon Sep 17 00:00:00 2001 From: sotech117 Date: Thu, 31 Jul 2025 17:27:24 -0400 Subject: add code for analysis of data --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api.py') 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']) -- cgit v1.2.3-70-g09d2