TradingAgents/tradingagents/dataflows
Charlie Tonneslan 4aeaf09a2c Return error message instead of raising on unsupported indicators
When the LLM agent requests an indicator that isn't supported
(e.g. 'agt'), the function was raising a ValueError which crashed
the Market Analyst. Now it returns an error string that tells the
agent which indicators are available, allowing it to self-correct
and retry with a valid indicator.

Applied to both yfinance and alpha_vantage indicator functions.

Fixes #429
2026-03-23 09:41:40 -04:00
..
__init__.py WIP 2025-09-26 16:17:50 +08:00
alpha_vantage.py fix: improve data vendor implementations and tool signatures 2026-02-03 22:27:20 +00:00
alpha_vantage_common.py added fallbacks for tools 2025-10-03 22:40:09 -07:00
alpha_vantage_fundamentals.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
alpha_vantage_indicator.py Return error message instead of raising on unsupported indicators 2026-03-23 09:41:40 -04:00
alpha_vantage_news.py fix: improve data vendor implementations and tool signatures 2026-02-03 22:27:20 +00:00
alpha_vantage_stock.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
config.py feat: add multi-provider LLM support with thinking configurations 2026-02-03 22:27:20 +00:00
interface.py refactor: clean up codebase and streamline documentation 2026-02-03 22:27:20 +00:00
stockstats_utils.py fix: harden stock data parsing against malformed CSV and NaN values 2026-03-15 18:29:43 +00:00
utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
y_finance.py Return error message instead of raising on unsupported indicators 2026-03-23 09:41:40 -04:00
yfinance_news.py fix: improve data vendor implementations and tool signatures 2026-02-03 22:27:20 +00:00