Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
974 in github.com/TauricResearch/TradingAgents
⨍
Functions
974
◇
Types & classes
157
↳
Endpoints
4
↓ 3 callers
Function
_filter_reports_by_date
Drop annual/quarterly reports dated after curr_date to prevent look-ahead. ``_make_api_request`` returns the fundamentals payload as a JSON strin
tradingagents/dataflows/alpha_vantage_fundamentals.py:6
↓ 3 callers
Function
_frame
(date)
tests/test_yfinance_stale_ohlcv_guard.py:24
↓ 3 callers
Function
_make_rm_state
()
tests/test_structured_agents.py:247
↓ 3 callers
Function
_msg
(created_iso, sentiment=None)
tests/test_social_lookahead.py:59
↓ 3 callers
Function
_patched_get
(body, capture=None)
tests/test_alpha_vantage_hardening.py:24
↓ 3 callers
Function
_raises
(exc)
tests/test_vendor_routing.py:37
↓ 3 callers
Function
_require_text
Prompt for a required value; exit cleanly if the user cancels. ``questionary.text(...).ask()`` returns None on Ctrl-C/Esc; mirror the exit-on
cli/utils.py:229
↓ 3 callers
Function
_resp
A minimal context-manager response whose read() runs ``read_fn``.
tests/test_reddit_fallback.py:30
↓ 3 callers
Function
_returns
(value)
tests/test_vendor_routing.py:31
↓ 3 callers
Method
_run
(self, state_extra)
tests/test_instrument_identity.py:125
↓ 3 callers
Function
_run_load
Drive load_ohlcv against a pre-seeded cache frame (no network).
tests/test_ohlcv_latest_bar.py:83
↓ 3 callers
Function
_state
()
tests/test_reporting.py:12
↓ 3 callers
Function
_state
(latest_speaker, count=0)
tests/test_risk_router_path_map.py:16
↓ 3 callers
Function
_structured_pm_llm
Build a MagicMock LLM whose with_structured_output binding captures the prompt and returns a real PortfolioDecision (so render_pm_decision works).
tests/test_memory_log.py:92
↓ 3 callers
Function
_structured_sentiment_llm
MagicMock LLM whose structured binding captures the prompt and returns a real SentimentReport so render_sentiment_report works.
tests/test_structured_agents.py:376
↓ 3 callers
Method
checkpoint_input
The value to stream/invoke: ``None`` to resume an existing checkpoint, else the initial state for a fresh run. LangGraph resumes an i
tradingagents/graph/trading_graph.py:460
↓ 3 callers
Method
clear_checkpoint_on_success
Drop a completed run's checkpoint so a later run starts fresh (#1249).
tradingagents/graph/trading_graph.py:486
↓ 3 callers
Function
create_msg_delete
()
tradingagents/agents/utils/agent_utils.py:204
↓ 3 callers
Function
filter_analysts_for_asset_type
( analysts: list[AnalystType], asset_type: AssetType )
cli/utils.py:90
↓ 3 callers
Function
filter_financials_by_date
Drop financial statement columns (fiscal period timestamps) after curr_date. yfinance financial statements use fiscal period end dates as columns
tradingagents/dataflows/stockstats_utils.py:271
↓ 3 callers
Function
get_model_options
Return shared model options for a provider and selection mode.
tradingagents/llm_clients/model_catalog.py:194
↓ 3 callers
Function
initialize_config
Initialize the configuration with default values.
tradingagents/dataflows/config.py:9
↓ 3 callers
Function
load_ohlcv
Fetch OHLCV data with caching, filtered to prevent look-ahead bias. Downloads 5 years of data up to today and caches per symbol. On subsequen
tradingagents/dataflows/stockstats_utils.py:184
↓ 3 callers
Method
mark_completed
( self, analyst_key: str, completed_at: float | None = None, )
tradingagents/graph/analyst_execution.py:87
↓ 3 callers
Method
process_signal
Process a signal to extract the core decision.
tradingagents/graph/trading_graph.py:618
↓ 3 callers
Function
render_trader_proposal
Render a TraderProposal to markdown. The trailing ``FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL**`` line is preserved for backward compatibil
tradingagents/agents/schemas.py:158
↓ 3 callers
Method
should_continue_risk_analysis
Determine if risk analysis should continue.
tradingagents/graph/conditional_logic.py:63
↓ 3 callers
Method
update_agent_status
(self, agent, status)
cli/main.py:181
↓ 3 callers
Function
write_report_tree
Save a completed run's reports to ``save_path``; return the complete-report path.
tradingagents/reporting.py:13
↓ 2 callers
Method
_apply_rotation
Drop oldest resolved blocks when their count exceeds max_entries. Pending blocks are always kept (they represent unprocessed work). R
tradingagents/agents/utils/memory.py:248
↓ 2 callers
Method
_bare_graph
(self)
tests/test_signal_processing.py:130
↓ 2 callers
Function
_capture_kwargs
Stub _bedrock_class so the constructor kwargs are testable without the optional langchain-aws extra installed.
tests/test_bedrock_provider.py:38
↓ 2 callers
Method
_captured_ticker
(self, ticker)
tests/test_reddit_fallback.py:199
↓ 2 callers
Function
_coerce_optional_float
(value)
tradingagents/agents/schemas.py:33
↓ 2 callers
Method
_create_tool_nodes
Create tool nodes for different data sources using abstract methods.
tradingagents/graph/trading_graph.py:210
↓ 2 callers
Function
_debate_state
(current_response, count=0)
tests/test_risk_router_path_map.py:20
↓ 2 callers
Function
_effort_on
(model, monkeypatch)
tests/test_openai_reasoning_effort.py:29
↓ 2 callers
Function
_ensure_date_column
Normalize the date column to ``Date``. Some yfinance builds leave the index unnamed (so ``reset_index()`` yields ``index``) or use ``Datetime
tradingagents/dataflows/stockstats_utils.py:48
↓ 2 callers
Function
_epoch
(date_str)
tests/test_social_lookahead.py:97
↓ 2 callers
Function
_extract_article_data
Extract article data from yfinance news format (handles nested 'content' structure).
tradingagents/dataflows/yfinance_news.py:15
↓ 2 callers
Function
_fetch_subreddit_rss
Default path: parse the public Atom search feed for a subreddit. Carries no score / comment counts, so those fields are left None and the pos
tradingagents/dataflows/reddit.py:113
↓ 2 callers
Function
_investment_state
(current_response)
tests/test_debate_opening.py:37
↓ 2 callers
Function
_llm_provider_table
(display_name, provider_key, base_url) for every supported provider. Shared by the interactive picker and by env-driven configuration so an e
cli/utils.py:338
↓ 2 callers
Method
_memory_as_of
Point-in-time cutoff for past-context lessons (#1251). A historical/backtest run (trade date before today) filters lessons to those a
tradingagents/graph/trading_graph.py:379
↓ 2 callers
Function
_parse_json_list
Gamma encodes ``outcomes``/``outcomePrices`` as JSON-string arrays.
tradingagents/dataflows/polymarket.py:37
↓ 2 callers
Function
_price_df
Minimal DataFrame matching yfinance .history() output shape. Uses a DatetimeIndex like real yfinance output, so resolution-date extraction (s
tests/test_memory_log.py:57
↓ 2 callers
Function
_raise
(exc)
tests/test_reddit_fallback.py:48
↓ 2 callers
Function
_reload_with_env
(monkeypatch, **overrides)
tests/test_llm_max_tokens.py:104
↓ 2 callers
Function
_reload_with_env
(monkeypatch, **overrides)
tests/test_llm_max_retries.py:81
↓ 2 callers
Function
_reset_config
()
tests/test_vendor_routing.py:21
↓ 2 callers
Method
_resolved_tag
Build a resolved entry tag, recording the outcome's known-by date. ``resolution_date`` (the date of the last price bar used for the return)
tradingagents/agents/utils/memory.py:234
↓ 2 callers
Function
_risk_state
(**responses)
tests/test_debate_opening.py:48
↓ 2 callers
Function
_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/reddit.py:72
↓ 2 callers
Function
_select_model
Select a model for the given provider and mode (quick/deep).
cli/utils.py:292
↓ 2 callers
Function
_structured_rm_llm
(captured: dict, plan: ResearchPlan | None = None)
tests/test_structured_agents.py:261
↓ 2 callers
Function
_supports_reasoning_effort
Whether the (native OpenAI) model accepts ``reasoning_effort``.
tradingagents/llm_clients/openai_client.py:178
↓ 2 callers
Method
batch_update_with_outcomes
Apply multiple outcome updates in a single read + atomic write. Each element of updates must have keys: ticker, trade_date, raw_retur
tradingagents/agents/utils/memory.py:177
↓ 2 callers
Function
clear_checkpoint
Remove checkpoint for a specific ticker+date by deleting the thread's rows.
tradingagents/graph/checkpointer.py:84
↓ 2 callers
Function
create_aggressive_debator
(llm)
tradingagents/agents/risk_mgmt/aggressive_debator.py:8
↓ 2 callers
Function
create_bull_researcher
(llm)
tradingagents/agents/researchers/bull_researcher.py:8
↓ 2 callers
Function
create_question_box
(title, prompt, default=None)
cli/main.py:527
↓ 2 callers
Function
format_datetime_for_api
Convert various date formats to YYYYMMDDTHHMM format required by Alpha Vantage API.
tradingagents/dataflows/alpha_vantage_common.py:37
↓ 2 callers
Method
format_summary
(self)
tradingagents/graph/analyst_execution.py:105
↓ 2 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:71
↓ 2 callers
Function
get_initial_analyst_node
(plan: AnalystExecutionPlan)
tradingagents/graph/analyst_execution.py:72
↓ 2 callers
Function
get_known_models
Build known model names from the shared CLI catalog.
tradingagents/llm_clients/model_catalog.py:199
↓ 2 callers
Method
get_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:276
↓ 2 callers
Method
get_wall_times
(self)
tradingagents/graph/analyst_execution.py:102
↓ 2 callers
Method
history
(self, start, end)
tests/test_date_boundaries.py:23
↓ 2 callers
Method
info
(self)
tests/test_symbol_normalization_paths.py:24
↓ 2 callers
Function
is_openai_compatible
Whether ``provider`` is served by the OpenAI-compatible registry.
tradingagents/llm_clients/openai_client.py:236
↓ 2 callers
Function
is_valid_ticker_input
Whether a ticker entry is acceptable (charset + length). Allows the characters Yahoo symbols use, including ``=`` for futures/forex like ``GC
cli/utils.py:26
↓ 2 callers
Function
is_yahoo_safe
True when ``symbol`` only contains characters Yahoo symbols use.
tradingagents/dataflows/symbol_utils.py:141
↓ 2 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:404
↓ 2 callers
Function
render_research_plan
Render a ResearchPlan to markdown for storage and the trader's prompt context.
tradingagents/agents/schemas.py:105
↓ 2 callers
Function
resolve_backend_url
Resolve the backend URL with the correct precedence. An explicit env override (``env_url``, from ``TRADINGAGENTS_LLM_BACKEND_URL`` via ``DEFA
cli/utils.py:378
↓ 2 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:367
↓ 2 callers
Method
save_reports
Write the markdown report tree for a completed run, like the CLI does. Programmatic callers get the same on-disk reports the CLI produces. Pa
tradingagents/graph/trading_graph.py:494
↓ 2 callers
Method
should_continue_debate
Determine if debate should continue.
tradingagents/graph/conditional_logic.py:52
↓ 2 callers
Function
sync_analyst_tracker_from_chunk
( tracker: AnalystWallTimeTracker, chunk: dict[str, str], now: float | None = None, )
tradingagents/graph/analyst_execution.py:117
↓ 2 callers
Method
update_report_section
(self, section_name, content)
cli/main.py:186
↓ 1 callers
Method
__enter__
(self_inner)
tests/test_reddit_fallback.py:33
↓ 1 callers
Method
__exit__
(self_inner, *a)
tests/test_reddit_fallback.py:36
↓ 1 callers
Function
_apply_env_overrides
Apply TRADINGAGENTS_* env vars to the config dict in-place.
tradingagents/default_config.py:59
↓ 1 callers
Function
_bedrock_class
Lazily import langchain-aws (the optional ``[bedrock]`` extra) and return a ChatBedrockConverse subclass with normalized content output. Impo
tradingagents/llm_clients/bedrock_client.py:12
↓ 1 callers
Function
_build_run_config
Assemble the run config from interactive selections, honoring env precedence. Round counts and checkpoint follow "explicit env/flag wins": an env
cli/main.py:974
↓ 1 callers
Function
_build_system_message
Assemble the sentiment-analyst system message with structured data blocks.
tradingagents/agents/analysts/sentiment_analyst.py:130
↓ 1 callers
Function
_clean_dataframe
Normalize a stock DataFrame for stockstats: parse/normalize dates and coerce prices to numeric (NaN where invalid). Dropping incomplete rows and
tradingagents/dataflows/stockstats_utils.py:89
↓ 1 callers
Function
_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/utils/agent_utils.py:82
↓ 1 callers
Function
_coerce
Coerce env-var string to the type of the existing default value. Invalid values raise ``ValueError`` rather than silently falling back to a d
tradingagents/default_config.py:36
↓ 1 callers
Function
_coerce_ohlcv_dates
Return parsed dates from an OHLCV frame, whether Date is a column or the index.
tradingagents/dataflows/stockstats_utils.py:113
↓ 1 callers
Method
_create_chat_result
(self, response, generation_info=None)
tradingagents/llm_clients/openai_client.py:114
↓ 1 callers
Function
_fetch_openrouter_models
Fetch available models from the OpenRouter API.
cli/utils.py:212
↓ 1 callers
Function
_fetch_subreddit
Fetch one subreddit, RSS-first. The JSON search endpoint is reliably WAF-blocked (403) for public clients, so we go straight to the RSS feed
tradingagents/dataflows/reddit.py:196
↓ 1 callers
Function
_fill_price_gaps
Drop rows with no close and forward/back-fill remaining price gaps so indicators compute on a continuous series.
tradingagents/dataflows/stockstats_utils.py:103
↓ 1 callers
Function
_filter_csv_by_date_range
Filter CSV data to include only rows within the specified date range. Args: csv_data: CSV string from Alpha Vantage API star
tradingagents/dataflows/alpha_vantage_common.py:116
↓ 1 callers
Function
_fmt
(value)
tradingagents/dataflows/market_data_validator.py:48
↓ 1 callers
Method
_format_full
(self, e: dict)
tradingagents/agents/utils/memory.py:318
↓ 1 callers
Method
_format_reflection_only
(self, e: dict)
tradingagents/agents/utils/memory.py:328
↓ 1 callers
Method
_get_log_reflection_prompt
Concise prompt for reflect_on_final_decision (Phase B log entries). Produces 2-4 sentences of plain prose — compact enough to be re-injected
tradingagents/graph/reflection.py:14
← previous
next →
101–200 of 974, ranked by callers