QuantAgent ships with aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Y-Research-SBU/QuantAgent/llms.txt
Use this file to discover all available pages before exploring further.
DEFAULT_CONFIG dictionary that controls which LLM models and providers are used across the multi-agent system. You can override any or all of these values by passing a config dict when instantiating TradingGraph.
Default configuration
Config options
Model selection
The model used by the Indicator, Pattern, and Trend agents. These agents perform focused sub-tasks and can use a lighter, cheaper model. Must support image inputs because Pattern and Trend agents pass chart images. See Model selection for per-provider defaults.
The model used by the Decision agent (graph-level logic). This model synthesizes all sub-agent reports into a final trade decision and should be a more capable model. See Model selection for per-provider defaults.
Provider selection
LLM provider for the agent model. Accepted values:
"openai", "anthropic", "qwen".LLM provider for the graph/decision model. Accepted values:
"openai", "anthropic", "qwen".You can mix providers — for example, use
"qwen" for agents and "openai" for graph logic. Each provider is initialized with its own API key.Temperature
Sampling temperature for agent LLM responses. Kept low (0.1) by default to produce consistent, deterministic technical analysis. Valid range:
0.0–2.0.Sampling temperature for graph/decision LLM responses. Kept low (0.1) by default. Valid range:
0.0–2.0.API keys
Your OpenAI API key. If omitted or set to the placeholder
"sk-", QuantAgent falls back to the OPENAI_API_KEY environment variable. See API keys.Your Anthropic API key. Falls back to the
ANTHROPIC_API_KEY environment variable. Required only when agent_llm_provider or graph_llm_provider is "anthropic". See API keys.Your Qwen/DashScope API key. Falls back to the
DASHSCOPE_API_KEY environment variable. Required only when agent_llm_provider or graph_llm_provider is "qwen". See API keys.Passing config to TradingGraph
TradingGraph accepts an optional config dict. When provided, it replaces the entire default config — so supply all keys you want to customize:
config is None, TradingGraph uses a copy of DEFAULT_CONFIG: