MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,834 in github.com/TauricResearch/TradingAgents

↓ 1 callersFunction_request
(path: str, params: dict)
tradingagents/dataflows/vendors/polymarket.py:32
↓ 1 callersFunction_request
GET a FRED endpoint, surfacing FRED's JSON error body on a bad request.
tradingagents/dataflows/vendors/fred.py:146
↓ 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/vendors/fred.py:113
↓ 1 callersFunction_response
(status_code)
tests/test_get_scrubbed.py:23
↓ 1 callersFunction_retry_after
(response)
tradingagents/agents/post_screen.py:101
↓ 1 callersFunction_retry_after_seconds
Seconds to wait from a 429's ``Retry-After`` header, capped at 60s. The cap matches ``_RETRY_FALLBACK_SECONDS``: honouring less than we would
tradingagents/dataflows/vendors/reddit.py:151
↓ 1 callersMethod_route_method
(self, method, vendors)
tests/test_vendor_routing.py:100
↓ 1 callersFunction_run_details
The run details as (label, value HTML); every value from the run is escaped.
tradingagents/report_html.py:224
↓ 1 callersFunction_run_directory
Where this run writes, with the ticker validated as a path component. Every other path that interpolates a ticker checks it first; a value of
cli/run.py:36
↓ 1 callersFunction_search_news
Yahoo search's articles tagged with ``canonical``, and whether it knows the symbol. Search answers when the quote feed is empty, but its articles
tradingagents/dataflows/vendors/yahoo/news.py:57
↓ 1 callersFunction_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/vendors/reddit.py:105
↓ 1 callersFunction_seven_days_back
(trade_date: str)
tradingagents/agents/analysts/sentiment_analyst.py:43
↓ 1 callersFunction_span_index
Which of ``spans`` a duration fact covers (0 for an instant fact), or None.
tradingagents/dataflows/vendors/sec_edgar.py:146
↓ 1 callersFunction_stance
(answer: dict)
tradingagents/agents/post_screen.py:120
↓ 1 callersFunction_status
(url)
tests/test_chatgpt_auth.py:267
↓ 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/vendors/stocktwits.py:63
↓ 1 callersFunction_strip_html
Reduce the HTML body Reddit embeds in an Atom entry to plain text.
tradingagents/dataflows/vendors/reddit.py:126
↓ 1 callersFunction_supports_effort
Whether Anthropic accepts the ``effort`` parameter for this model.
tradingagents/llm_clients/anthropic_client.py:28
↓ 1 callersFunction_unscreened
(instrument: str, posts: list[str], failure: str)
tradingagents/agents/post_screen.py:162
↓ 1 callersMethod_update_current_report
(self)
cli/display.py:132
↓ 1 callersFunction_url
System One's endpoint: the base TypeSafe's SDKs read, plus /v1/systemone.
tradingagents/agents/post_screen.py:127
↓ 1 callersFunction_user_agent
Who SEC sees. No account or key exists; callers identify themselves. www.sec.gov, which serves the ticker map, refuses a User-Agent carrying no
tradingagents/dataflows/vendors/sec_edgar.py:93
↓ 1 callersFunction_verified_rows
OHLCV on or before as_of_date, date-sorted. Raises NoMarketDataError if nothing usable. ``load_ohlcv`` already normalizes the Date column and fil
tradingagents/dataflows/vendors/yahoo/snapshot.py:31
↓ 1 callersFunction_within_window
Keep only messages published in [start_date, end_date] (look-ahead safe). No window (both None) leaves the list untouched for live callers. A mes
tradingagents/dataflows/vendors/stocktwits.py:44
↓ 1 callersFunction_within_window
Keep only posts published in [start_date, end_date] (look-ahead safe). No window (both None) leaves the list untouched for live callers. A post w
tradingagents/dataflows/vendors/reddit.py:38
↓ 1 callersFunction_workflow
()
tests/test_checkpoint_lifecycle.py:38
↓ 1 callersFunctionaccess_token
A valid access token, renewed when it has under five minutes left. Renewal happens under a lock every thread and process shares, and starts from
tradingagents/llm_clients/chatgpt_auth.py:210
↓ 1 callersMethodadd_tool_call
(self, tool_name, args)
cli/display.py:119
↓ 1 callersFunctionask_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/prompts.py:556
↓ 1 callersFunctionask_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/prompts.py:609
↓ 1 callersFunctionask_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/prompts.py:582
↓ 1 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/memory/log.py:206
↓ 1 callersMethodbind_tools
(self, tools, **kwargs)
tests/test_graph_end_to_end.py:63
↓ 1 callersFunctionbuild_default_config
The built-in defaults with the TRADINGAGENTS_* environment folded in. Read when the package is imported, as DEFAULT_CONFIG; call it again to see
tradingagents/default_config.py:77
↓ 1 callersFunctionbuild_verified_market_snapshot
Render a ground-truth snapshot: latest OHLCV row, indicators, recent closes.
tradingagents/dataflows/vendors/yahoo/snapshot.py:67
↓ 1 callersFunctioncalls
(messages)
tradingagents/graph/setup.py:70
↓ 1 callersMethodcheckpoint_input
(self, state)
tests/test_rating_integrity.py:137
↓ 1 callersMethodcheckpoint_scope
Context-manager form of begin/end_checkpoint for the propagate path.
tradingagents/graph/trading_graph.py:240
↓ 1 callersFunctioncik_for
The filer's CIK, or None when the ticker is not a US filer.
tradingagents/dataflows/vendors/sec_edgar.py:136
↓ 1 callersFunctionclassify_message_type
Classify LangChain message into display type and extract content. Returns: (type, content) - type is one of: User, Agent, Data, Control
cli/display.py:540
↓ 1 callersMethodclear_checkpoint_on_success
(self, *a, **k)
tests/test_rating_integrity.py:140
↓ 1 callersFunctioncloses
(until)
tradingagents/memory/settlement.py:90
↓ 1 callersFunctionconfirm_ollama_endpoint
Show the resolved Ollama endpoint after provider selection. Surfaces three things the user benefits from seeing before model selection: which
cli/prompts.py:636
↓ 1 callersFunctioncreate_bear_researcher
(llm)
tradingagents/agents/researchers/bear_researcher.py:9
↓ 1 callersFunctioncreate_conservative_debator
(llm)
tradingagents/agents/risk_mgmt/conservative_debator.py:10
↓ 1 callersFunctioncreate_fundamentals_analyst
(llm)
tradingagents/agents/analysts/fundamentals_analyst.py:23
↓ 1 callersFunctioncreate_layout
()
cli/display.py:160
↓ 1 callersFunctioncreate_market_analyst
(llm)
tradingagents/agents/analysts/market_analyst.py:15
↓ 1 callersFunctioncreate_neutral_debator
(llm)
tradingagents/agents/risk_mgmt/neutral_debator.py:10
↓ 1 callersFunctioncreate_news_analyst
(llm)
tradingagents/agents/analysts/news_analyst.py:21
↓ 1 callersFunctioncreate_tier_client
The client for the ``quick`` or ``deep`` model tier (#1440). A tier on its own provider gets that provider's settings (thinking level, reason
tradingagents/llm_clients/factory.py:142
↓ 1 callersFunctioncredential
The api_key callable for the chatgpt provider; raises now when nobody is signed in, so a run stops before it starts rather than at its first model
tradingagents/llm_clients/chatgpt_auth.py:246
↓ 1 callersFunctiondecimals
(distance: float)
tradingagents/dataflows/vendors/polymarket.py:74
↓ 1 callersFunctiondisplay_complete_report
Display the complete analysis report sequentially (avoids truncation).
cli/display.py:379
↓ 1 callersFunctiondue
(cache: dict, now: float)
cli/updates.py:63
↓ 1 callersFunctionensure_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/prompts.py:692
↓ 1 callersFunctionensure_signed_in
Make sure a plan provider's sign-in works before the run, offering to sign in now. Signing in runs as its own process (``tradingagents login chat
cli/prompts.py:666
↓ 1 callersFunctioneps
(date)
tests/test_sec_edgar.py:284
↓ 1 callersFunctionfetch_reddit_posts
Fetch recent Reddit posts mentioning ``ticker`` across finance subreddits (by default ``subreddits_for(ticker)``) and return them as a formatt
tradingagents/dataflows/vendors/reddit.py:248
↓ 1 callersFunctionfetch_returns
Fetch raw and alpha return for ticker over holding_days after trade_date. The position is entered at the first close after ``trade_date``: a run
tradingagents/memory/settlement.py:60
↓ 1 callersFunctionfetch_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/vendors/stocktwits.py:74
↓ 1 callersMethodfingerprint
Stable digest of the book, so a changed one cannot resume a stale run.
tradingagents/portfolio.py:70
↓ 1 callersFunctionformat_tokens
Format token count for display.
cli/display.py:176
↓ 1 callersFunctionformat_tool_args
Format tool arguments for terminal display.
cli/display.py:566
↓ 1 callersFunctionget_analysis_date
Get the analysis date from user input.
cli/selections.py:374
↓ 1 callersFunctionget_api_key
Retrieve the FRED API key from the environment.
tradingagents/dataflows/vendors/fred.py:102
↓ 1 callersFunctionget_api_key
Retrieve the API key for Alpha Vantage from environment variables.
tradingagents/dataflows/vendors/alpha_vantage/common.py:28
↓ 1 callersFunctionget_category_for_method
Get the category that contains the specified method.
tradingagents/dataflows/router.py:152
↓ 1 callersFunctionget_closes
Daily closes from ``start_date`` up to, not including, ``end_date``.
tradingagents/dataflows/vendors/yahoo/market.py:266
↓ 1 callersFunctionget_company_profile
Yahoo's current profile for ``ticker``: name, sector, industry and the like.
tradingagents/dataflows/vendors/yahoo/fundamentals.py:169
↓ 1 callersMethodget_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/display.py:94
↓ 1 callersMethodget_graph_args
Get arguments for the graph invocation. Args: callbacks: Optional list of callback handlers for tool execution tracking.
tradingagents/graph/propagation.py:67
↓ 1 callersMethodget_llm
Return configured ChatGoogleGenerativeAI instance.
tradingagents/llm_clients/google_client.py:44
↓ 1 callersMethodget_llm
Return the configured LLM instance.
tradingagents/llm_clients/base_client.py:55
↓ 1 callersMethodget_provider_name
Return the provider name used in warning messages.
tradingagents/llm_clients/base_client.py:33
↓ 1 callersMethodget_stats
Return current statistics.
cli/stats_handler.py:68
↓ 1 callersFunctionget_stock_stats
( symbol: Annotated[str, "ticker symbol for the company"], indicator: Annotated[ str, "quantit
tradingagents/dataflows/vendors/yahoo/market.py:273
↓ 1 callersFunctionget_stockstats_indicator
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/vendors/yahoo/market.py:236
↓ 1 callersFunctionget_ticker
Prompt the user to enter a ticker symbol, preserving exchange suffixes. Uses questionary.text (not typer.prompt, which strips trailing dot-suffix
cli/prompts.py:55
↓ 1 callersFunctionget_user_selections
Ask for the run's settings, offering the previous run's answers.
cli/selections.py:45
↓ 1 callersFunctionis_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/display.py:507
↓ 1 callersFunctionis_review
Whether a signal is the non-tradeable REVIEW sentinel (#1170).
tradingagents/agents/rating.py:115
↓ 1 callersFunctionjev_screen
A post screen for the social fetchers, or None without a TypeSafe key. The screen takes the post texts and returns one keep flag per post and a
tradingagents/agents/post_screen.py:133
↓ 1 callersFunctionmessages
The lines to show: a newer release with its upgrade command (``upgrade()``, asked only when there is one), then the notices for this version.
cli/updates.py:153
↓ 1 callersFunctionmoney
(key, currency)
tradingagents/dataflows/vendors/yahoo/fundamentals.py:59
↓ 1 callersFunctionparse_analysis_date
An analysis date as YYYY-MM-DD, today or earlier.
cli/prompts.py:90
↓ 1 callersFunctionparse_analysts
Comma-separated analyst names, in the canonical order, checked against the asset.
cli/prompts.py:101
↓ 1 callersFunctionparse_notices
The targeted notices in an announcements answer; None when it has no notices list.
cli/updates.py:77
↓ 1 callersMethodposition_in
(self, ticker: str)
tradingagents/portfolio.py:47
↓ 1 callersFunctionprompt_openai_compatible_url
Prompt for a custom OpenAI-compatible endpoint base URL.
cli/prompts.py:433
↓ 1 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:167
↓ 1 callersFunctionread_line
()
tests/test_chatgpt_auth.py:222
↓ 1 callersFunctionrefuse
(*args, **kwargs)
tests/conftest.py:65
↓ 1 callersFunctionrender_report
The report page: title and rating, what produced the run, contents, sections.
tradingagents/report_html.py:248
↓ 1 callersFunctionresolve_benchmark
Pick the benchmark ticker for alpha calculation against ``ticker``. ``config["benchmark_ticker"]`` overrides everything when set; otherwise t
tradingagents/memory/settlement.py:16
↓ 1 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:117
↓ 1 callersFunctionrounds
(messages)
tradingagents/graph/setup.py:73
↓ 1 callersFunctionrun_analysis
(checkpoint: bool | None = None, portfolio=None, flags=None)
cli/run.py:99
↓ 1 callersFunctionrun_config_context
A context serving ``config``, over the defaults, to every read run in it. For a run that yields between steps, where a ``run_config`` block would
tradingagents/dataflows/config.py:54
↓ 1 callersFunctionsave_message_decorator
(obj, func_name)
cli/run.py:142
← previousnext →401–500 of 1,834, ranked by callers