mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-09-19 11:15:24 +03:00
- the custom model option does not exist for every provider; name any model ID instead - alpha is measured against the regional benchmark, not always SPY - the environment overrides a fixed set of config keys - list the providers the picker offers, and the macro data key - drop the example call to a method that was removed
19 lines
688 B
Python
19 lines
688 B
Python
from tradingagents.default_config import DEFAULT_CONFIG
|
|
from tradingagents.graph.trading_graph import TradingAgentsGraph
|
|
|
|
# DEFAULT_CONFIG already applies TRADINGAGENTS_* env-var overrides
|
|
# (llm_provider, deep_think_llm, quick_think_llm, backend_url, etc.),
|
|
# so users can switch models or endpoints purely via .env without
|
|
# editing this script. Override individual keys here only when you
|
|
# want a hard-coded value that should ignore the environment.
|
|
config = DEFAULT_CONFIG.copy()
|
|
|
|
# Initialize with custom config
|
|
ta = TradingAgentsGraph(debug=True, config=config)
|
|
|
|
# forward propagate
|
|
_, decision = ta.propagate("NVDA", "2026-09-01")
|
|
print(decision)
|
|
|
|
# Memorize mistakes and reflect
|