diff options
author | sotech117 <michael_foiani@brown.edu> | 2025-07-31 17:27:24 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2025-07-31 17:27:24 -0400 |
commit | 5bf22fc7e3c392c8bd44315ca2d06d7dca7d084e (patch) | |
tree | 8dacb0f195df1c0788d36dd0064f6bbaa3143ede /api.py | |
parent | b832d364da8c2efe09e3f75828caf73c50d01ce3 (diff) |
add code for analysis of data
Diffstat (limited to 'api.py')
-rw-r--r-- | api.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) |