MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions974 in github.com/TauricResearch/TradingAgents

↓ 3 callersFunction_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 callersFunction_frame
(date)
tests/test_yfinance_stale_ohlcv_guard.py:24
↓ 3 callersFunction_make_rm_state
()
tests/test_structured_agents.py:247
↓ 3 callersFunction_msg
(created_iso, sentiment=None)
tests/test_social_lookahead.py:59
↓ 3 callersFunction_patched_get
(body, capture=None)
tests/test_alpha_vantage_hardening.py:24
↓ 3 callersFunction_raises
(exc)
tests/test_vendor_routing.py:37
↓ 3 callersFunction_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 callersFunction_resp
A minimal context-manager response whose read() runs ``read_fn``.
tests/test_reddit_fallback.py:30
↓ 3 callersFunction_returns
(value)
tests/test_vendor_routing.py:31
↓ 3 callersMethod_run
(self, state_extra)
tests/test_instrument_identity.py:125
↓ 3 callersFunction_run_load
Drive load_ohlcv against a pre-seeded cache frame (no network).
tests/test_ohlcv_latest_bar.py:83
↓ 3 callersFunction_state
()
tests/test_reporting.py:12
↓ 3 callersFunction_state
(latest_speaker, count=0)
tests/test_risk_router_path_map.py:16
↓ 3 callersFunction_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 callersFunction_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 callersMethodcheckpoint_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 callersMethodclear_checkpoint_on_success
Drop a completed run's checkpoint so a later run starts fresh (#1249).
tradingagents/graph/trading_graph.py:486
↓ 3 callersFunctioncreate_msg_delete
()
tradingagents/agents/utils/agent_utils.py:204
↓ 3 callersFunctionfilter_analysts_for_asset_type
( analysts: list[AnalystType], asset_type: AssetType )
cli/utils.py:90
↓ 3 callersFunctionfilter_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 callersFunctionget_model_options
Return shared model options for a provider and selection mode.
tradingagents/llm_clients/model_catalog.py:194
↓ 3 callersFunctioninitialize_config
Initialize the configuration with default values.
tradingagents/dataflows/config.py:9
↓ 3 callersFunctionload_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 callersMethodmark_completed
( self, analyst_key: str, completed_at: float | None = None, )
tradingagents/graph/analyst_execution.py:87
↓ 3 callersMethodprocess_signal
Process a signal to extract the core decision.
tradingagents/graph/trading_graph.py:618
↓ 3 callersFunctionrender_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 callersMethodshould_continue_risk_analysis
Determine if risk analysis should continue.
tradingagents/graph/conditional_logic.py:63
↓ 3 callersMethodupdate_agent_status
(self, agent, status)
cli/main.py:181
↓ 3 callersFunctionwrite_report_tree
Save a completed run's reports to ``save_path``; return the complete-report path.
tradingagents/reporting.py:13
↓ 2 callersMethod_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 callersMethod_bare_graph
(self)
tests/test_signal_processing.py:130
↓ 2 callersFunction_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 callersMethod_captured_ticker
(self, ticker)
tests/test_reddit_fallback.py:199
↓ 2 callersFunction_coerce_optional_float
(value)
tradingagents/agents/schemas.py:33
↓ 2 callersMethod_create_tool_nodes
Create tool nodes for different data sources using abstract methods.
tradingagents/graph/trading_graph.py:210
↓ 2 callersFunction_debate_state
(current_response, count=0)
tests/test_risk_router_path_map.py:20
↓ 2 callersFunction_effort_on
(model, monkeypatch)
tests/test_openai_reasoning_effort.py:29
↓ 2 callersFunction_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 callersFunction_epoch
(date_str)
tests/test_social_lookahead.py:97
↓ 2 callersFunction_extract_article_data
Extract article data from yfinance news format (handles nested 'content' structure).
tradingagents/dataflows/yfinance_news.py:15
↓ 2 callersFunction_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 callersFunction_investment_state
(current_response)
tests/test_debate_opening.py:37
↓ 2 callersFunction_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 callersMethod_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 callersFunction_parse_json_list
Gamma encodes ``outcomes``/``outcomePrices`` as JSON-string arrays.
tradingagents/dataflows/polymarket.py:37
↓ 2 callersFunction_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 callersFunction_raise
(exc)
tests/test_reddit_fallback.py:48
↓ 2 callersFunction_reload_with_env
(monkeypatch, **overrides)
tests/test_llm_max_tokens.py:104
↓ 2 callersFunction_reload_with_env
(monkeypatch, **overrides)
tests/test_llm_max_retries.py:81
↓ 2 callersFunction_reset_config
()
tests/test_vendor_routing.py:21
↓ 2 callersMethod_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 callersFunction_risk_state
(**responses)
tests/test_debate_opening.py:48
↓ 2 callersFunction_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/reddit.py:72
↓ 2 callersFunction_select_model
Select a model for the given provider and mode (quick/deep).
cli/utils.py:292
↓ 2 callersFunction_structured_rm_llm
(captured: dict, plan: ResearchPlan | None = None)
tests/test_structured_agents.py:261
↓ 2 callersFunction_supports_reasoning_effort
Whether the (native OpenAI) model accepts ``reasoning_effort``.
tradingagents/llm_clients/openai_client.py:178
↓ 2 callersMethodbatch_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 callersFunctionclear_checkpoint
Remove checkpoint for a specific ticker+date by deleting the thread's rows.
tradingagents/graph/checkpointer.py:84
↓ 2 callersFunctioncreate_aggressive_debator
(llm)
tradingagents/agents/risk_mgmt/aggressive_debator.py:8
↓ 2 callersFunctioncreate_bull_researcher
(llm)
tradingagents/agents/researchers/bull_researcher.py:8
↓ 2 callersFunctioncreate_question_box
(title, prompt, default=None)
cli/main.py:527
↓ 2 callersFunctionformat_datetime_for_api
Convert various date formats to YYYYMMDDTHHMM format required by Alpha Vantage API.
tradingagents/dataflows/alpha_vantage_common.py:37
↓ 2 callersMethodformat_summary
(self)
tradingagents/graph/analyst_execution.py:105
↓ 2 callersMethodget_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 callersFunctionget_initial_analyst_node
(plan: AnalystExecutionPlan)
tradingagents/graph/analyst_execution.py:72
↓ 2 callersFunctionget_known_models
Build known model names from the shared CLI catalog.
tradingagents/llm_clients/model_catalog.py:199
↓ 2 callersMethodget_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:276
↓ 2 callersMethodget_wall_times
(self)
tradingagents/graph/analyst_execution.py:102
↓ 2 callersMethodhistory
(self, start, end)
tests/test_date_boundaries.py:23
↓ 2 callersMethodinfo
(self)
tests/test_symbol_normalization_paths.py:24
↓ 2 callersFunctionis_openai_compatible
Whether ``provider`` is served by the OpenAI-compatible registry.
tradingagents/llm_clients/openai_client.py:236
↓ 2 callersFunctionis_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 callersFunctionis_yahoo_safe
True when ``symbol`` only contains characters Yahoo symbols use.
tradingagents/dataflows/symbol_utils.py:141
↓ 2 callersMethodpropagate
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 callersFunctionrender_research_plan
Render a ResearchPlan to markdown for storage and the trader's prompt context.
tradingagents/agents/schemas.py:105
↓ 2 callersFunctionresolve_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 callersMethodresolve_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 callersMethodsave_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 callersMethodshould_continue_debate
Determine if debate should continue.
tradingagents/graph/conditional_logic.py:52
↓ 2 callersFunctionsync_analyst_tracker_from_chunk
( tracker: AnalystWallTimeTracker, chunk: dict[str, str], now: float | None = None, )
tradingagents/graph/analyst_execution.py:117
↓ 2 callersMethodupdate_report_section
(self, section_name, content)
cli/main.py:186
↓ 1 callersMethod__enter__
(self_inner)
tests/test_reddit_fallback.py:33
↓ 1 callersMethod__exit__
(self_inner, *a)
tests/test_reddit_fallback.py:36
↓ 1 callersFunction_apply_env_overrides
Apply TRADINGAGENTS_* env vars to the config dict in-place.
tradingagents/default_config.py:59
↓ 1 callersFunction_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 callersFunction_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 callersFunction_build_system_message
Assemble the sentiment-analyst system message with structured data blocks.
tradingagents/agents/analysts/sentiment_analyst.py:130
↓ 1 callersFunction_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 callersFunction_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/utils/agent_utils.py:82
↓ 1 callersFunction_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 callersFunction_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 callersMethod_create_chat_result
(self, response, generation_info=None)
tradingagents/llm_clients/openai_client.py:114
↓ 1 callersFunction_fetch_openrouter_models
Fetch available models from the OpenRouter API.
cli/utils.py:212
↓ 1 callersFunction_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 callersFunction_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 callersFunction_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 callersFunction_fmt
(value)
tradingagents/dataflows/market_data_validator.py:48
↓ 1 callersMethod_format_full
(self, e: dict)
tradingagents/agents/utils/memory.py:318
↓ 1 callersMethod_format_reflection_only
(self, e: dict)
tradingagents/agents/utils/memory.py:328
↓ 1 callersMethod_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
← previousnext →101–200 of 974, ranked by callers