fix: init использует exchange data source вместо yfinance ticker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-09 12:22:44 +10:00
co-authored by Claude Opus 4.6
parent e026e62341
commit 5a5afa6a4c
+5 -1
View File
@@ -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