from tradingagents.graph.trading_graph import TradingAgentsGraph from tradingagents.default_config import DEFAULT_CONFIG # DEFAULT_CONFIG already loads .env via python-dotenv # All LLM settings can be overridden via environment variables: # LLM_PROVIDER, BACKEND_URL, DEEP_THINK_LLM, QUICK_THINK_LLM config = DEFAULT_CONFIG.copy() config["max_debate_rounds"] = 1 # Configure data vendors (default uses yfinance, no extra API keys needed) config["data_vendors"] = { "core_stock_apis": "yfinance", "technical_indicators": "yfinance", "fundamental_data": "yfinance", "news_data": "yfinance", } ta = TradingAgentsGraph(debug=True, config=config) _, decision = ta.propagate("NVDA", "2024-05-10") print(decision)