From b832d364da8c2efe09e3f75828caf73c50d01ce3 Mon Sep 17 00:00:00 2001 From: loit Date: Thu, 31 Jul 2025 16:04:58 -0400 Subject: run batch code to produce some backtesting results --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.py') diff --git a/app.py b/app.py index 99e7d7d..e3bc2b7 100644 --- a/app.py +++ b/app.py @@ -104,7 +104,7 @@ def display_color(ticker, period, interval): go.Scatter(name='Buys', x=buy_times, y=buy_prices, line=dict(color='rgb(0, 0, 255)'), mode='markers', marker_size=10), go.Scatter(name='Sells', x=sell_times, y=sell_prices, line=dict(color='rgb(255, 255, 0)'), mode='markers', marker_size=10) ] - data = fetch_chart_data_yahoo('XRP-USD', '1h', None, timedelta(weeks=52)) + data = fetch_chart_data_yahoo('XRP-USD', '1d', None, timedelta(weeks=52)) times = [datetime.fromtimestamp(t).astimezone(pytz.timezone('US/Eastern')) for t in data['timestamps']] comp_scatter = go.Scatter(name='Price (yahoo)', x=times, y=data['prices'], line=dict(color='rgb(255, 0, 0)'), mode='lines') fig = go.Figure( -- cgit v1.2.3-70-g09d2