Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
1,297 in github.com/TauricResearch/TradingAgents
⨍
Functions
1,297
◇
Types & classes
181
↳
Endpoints
8
↓ 1 callers
Function
ask_minimax_region
Ask which MiniMax region (global vs China) to use. MiniMax exposes two endpoints with separate accounts — a key from one region does NOT auth
cli/utils.py:566
↓ 1 callers
Function
ask_qwen_region
Ask which Qwen region (international vs China) to use. Alibaba DashScope exposes two endpoints with separate accounts — a key from one region
cli/utils.py:539
↓ 1 callers
Function
build_verified_market_snapshot
Render a ground-truth snapshot: latest OHLCV row, indicators, recent closes.
tradingagents/dataflows/market_data_validator.py:64
↓ 1 callers
Method
checkpoint_input
(self, state)
tests/test_rating_integrity.py:133
↓ 1 callers
Method
checkpoint_scope
Context-manager form of begin/end_checkpoint for the propagate path.
tradingagents/graph/trading_graph.py:509
↓ 1 callers
Function
cik_for
The filer's CIK, or None when the ticker is not a US filer.
tradingagents/dataflows/sec_edgar.py:130
↓ 1 callers
Function
classify_message_type
Classify LangChain message into display type and extract content. Returns: (type, content) - type is one of: User, Agent, Data, Control
cli/main.py:956
↓ 1 callers
Method
clear_checkpoint_on_success
(self, *a, **k)
tests/test_rating_integrity.py:136
↓ 1 callers
Function
confirm_ollama_endpoint
Show the resolved Ollama endpoint after provider selection. Surfaces three things the user benefits from seeing before model selection: which
cli/utils.py:593
↓ 1 callers
Function
create_bear_researcher
(llm)
tradingagents/agents/researchers/bear_researcher.py:9
↓ 1 callers
Function
create_conservative_debator
(llm)
tradingagents/agents/risk_mgmt/conservative_debator.py:10
↓ 1 callers
Function
create_fundamentals_analyst
(llm)
tradingagents/agents/analysts/fundamentals_analyst.py:13
↓ 1 callers
Function
create_layout
()
cli/main.py:270
↓ 1 callers
Function
create_market_analyst
(llm)
tradingagents/agents/analysts/market_analyst.py:12
↓ 1 callers
Function
create_neutral_debator
(llm)
tradingagents/agents/risk_mgmt/neutral_debator.py:10
↓ 1 callers
Function
create_news_analyst
(llm)
tradingagents/agents/analysts/news_analyst.py:13
↓ 1 callers
Method
create_run_state
(self, ticker, trade_date, asset_type="stock", portfolio=None)
tests/test_cli_decision_log.py:72
↓ 1 callers
Method
create_run_state
(self, *a, **k)
tests/test_rating_integrity.py:117
↓ 1 callers
Function
display_announcements
Display announcements panel. Prompts for Enter if require_attention is True.
cli/announcements.py:31
↓ 1 callers
Function
display_complete_report
Display the complete analysis report sequentially (avoids truncation).
cli/main.py:788
↓ 1 callers
Function
ensure_api_key
Make sure the API key for `provider` is available in the environment. If the env var is already set, returns its value untouched. Otherwise i
cli/utils.py:623
↓ 1 callers
Function
fetch_announcements
Fetch announcements from endpoint. Returns dict with announcements and settings.
cli/announcements.py:10
↓ 1 callers
Function
fetch_reddit_posts
Fetch recent Reddit posts mentioning ``ticker`` across finance subreddits and return them as a formatted plaintext block. All subreddits are
tradingagents/dataflows/reddit.py:232
↓ 1 callers
Function
fetch_stocktwits_messages
Fetch recent StockTwits messages for ``ticker`` and return them as a formatted plaintext block ready for prompt injection. When ``start_date`
tradingagents/dataflows/stocktwits.py:68
↓ 1 callers
Method
fingerprint
Stable digest of the book, so a changed one cannot resume a stale run.
tradingagents/portfolio.py:53
↓ 1 callers
Function
format_tokens
Format token count for display.
cli/main.py:286
↓ 1 callers
Function
format_tool_args
Format tool arguments for terminal display.
cli/main.py:982
↓ 1 callers
Function
get_analysis_date
Get the analysis date from user input.
cli/main.py:764
↓ 1 callers
Function
get_api_key
Retrieve the FRED API key from the environment.
tradingagents/dataflows/fred.py:91
↓ 1 callers
Function
get_api_key
Retrieve the API key for Alpha Vantage from environment variables.
tradingagents/dataflows/alpha_vantage_common.py:28
↓ 1 callers
Function
get_category_for_method
Get the category that contains the specified method.
tradingagents/dataflows/interface.py:155
↓ 1 callers
Method
get_completed_reports_count
Count reports that are finalized (their finalizing agent is completed). A report is considered complete when: 1. The report section h
cli/main.py:157
↓ 1 callers
Method
get_graph_args
Get arguments for the graph invocation. Args: callbacks: Optional list of callback handlers for tool execution tracking.
tradingagents/graph/propagation.py:73
↓ 1 callers
Method
get_graph_args
(self, callbacks=None)
tests/test_rating_integrity.py:127
↓ 1 callers
Method
get_llm
Return configured ChatGoogleGenerativeAI instance.
tradingagents/llm_clients/google_client.py:40
↓ 1 callers
Method
get_llm
Return the configured LLM instance.
tradingagents/llm_clients/base_client.py:55
↓ 1 callers
Method
get_provider_name
Return the provider name used in warning messages.
tradingagents/llm_clients/base_client.py:33
↓ 1 callers
Method
get_stats
Return current statistics.
cli/stats_handler.py:68
↓ 1 callers
Method
get_stock_stats
( symbol: Annotated[str, "ticker symbol for the company"], indicator: Annotated[ s
tradingagents/dataflows/stockstats_utils.py:309
↓ 1 callers
Function
get_stockstats_indicator
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/y_finance.py:253
↓ 1 callers
Function
get_ticker
Prompt the user to enter a ticker symbol, preserving exchange suffixes. Uses questionary.text (not typer.prompt, which strips trailing dot-suffix
cli/utils.py:37
↓ 1 callers
Function
get_user_selections
Ask for the run's settings, offering the previous run's answers.
cli/main.py:500
↓ 1 callers
Function
get_vendor
Get the configured vendor for a data category or specific tool method. Tool-level configuration takes precedence over category-level.
tradingagents/dataflows/interface.py:162
↓ 1 callers
Method
init_for_analysis
Initialize agent status and report sections based on selected analysts. Args: selected_analysts: List of analyst type strings (e.
cli/main.py:122
↓ 1 callers
Function
is_empty
Whether a value carries nothing to show. Text is judged by whether anything was written, not by what it would mean as Python: a repor
cli/main.py:923
↓ 1 callers
Function
prompt_openai_compatible_url
Prompt for a custom OpenAI-compatible endpoint base URL.
cli/utils.py:403
↓ 1 callers
Method
propagate
Run the trading agents graph for a company on a specific date. ``asset_type`` selects between the stock pipeline (default) and the cr
tradingagents/graph/trading_graph.py:436
↓ 1 callers
Method
render
(self)
tradingagents/backtest.py:106
↓ 1 callers
Function
render_pm_decision
Render a PortfolioDecision back to the markdown shape the rest of the system expects. Memory log, CLI display, and saved report files all read th
tradingagents/agents/schemas.py:268
↓ 1 callers
Method
resolve_instrument_context
Resolve ticker identity once and return the full instrument context. Deterministic yfinance lookup (cached, fail-open) injected into a
tradingagents/graph/trading_graph.py:396
↓ 1 callers
Function
run_analysis
(checkpoint: bool | None = None, portfolio=None)
cli/main.py:1049
↓ 1 callers
Function
save_message_decorator
(obj, func_name)
cli/main.py:1086
↓ 1 callers
Function
save_report_section_decorator
(obj, func_name)
cli/main.py:1108
↓ 1 callers
Function
save_report_to_disk
Save the complete analysis report to disk (shared CLI/API writer).
cli/main.py:783
↓ 1 callers
Function
save_tool_call_decorator
(obj, func_name)
cli/main.py:1097
↓ 1 callers
Function
select_analysts
Select analysts using an interactive checkbox. ``default`` pre-checks the previous run's analysts; the prompt still shows.
cli/utils.py:140
↓ 1 callers
Function
select_deep_thinking_agent
Select deep thinking llm engine using an interactive selection.
cli/utils.py:344
↓ 1 callers
Function
select_llm_provider
Select the LLM provider and its API endpoint.
cli/utils.py:418
↓ 1 callers
Function
select_openrouter_model
Select an OpenRouter model from the newest available, or enter a custom ID. ``mode`` ("quick"/"deep") labels the prompt so the two consecutive
cli/utils.py:255
↓ 1 callers
Function
select_research_depth
Select research depth using an interactive selection.
cli/utils.py:175
↓ 1 callers
Function
select_shallow_thinking_agent
Select shallow thinking llm engine using an interactive selection.
cli/utils.py:339
↓ 1 callers
Method
settle_pending
Settle this ticker's decisions whose holding window has now traded. A run settles the ticker's earlier decisions on its way in, so the most
tradingagents/graph/trading_graph.py:559
↓ 1 callers
Method
setup_graph
Set up and compile the agent workflow graph. Args: selected_analysts (list): List of analyst types to include. Options are:
tradingagents/graph/setup.py:61
↓ 1 callers
Function
thinking_value_or_prompt
Return the env-configured reasoning/thinking value, or prompt for it. When ``env_var`` is set the interactive choice is skipped and the value
cli/main.py:546
↓ 1 callers
Function
update_analyst_statuses
Update analyst statuses based on accumulated report state. Logic: - Store new report content from the current chunk if present - Check ac
cli/main.py:872
↓ 1 callers
Function
update_display
(layout, spinner_text=None, stats_handler=None, start_time=None)
cli/main.py:293
↓ 1 callers
Function
update_research_team_status
Update status for research team members (not Trader).
cli/main.py:849
↓ 1 callers
Function
validate_date
(date_str: str)
cli/utils.py:107
↓ 1 callers
Method
validate_model
Validate that the model is supported by this client.
tradingagents/llm_clients/base_client.py:60
Method
__enter__
(self)
tests/test_cli_decision_log.py:107
Method
__enter__
(self)
tests/test_social_lookahead.py:25
Method
__enter__
(self_inner)
tests/test_stocktwits_resilience.py:21
Method
__exit__
(self, *a)
tests/test_cli_decision_log.py:110
Method
__exit__
(self, *a)
tests/test_social_lookahead.py:28
Method
__exit__
(self_inner, *a)
tests/test_stocktwits_resilience.py:24
Method
__init__
(self, model: str, base_url: str | None = None, **kwargs)
tradingagents/llm_clients/google_client.py:37
Method
__init__
(self, model: str, base_url: str | None = None, **kwargs)
tradingagents/llm_clients/azure_client.py:31
Method
__init__
(self, model: str, base_url: str | None = None, **kwargs)
tradingagents/llm_clients/anthropic_client.py:56
Method
__init__
(self, model: str, base_url: str | None = None, **kwargs)
tradingagents/llm_clients/base_client.py:28
Method
__init__
( self, model: str, base_url: str | None = None, provider: str = "openai",
tradingagents/llm_clients/openai_client.py:267
Method
__init__
(self, symbol: str, canonical: str | None = None, detail: str = "")
tradingagents/dataflows/errors.py:34
Method
__init__
Initialize the trading agents graph and components. Args: selected_analysts: List of analyst types to include debug:
tradingagents/graph/trading_graph.py:96
Method
__init__
Initialize the reflector with an LLM.
tradingagents/graph/reflection.py:9
Method
__init__
Initialize with configuration parameters.
tradingagents/graph/conditional_logic.py:9
Method
__init__
Initialize with configuration parameters.
tradingagents/graph/propagation.py:14
Method
__init__
Initialize with required components.
tradingagents/graph/setup.py:48
Method
__init__
(self, quick_thinking_llm: Any = None)
tradingagents/graph/signal_processing.py:23
Method
__init__
(self, plan: AnalystExecutionPlan)
tradingagents/graph/analyst_execution.py:77
Method
__init__
(self, config: dict = None)
tradingagents/agents/utils/memory.py:18
Method
__init__
(self)
cli/stats_handler.py:12
Method
__init__
(self, max_length=100)
cli/main.py:111
Method
__init__
(self, provider: str, model: str)
tests/test_model_validation.py:12
Method
__init__
(self)
tests/test_cli_decision_log.py:67
Method
__init__
(self, *a, **k)
tests/test_cli_decision_log.py:104
Method
__init__
(self)
tests/test_cli_decision_log.py:115
Method
__init__
(self, *a, **k)
tests/test_news_lookahead.py:83
Method
__init__
(self, *a, **k)
tests/test_news_lookahead.py:112
Method
__init__
(self, symbol)
tests/test_yfinance_stale_ohlcv_guard.py:73
Method
__init__
(self, text)
tests/test_alpha_vantage_hardening.py:22
Method
__init__
(self, selected_analysts=None, config=None, **kw)
tests/test_backtest.py:44
← previous
next →
301–400 of 1,297, ranked by callers