Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
1,834 in github.com/TauricResearch/TradingAgents
⨍
Functions
1,834
◇
Types & classes
212
↳
Endpoints
18
↓ 1 callers
Function
_request
(path: str, params: dict)
tradingagents/dataflows/vendors/polymarket.py:32
↓ 1 callers
Function
_request
GET a FRED endpoint, surfacing FRED's JSON error body on a bad request.
tradingagents/dataflows/vendors/fred.py:146
↓ 1 callers
Function
_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 callers
Function
_response
(status_code)
tests/test_get_scrubbed.py:23
↓ 1 callers
Function
_retry_after
(response)
tradingagents/agents/post_screen.py:101
↓ 1 callers
Function
_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 callers
Method
_route_method
(self, method, vendors)
tests/test_vendor_routing.py:100
↓ 1 callers
Function
_run_details
The run details as (label, value HTML); every value from the run is escaped.
tradingagents/report_html.py:224
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/vendors/reddit.py:105
↓ 1 callers
Function
_seven_days_back
(trade_date: str)
tradingagents/agents/analysts/sentiment_analyst.py:43
↓ 1 callers
Function
_span_index
Which of ``spans`` a duration fact covers (0 for an instant fact), or None.
tradingagents/dataflows/vendors/sec_edgar.py:146
↓ 1 callers
Function
_stance
(answer: dict)
tradingagents/agents/post_screen.py:120
↓ 1 callers
Function
_status
(url)
tests/test_chatgpt_auth.py:267
↓ 1 callers
Function
_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 callers
Function
_strip_html
Reduce the HTML body Reddit embeds in an Atom entry to plain text.
tradingagents/dataflows/vendors/reddit.py:126
↓ 1 callers
Function
_supports_effort
Whether Anthropic accepts the ``effort`` parameter for this model.
tradingagents/llm_clients/anthropic_client.py:28
↓ 1 callers
Function
_unscreened
(instrument: str, posts: list[str], failure: str)
tradingagents/agents/post_screen.py:162
↓ 1 callers
Method
_update_current_report
(self)
cli/display.py:132
↓ 1 callers
Function
_url
System One's endpoint: the base TypeSafe's SDKs read, plus /v1/systemone.
tradingagents/agents/post_screen.py:127
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_workflow
()
tests/test_checkpoint_lifecycle.py:38
↓ 1 callers
Function
access_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 callers
Method
add_tool_call
(self, tool_name, args)
cli/display.py:119
↓ 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/prompts.py:556
↓ 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/prompts.py:609
↓ 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/prompts.py:582
↓ 1 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/memory/log.py:206
↓ 1 callers
Method
bind_tools
(self, tools, **kwargs)
tests/test_graph_end_to_end.py:63
↓ 1 callers
Function
build_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 callers
Function
build_verified_market_snapshot
Render a ground-truth snapshot: latest OHLCV row, indicators, recent closes.
tradingagents/dataflows/vendors/yahoo/snapshot.py:67
↓ 1 callers
Function
calls
(messages)
tradingagents/graph/setup.py:70
↓ 1 callers
Method
checkpoint_input
(self, state)
tests/test_rating_integrity.py:137
↓ 1 callers
Method
checkpoint_scope
Context-manager form of begin/end_checkpoint for the propagate path.
tradingagents/graph/trading_graph.py:240
↓ 1 callers
Function
cik_for
The filer's CIK, or None when the ticker is not a US filer.
tradingagents/dataflows/vendors/sec_edgar.py:136
↓ 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/display.py:540
↓ 1 callers
Method
clear_checkpoint_on_success
(self, *a, **k)
tests/test_rating_integrity.py:140
↓ 1 callers
Function
closes
(until)
tradingagents/memory/settlement.py:90
↓ 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/prompts.py:636
↓ 1 callers
Function
create_bear_researcher
(llm)
tradingagents/agents/researchers/bear_researcher.py:9
↓ 1 callers
Function
create_conservative_debator
(llm)
tradingagents/agents/risk_mgmt/conservative_debator.py:10
↓ 1 callers
Function
create_fundamentals_analyst
(llm)
tradingagents/agents/analysts/fundamentals_analyst.py:23
↓ 1 callers
Function
create_layout
()
cli/display.py:160
↓ 1 callers
Function
create_market_analyst
(llm)
tradingagents/agents/analysts/market_analyst.py:15
↓ 1 callers
Function
create_neutral_debator
(llm)
tradingagents/agents/risk_mgmt/neutral_debator.py:10
↓ 1 callers
Function
create_news_analyst
(llm)
tradingagents/agents/analysts/news_analyst.py:21
↓ 1 callers
Function
create_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 callers
Function
credential
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 callers
Function
decimals
(distance: float)
tradingagents/dataflows/vendors/polymarket.py:74
↓ 1 callers
Function
display_complete_report
Display the complete analysis report sequentially (avoids truncation).
cli/display.py:379
↓ 1 callers
Function
due
(cache: dict, now: float)
cli/updates.py:63
↓ 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/prompts.py:692
↓ 1 callers
Function
ensure_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 callers
Function
eps
(date)
tests/test_sec_edgar.py:284
↓ 1 callers
Function
fetch_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 callers
Function
fetch_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 callers
Function
fetch_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 callers
Method
fingerprint
Stable digest of the book, so a changed one cannot resume a stale run.
tradingagents/portfolio.py:70
↓ 1 callers
Function
format_tokens
Format token count for display.
cli/display.py:176
↓ 1 callers
Function
format_tool_args
Format tool arguments for terminal display.
cli/display.py:566
↓ 1 callers
Function
get_analysis_date
Get the analysis date from user input.
cli/selections.py:374
↓ 1 callers
Function
get_api_key
Retrieve the FRED API key from the environment.
tradingagents/dataflows/vendors/fred.py:102
↓ 1 callers
Function
get_api_key
Retrieve the API key for Alpha Vantage from environment variables.
tradingagents/dataflows/vendors/alpha_vantage/common.py:28
↓ 1 callers
Function
get_category_for_method
Get the category that contains the specified method.
tradingagents/dataflows/router.py:152
↓ 1 callers
Function
get_closes
Daily closes from ``start_date`` up to, not including, ``end_date``.
tradingagents/dataflows/vendors/yahoo/market.py:266
↓ 1 callers
Function
get_company_profile
Yahoo's current profile for ``ticker``: name, sector, industry and the like.
tradingagents/dataflows/vendors/yahoo/fundamentals.py:169
↓ 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/display.py:94
↓ 1 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:67
↓ 1 callers
Method
get_llm
Return configured ChatGoogleGenerativeAI instance.
tradingagents/llm_clients/google_client.py:44
↓ 1 callers
Method
get_llm
Return the configured LLM instance.
tradingagents/llm_clients/base_client.py:55
↓ 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
Function
get_stock_stats
( symbol: Annotated[str, "ticker symbol for the company"], indicator: Annotated[ str, "quantit
tradingagents/dataflows/vendors/yahoo/market.py:273
↓ 1 callers
Function
get_stockstats_indicator
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/vendors/yahoo/market.py:236
↓ 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/prompts.py:55
↓ 1 callers
Function
get_user_selections
Ask for the run's settings, offering the previous run's answers.
cli/selections.py:45
↓ 1 callers
Function
is_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 callers
Function
is_review
Whether a signal is the non-tradeable REVIEW sentinel (#1170).
tradingagents/agents/rating.py:115
↓ 1 callers
Function
jev_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 callers
Function
messages
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 callers
Function
money
(key, currency)
tradingagents/dataflows/vendors/yahoo/fundamentals.py:59
↓ 1 callers
Function
parse_analysis_date
An analysis date as YYYY-MM-DD, today or earlier.
cli/prompts.py:90
↓ 1 callers
Function
parse_analysts
Comma-separated analyst names, in the canonical order, checked against the asset.
cli/prompts.py:101
↓ 1 callers
Function
parse_notices
The targeted notices in an announcements answer; None when it has no notices list.
cli/updates.py:77
↓ 1 callers
Method
position_in
(self, ticker: str)
tradingagents/portfolio.py:47
↓ 1 callers
Function
prompt_openai_compatible_url
Prompt for a custom OpenAI-compatible endpoint base URL.
cli/prompts.py:433
↓ 1 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:167
↓ 1 callers
Function
read_line
()
tests/test_chatgpt_auth.py:222
↓ 1 callers
Function
refuse
(*args, **kwargs)
tests/conftest.py:65
↓ 1 callers
Function
render_report
The report page: title and rating, what produced the run, contents, sections.
tradingagents/report_html.py:248
↓ 1 callers
Function
resolve_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 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:117
↓ 1 callers
Function
rounds
(messages)
tradingagents/graph/setup.py:73
↓ 1 callers
Function
run_analysis
(checkpoint: bool | None = None, portfolio=None, flags=None)
cli/run.py:99
↓ 1 callers
Function
run_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 callers
Function
save_message_decorator
(obj, func_name)
cli/run.py:142
← previous
next →
401–500 of 1,834, ranked by callers