MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions854 in github.com/TauricResearch/TradingAgents

↓ 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:195
↓ 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:125
↓ 3 callersMethodmark_completed
( self, analyst_key: str, completed_at: float | None = None, )
tradingagents/graph/analyst_execution.py:87
↓ 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:168
↓ 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:220
↓ 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:188
↓ 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:42
↓ 2 callersFunction_extract_article_data
Extract article data from yfinance news format (handles nested 'content' structure).
tradingagents/dataflows/yfinance_news.py:14
↓ 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:93
↓ 2 callersFunction_in_news_window
Whether an article belongs in the [start_dt, end_dt] window. Dated articles are kept only if they fall in the window. An undated article is k
tradingagents/dataflows/yfinance_news.py:60
↓ 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 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.
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_retries.py:81
↓ 2 callersFunction_reset_config
()
tests/test_vendor_routing.py:21
↓ 2 callersFunction_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/reddit.py:52
↓ 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:235
↓ 2 callersFunction_structured_trader_llm
Build a MagicMock LLM whose with_structured_output binding captures the prompt and returns a real TraderProposal so render_trader_proposal works.
tests/test_structured_agents.py:137
↓ 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:164
↓ 2 callersFunctionclear_checkpoint
Remove checkpoint for a specific ticker+date by deleting the thread's rows.
tradingagents/graph/checkpointer.py:84
↓ 2 callersFunctioncreate_question_box
(title, prompt, default=None)
cli/main.py:514
↓ 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:362
↓ 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:336
↓ 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:404
↓ 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:173
↓ 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:58
↓ 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:961
↓ 1 callersFunction_build_system_message
Assemble the sentiment-analyst system message with structured data blocks.
tradingagents/agents/analysts/sentiment_analyst.py:121
↓ 1 callersFunction_clean_dataframe
Normalize a stock DataFrame for stockstats: parse dates, drop invalid rows, fill price gaps.
tradingagents/dataflows/stockstats_utils.py:57
↓ 1 callersFunction_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/utils/agent_utils.py:68
↓ 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:35
↓ 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:71
↓ 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:176
↓ 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:283
↓ 1 callersMethod_format_reflection_only
(self, e: dict)
tradingagents/agents/utils/memory.py:293
↓ 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
↓ 1 callersFunction_get_stock_stats_bulk
Optimized bulk calculation of stock stats indicators. Fetches data once and calculates indicator for all available dates. Returns dict ma
tradingagents/dataflows/y_finance.py:212
↓ 1 callersFunction_is_forward_looking
Keep only open markets that resolve in the future. ``closed`` is the reliable resolved flag (``active`` stays True even for settled markets),
tradingagents/dataflows/polymarket.py:47
↓ 1 callersFunction_iso_to_timestamp
Parse an Atom ``published`` timestamp to a UTC epoch, or None.
tradingagents/dataflows/reddit.py:62
↓ 1 callersMethod_log_state
Log the final state to a JSON file.
tradingagents/graph/trading_graph.py:484
↓ 1 callersFunction_make_pm_state
(investment_plan: str, trader_plan: str)
scripts/smoke_structured_output.py:76
↓ 1 callersFunction_make_rm_state
()
scripts/smoke_structured_output.py:55
↓ 1 callersFunction_make_trader_state
(investment_plan: str)
scripts/smoke_structured_output.py:69
↓ 1 callersFunction_market
(question, prob, *, volume, end_date, closed=False, wk=None)
tests/test_polymarket.py:19
↓ 1 callersFunction_normalize_crypto
Return ``<BASE>-USD`` for a known USD/USDT/USDC-quoted crypto, else None.
tradingagents/dataflows/symbol_utils.py:98
↓ 1 callersMethod_parse_entry
(self, raw: str)
tradingagents/agents/utils/memory.py:257
↓ 1 callersFunction_print_section
(title: str, content: str)
scripts/smoke_structured_output.py:100
↓ 1 callersFunction_prompt_custom_model_id
Prompt user to type a custom model ID.
cli/utils.py:287
↓ 1 callersFunction_raise
(exc)
tests/test_stocktwits_resilience.py:19
↓ 1 callersFunction_request
(path: str, params: dict)
tradingagents/dataflows/polymarket.py:29
↓ 1 callersFunction_request
GET a FRED endpoint, surfacing FRED's JSON error body on a bad request.
tradingagents/dataflows/fred.py:118
↓ 1 callersFunction_resolve_series_id
Map a friendly alias to a FRED series ID, or pass a raw ID through. Raises ``ValueError`` when the input is neither a known alias nor a plausible
tradingagents/dataflows/fred.py:95
↓ 1 callersFunction_retry_after_seconds
Seconds to wait from a 429's ``Retry-After`` header, capped at 30s.
tradingagents/dataflows/reddit.py:84
↓ 1 callersMethod_route_method
(self, method, vendors)
tests/test_vendor_routing.py:99
↓ 1 callersMethod_run_graph
Execute the graph and write the resulting state to disk and memory log.
tradingagents/graph/trading_graph.py:419
↓ 1 callersFunction_seven_days_back
(trade_date: str)
tradingagents/agents/analysts/sentiment_analyst.py:46
↓ 1 callersFunction_stocktwits_symbol
Map a crypto pair to StockTwits' ``<BASE>.X`` convention. StockTwits lists crypto as ``BTC.X`` (Yahoo's ``BTC-USD`` form 404s), so any crypto
tradingagents/dataflows/stocktwits.py:30
↓ 1 callersFunction_strip_html
Reduce the HTML body Reddit embeds in an Atom entry to plain text.
tradingagents/dataflows/reddit.py:73
↓ 1 callersFunction_supports_effort
Whether Anthropic accepts the ``effort`` parameter for this model.
tradingagents/llm_clients/anthropic_client.py:27
↓ 1 callersMethod_update_current_report
(self)
cli/main.py:178
↓ 1 callersMethod_update_final_report
(self)
cli/main.py:207
↓ 1 callersFunction_verified_rows
OHLCV on or before curr_date, date-sorted. Raises if nothing usable. ``load_ohlcv`` already normalizes the Date column and filters out look-a
tradingagents/dataflows/market_data_validator.py:28
↓ 1 callersMethodadd_message
(self, message_type, content)
cli/main.py:160
↓ 1 callersMethodadd_tool_call
(self, tool_name, args)
cli/main.py:164
← previousnext →101–200 of 854, ranked by callers