Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
854 in github.com/TauricResearch/TradingAgents
⨍
Functions
854
◇
Types & classes
151
↳
Endpoints
4
↓ 1 callers
Function
ask_glm_region
Ask which GLM platform (Z.AI international vs BigModel China) to use. Zhipu serves the same GLM models under two brands with separate account
cli/utils.py:493
↓ 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:546
↓ 1 callers
Function
ask_output_language
Ask for report output language.
cli/utils.py:653
↓ 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:519
↓ 1 callers
Function
build_verified_market_snapshot
Render a ground-truth snapshot: latest OHLCV row, indicators, recent closes.
tradingagents/dataflows/market_data_validator.py:62
↓ 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:928
↓ 1 callers
Function
clear_all_checkpoints
Remove all checkpoint DBs. Returns number of files deleted.
tradingagents/graph/checkpointer.py:73
↓ 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:573
↓ 1 callers
Function
create_aggressive_debator
(llm)
tradingagents/agents/risk_mgmt/aggressive_debator.py:7
↓ 1 callers
Function
create_bear_researcher
(llm)
tradingagents/agents/researchers/bear_researcher.py:7
↓ 1 callers
Function
create_bull_researcher
(llm)
tradingagents/agents/researchers/bull_researcher.py:7
↓ 1 callers
Function
create_conservative_debator
(llm)
tradingagents/agents/risk_mgmt/conservative_debator.py:7
↓ 1 callers
Function
create_fundamentals_analyst
(llm)
tradingagents/agents/analysts/fundamentals_analyst.py:13
↓ 1 callers
Function
create_layout
()
cli/main.py:252
↓ 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:7
↓ 1 callers
Function
create_news_analyst
(llm)
tradingagents/agents/analysts/news_analyst.py:13
↓ 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:755
↓ 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:603
↓ 1 callers
Function
extract_content_string
Extract string content from various message formats. Returns None if no meaningful text content is found.
cli/main.py:886
↓ 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. ``inter_request_del
tradingagents/dataflows/reddit.py:191
↓ 1 callers
Function
fetch_stocktwits_messages
Fetch recent StockTwits messages for ``ticker`` and return them as a formatted plaintext block ready for prompt injection. Returns a placehol
tradingagents/dataflows/stocktwits.py:41
↓ 1 callers
Function
format_tokens
Format token count for display.
cli/main.py:268
↓ 1 callers
Function
format_tool_args
Format tool arguments for terminal display.
cli/main.py:954
↓ 1 callers
Function
get_analysis_date
Get the analysis date from user input.
cli/main.py:731
↓ 1 callers
Function
get_api_key
Retrieve the FRED API key from the environment.
tradingagents/dataflows/fred.py:84
↓ 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:146
↓ 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:139
↓ 1 callers
Method
get_llm
Return configured ChatGoogleGenerativeAI instance.
tradingagents/llm_clients/google_client.py:26
↓ 1 callers
Method
get_llm
Return the configured LLM instance.
tradingagents/llm_clients/base_client.py:55
↓ 1 callers
Method
get_news
(self, count)
tests/test_symbol_normalization_paths.py:65
↓ 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:211
↓ 1 callers
Function
get_stock_stats_indicators_window
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/y_finance.py:72
↓ 1 callers
Function
get_stockstats_indicator
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/y_finance.py:246
↓ 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
Get all user selections before starting the analysis display.
cli/main.py:482
↓ 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:153
↓ 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:104
↓ 1 callers
Function
is_empty
Check if value is empty using Python's truthiness.
cli/main.py:892
↓ 1 callers
Function
main
()
scripts/smoke_structured_output.py:105
↓ 1 callers
Method
process_signal
Process a signal to extract the core decision.
tradingagents/graph/trading_graph.py:526
↓ 1 callers
Function
prompt_openai_compatible_url
Prompt for a custom OpenAI-compatible endpoint base URL.
cli/utils.py:391
↓ 1 callers
Function
run_analysis
(checkpoint: bool | None = None)
cli/main.py:991
↓ 1 callers
Function
save_message_decorator
(obj, func_name)
cli/main.py:1028
↓ 1 callers
Function
save_report_section_decorator
(obj, func_name)
cli/main.py:1050
↓ 1 callers
Function
save_report_to_disk
Save the complete analysis report to disk (shared CLI/API writer).
cli/main.py:750
↓ 1 callers
Function
save_tool_call_decorator
(obj, func_name)
cli/main.py:1039
↓ 1 callers
Function
select_analysts
Select analysts using an interactive checkbox.
cli/utils.py:135
↓ 1 callers
Function
select_deep_thinking_agent
Select deep thinking llm engine using an interactive selection.
cli/utils.py:334
↓ 1 callers
Function
select_llm_provider
Select the LLM provider and its API endpoint.
cli/utils.py:405
↓ 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:246
↓ 1 callers
Function
select_research_depth
Select research depth using an interactive selection.
cli/utils.py:167
↓ 1 callers
Function
select_shallow_thinking_agent
Select shallow thinking llm engine using an interactive selection.
cli/utils.py:329
↓ 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:521
↓ 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:839
↓ 1 callers
Function
update_display
(layout, spinner_text=None, stats_handler=None, start_time=None)
cli/main.py:275
↓ 1 callers
Function
update_research_team_status
Update status for research team members (not Trader).
cli/main.py:816
↓ 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_inner)
tests/test_stocktwits_resilience.py:21
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:23
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:266
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:68
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:93
Method
__init__
(self, provider: str, model: str)
tests/test_model_validation.py:12
Method
__init__
(self, *a, **k)
tests/test_news_lookahead.py:57
Method
__init__
(self, symbol)
tests/test_yfinance_stale_ohlcv_guard.py:73
Method
__init__
(self, text)
tests/test_alpha_vantage_hardening.py:17
Method
__init__
(self, symbol)
tests/test_date_boundaries.py:20
Method
__init__
(self, **kwargs)
tests/test_bedrock_provider.py:45
Method
__init__
(self, symbol)
tests/test_symbol_normalization_paths.py:20
Method
_capture
(path, params)
tests/test_fred.py:143
Function
_dummy_api_keys
(monkeypatch)
tests/conftest.py:33
Function
_fetch_subreddit_json
Richer JSON search path (carries score / comment counts). Reddit's WAF currently returns ``403 Blocked`` on this endpoint for non-OAuth clien
tradingagents/dataflows/reddit.py:147
Method
_get_request_payload
(self, input_, *, stop=None, **kwargs)
tradingagents/llm_clients/openai_client.py:103
Function
_has_real_deepseek_key
()
tests/test_deepseek_reasoning.py:187
Function
_impl
(path, params)
tests/test_fred.py:40
Function
_isolate_config
Reset the global dataflows config before and after each test. ``set_config`` merges (it never clears keys absent from the override), so a tes
tests/conftest.py:41
Method
_make_ticker
(sym)
tests/test_memory_log.py:494
Function
_no_data
(symbol, *a, **k)
tests/test_vendor_routing.py:27
Function
_node_a
(state: _SimpleState)
tests/test_checkpoint_resume.py:25
← previous
next →
201–300 of 854, ranked by callers