From 5a5afa6a4c13997e4a29dd73e92e0d3642cf3192 Mon Sep 17 00:00:00 2001 From: anor Date: Mon, 9 Mar 2026 12:22:44 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20init=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D1=83=D0=B5=D1=82=20exchange=20data=20source=20?= =?UTF-8?q?=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20yfinance=20ticker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- src/remizov_trader/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/remizov_trader/cli.py b/src/remizov_trader/cli.py index beb37ca..b056b24 100644 --- a/src/remizov_trader/cli.py +++ b/src/remizov_trader/cli.py @@ -41,7 +41,11 @@ def init(): interval = cfg.timeframe period = "max" if interval == "1d" else "730d" - prices, dates = signals.fetch_prices(ticker, interval, period) + source = cfg.exchange.data_source + symbol = asset_cfg.symbol if source == "exchange" else ticker + prices, dates = signals.fetch_prices( + symbol, interval, period, cfg.exchange, source=source, + ) if prices is None: click.echo(" ERROR: no data") continue