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
↓ 2 callers
Function
price_text
A price with six significant digits and at least two decimals. Fixed decimals print a sub-cent coin as 0.00 and a currency pair without its p
tradingagents/dataflows/vendors/yahoo/common.py:19
↓ 2 callers
Method
record_decision
Record a finished run: its state log, and its decision in the memory log for reflection on the next same-ticker run. propagate() and the CLI b
tradingagents/graph/trading_graph.py:359
↓ 2 callers
Method
render
(self)
tradingagents/backtest.py:109
↓ 2 callers
Function
render_pm_decision
Render a PortfolioDecision back to the markdown shape the rest of the system expects. Memory log, CLI display, and saved report files all read th
tradingagents/agents/schemas.py:268
↓ 2 callers
Function
render_research_plan
Render a ResearchPlan to markdown for storage and the trader's prompt context.
tradingagents/agents/schemas.py:130
↓ 2 callers
Function
screen
(posts: list[str])
tradingagents/agents/post_screen.py:144
↓ 2 callers
Method
settling
Hold the log for one settlement pass at a time, across threads and processes. A pass reads the pending entries, asks the model for a reflecti
tradingagents/memory/log.py:62
↓ 2 callers
Method
should_continue_debate
Determine if debate should continue.
tradingagents/graph/conditional_logic.py:12
↓ 2 callers
Method
stream_run
Stream a run as ``(messages, state)`` pairs. ``messages`` are the agents' messages, the analysts' included. ``state`` is the run's st
tradingagents/graph/trading_graph.py:407
↓ 2 callers
Method
stream_run
(self, *a, **k)
tests/test_rating_integrity.py:146
↓ 2 callers
Function
subreddits_for
The subreddits searched for ``ticker``: crypto communities for a crypto pair.
tradingagents/dataflows/vendors/reddit.py:87
↓ 2 callers
Function
sync_analyst_tracker_from_chunk
The analysts start together; each stops its clock when its report lands.
cli/display.py:612
↓ 2 callers
Function
tier_provider
The provider of the ``quick`` or ``deep`` model tier: its own, else ``llm_provider``.
tradingagents/llm_clients/factory.py:137
↓ 2 callers
Function
to_utc
Normalize a datetime to UTC-aware; a naive value is assumed to be UTC.
tradingagents/dataflows/date_window.py:19
↓ 2 callers
Function
update_analyst_statuses
Update analyst statuses from the reports filed so far. The analysts run together: each is in progress until its own report lands. When every
cli/display.py:465
↓ 2 callers
Method
update_report_section
(self, section_name, content)
cli/display.py:127
↓ 2 callers
Function
vendor_reachable
Whether the vendor answers at all, for telling silence from an outage. A client that returns an empty result instead of raising leaves those two
tradingagents/dataflows/net.py:27
↓ 2 callers
Function
vendor_unavailable
What a call returns when every vendor was throttled or unreachable.
tradingagents/dataflows/router.py:176
↓ 2 callers
Method
with_structured_output
(self, schema, *, method=None, **kwargs)
tradingagents/llm_clients/openai_client.py:42
↓ 2 callers
Function
withhold_undisclosed_trades
Notice to serve instead of insider trades with no filing date, or None to serve them. A vendor that dates an insider trade by when it happened (Y
tradingagents/dataflows/date_window.py:140
↓ 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
Method
__init__
( self, model: str, base_url: str | None = None, provider: str = "openai",
tradingagents/llm_clients/openai_client.py:334
↓ 1 callers
Function
_accepts_minimal_thinking
Whether ``thinking_level="minimal"`` is accepted: numbered Flash models before 3.8. Pro, 3.8+ and version-less aliases (which move between gen
tradingagents/llm_clients/google_client.py:12
↓ 1 callers
Function
_alpha
Alpha return of a settled entry, or None when it has not settled. The log stores it as a percentage rounded to one decimal, so aggregates here
tradingagents/backtest.py:66
↓ 1 callers
Function
_analyst_graph
One analyst as a graph of its own: the model and its tools, on a private message history. It returns only its report, so analysts running side by
tradingagents/graph/setup.py:53
↓ 1 callers
Function
_announce_checkpoint_state
Say whether this run resumed a saved one, where the user can see it. The graph logs this, but nothing in the CLI configures logging and the live
cli/run.py:45
↓ 1 callers
Function
_answer_every_prompt
Drive the real selection flow, answering each prompt with a fixed value.
tests/test_cli_prefs.py:94
↓ 1 callers
Function
_answered_empty
Whether Yahoo answered that it has nothing: no such symbol (HTTP 404), or a price window with no prices in it. yfinance raises YFPricesMissin
tradingagents/dataflows/vendors/yahoo/common.py:48
↓ 1 callers
Function
_answers
(response, questions: dict)
tradingagents/agents/post_screen.py:108
↓ 1 callers
Function
_applies
Whether a notice is for this version and unexpired; a bound or date that cannot be read keeps it hidden. A notice is shown through its ``expires``
cli/updates.py:136
↓ 1 callers
Function
_apply_env_overrides
Apply TRADINGAGENTS_* env vars to the config dict in-place.
tradingagents/default_config.py:64
↓ 1 callers
Function
_as_of
({(period end, span index): value}, unit) for the tags the filer reports, as known then. A period reported more than once takes its latest filing
tradingagents/dataflows/vendors/sec_edgar.py:154
↓ 1 callers
Function
_as_text
The history with its tool calls and tool results written out as plain messages.
tradingagents/agents/analysts/turn.py:30
↓ 1 callers
Function
_ask_each
One request per post. The first failure raises at once: requests not yet sent are cancelled, and those in flight finish in the background unread.
tradingagents/agents/post_screen.py:167
↓ 1 callers
Function
_b64url
(raw: bytes)
tradingagents/llm_clients/chatgpt_auth.py:97
↓ 1 callers
Function
_b64url_decode
(text: str)
tradingagents/llm_clients/chatgpt_auth.py:101
↓ 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
_blank_settings_overlay
Blank every TRADINGAGENTS_* setting before the package is imported. The package loads .env on import and folds these variables into DEFAULT_C
tests/conftest.py:9
↓ 1 callers
Function
_body
The message text; the API serves it HTML-escaped (``&``, ``'``).
tradingagents/dataflows/vendors/stocktwits.py:58
↓ 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/run.py:59
↓ 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
_by_day
Final closes keyed by the calendar day of their bar, missing closes dropped. Yahoo stamps a daily bar at midnight in its market's time zone (UTC
tradingagents/memory/settlement.py:44
↓ 1 callers
Function
_cache_is_fresh
Whether the symbol's cached download can serve this request. The file holds the download made on the day it was written, so it serves only th
tradingagents/dataflows/vendors/yahoo/ohlcv.py:146
↓ 1 callers
Function
_canonical
Parse a grid bound, rejecting anything the run date would also reject.
tradingagents/backtest.py:55
↓ 1 callers
Function
_chain
A vendor chain in the order it is tried: ``a,b`` reads a, then b.
tradingagents/report_html.py:214
↓ 1 callers
Function
_check_tier_providers
Check each provider the model tiers use (#1440) before the run. A tier on another provider needs its model from its variable, since the model
cli/selections.py:74
↓ 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/vendors/yahoo/ohlcv.py:68
↓ 1 callers
Function
_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/context.py:51
↓ 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:41
↓ 1 callers
Function
_coerce_ohlcv_dates
Return parsed dates from an OHLCV frame, whether Date is a column or the index.
tradingagents/dataflows/vendors/yahoo/ohlcv.py:92
↓ 1 callers
Function
_coverage_dates
Dates that bound the feed's coverage. The search is limited to the last week (``t=week``), so the lookback start bounds it even when nothing came
tradingagents/dataflows/vendors/reddit.py:57
↓ 1 callers
Method
_create_chat_result
(self, response, generation_info=None)
tradingagents/llm_clients/openai_client.py:118
↓ 1 callers
Function
_dates_after
(text: str, cutoff: str)
tests/test_undated_tools_as_of.py:236
↓ 1 callers
Function
_due
Whether to renew: under five minutes left, and OpenAI accepts a renewal by now (``earliest_refresh_at``), unless the token has already run out.
tradingagents/llm_clients/chatgpt_auth.py:200
↓ 1 callers
Function
_fetch_json
Read a public EDGAR document, respecting SEC's identification rule.
tradingagents/dataflows/vendors/sec_edgar.py:108
↓ 1 callers
Function
_fetch_openrouter_models
Fetch available models from the OpenRouter API.
cli/prompts.py:241
↓ 1 callers
Function
_fetch_subreddit_rss
Default path: parse the public Atom search feed for a subreddit. ``sub`` may be one subreddit or several joined with ``+``. On a 429 (Reddit's
tradingagents/dataflows/vendors/reddit.py:185
↓ 1 callers
Function
_fields
(fragment)
tests/test_report_html.py:86
↓ 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/vendors/yahoo/ohlcv.py:82
↓ 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/vendors/alpha_vantage/common.py:137
↓ 1 callers
Function
_fmt
(value)
tradingagents/dataflows/vendors/yahoo/snapshot.py:53
↓ 1 callers
Method
_format_full
(self, e: dict)
tradingagents/memory/log.py:344
↓ 1 callers
Method
_format_reflection_only
(self, e: dict)
tradingagents/memory/log.py:354
↓ 1 callers
Function
_fred_today
FRED's current calendar date (US Central) as ``yyyy-mm-dd``. The vintage pin is clamped to this: FRED rejects a ``realtime_start`` after its
tradingagents/dataflows/vendors/fred.py:136
↓ 1 callers
Function
_from_flag
A flag's value through the same check its prompt applies; a bad one ends the run.
cli/selections.py:106
↓ 1 callers
Method
_generate
(self, messages, stop=None, run_manager=None, **kwargs)
tests/test_graph_end_to_end.py:298
↓ 1 callers
Function
_get_json
(url: str)
cli/updates.py:83
↓ 1 callers
Function
_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/vendors/yahoo/market.py:205
↓ 1 callers
Function
_graphical_browser
A browser that opens a page in its own window on this machine, or None. Over SSH the page sits on the remote machine, and a terminal browser (lyn
cli/run.py:396
↓ 1 callers
Function
_group
(name: str, values_html: str)
tradingagents/report_html.py:220
↓ 1 callers
Function
_identity
The vendor's identity fields for ``ticker``; raises if the lookup fails.
tradingagents/agents/context.py:86
↓ 1 callers
Function
_imports
(path: Path)
tests/test_layering.py:16
↓ 1 callers
Function
_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/vendors/polymarket.py:50
↓ 1 callers
Function
_iso_to_timestamp
Parse an Atom ``published`` timestamp to a UTC epoch, or None.
tradingagents/dataflows/vendors/reddit.py:115
↓ 1 callers
Function
_jitter
Return ``seconds`` with +/-``frac`` random jitter, to desynchronize concurrent runs pacing against the same per-IP limit.
tradingagents/dataflows/vendors/reddit.py:145
↓ 1 callers
Function
_listen
(callback: _Callback, port: int)
tradingagents/llm_clients/chatgpt_auth.py:289
↓ 1 callers
Function
_markdown
()
tradingagents/report_html.py:187
↓ 1 callers
Method
_memory_step
The graph's Memory Log step, alongside the analysts (#1428): settle every ticker's due decisions (#1445), then return the lessons known by the
tradingagents/graph/trading_graph.py:309
↓ 1 callers
Function
_millions
USD in millions; under a million, three significant digits, so it is not printed as 0. Plain numbers: a thousands separator would split the CSV f
tradingagents/dataflows/vendors/sec_edgar.py:242
↓ 1 callers
Function
_new_run
A new run's id, stamped now, and its directory, claimed so no other sweep shares it.
tradingagents/backtest.py:130
↓ 1 callers
Function
_normalize_crypto
Return ``<BASE>-USD`` for a known USD/USDT/USDC-quoted crypto, else None.
tradingagents/dataflows/symbols.py:97
↓ 1 callers
Function
_normalize_dates
Parse to naive, midnight-normalized dates so tz-aware or intraday timestamps compare correctly against the naive ``as_of_date`` cutoff (#1201).
tradingagents/dataflows/vendors/yahoo/ohlcv.py:55
↓ 1 callers
Function
_oauth_error
(response)
tradingagents/llm_clients/chatgpt_auth.py:156
↓ 1 callers
Function
_odds
A probability as a percentage; within 1% of 0 or 100 its distance from there keeps two significant digits, so 0.05% is not 0% and 99.95% not 100%.
tradingagents/dataflows/vendors/polymarket.py:71
↓ 1 callers
Function
_offer_reports
Save the report tree and show it; ``save``/``show``/``html`` answer the questions when given. A saved report includes the HTML page unless ``html
cli/run.py:426
↓ 1 callers
Function
_open_page
Offer to open the saved page in a browser window, and say where it is if opening fails.
cli/run.py:413
↓ 1 callers
Function
_own_file_locations
Keep the suite's results, cache and memory log in a directory of its own. Set before the package is imported, whose defaults put them in the user
tests/conftest.py:30
↓ 1 callers
Method
_parse_entry
(self, raw: str)
tradingagents/memory/log.py:311
↓ 1 callers
Function
_plain
(text)
cli/updates.py:132
↓ 1 callers
Function
_prompt_custom_model_id
Prompt user to type a custom model ID.
cli/prompts.py:329
↓ 1 callers
Function
_prompt_selections
Walk the selection steps. ``prefs`` prefills; flags and the environment skip.
cli/selections.py:115
↓ 1 callers
Function
_raise
(exc)
tests/test_reddit_fallback.py:49
↓ 1 callers
Function
_raise
(exc)
tests/test_stocktwits_resilience.py:20
↓ 1 callers
Method
_raises
(self, side_effect)
tests/test_fred.py:269
↓ 1 callers
Function
_read_capped
Read a response body bounded to ``_MAX_FEED_BYTES``, raising on overflow.
tradingagents/dataflows/vendors/reddit.py:175
↓ 1 callers
Function
_refresh
(data: dict, now: float)
tradingagents/llm_clients/chatgpt_auth.py:187
↓ 1 callers
Function
_render_agent_text
An agent's text, its own headings placed below the agent's heading (h3).
tradingagents/report_html.py:194
↓ 1 callers
Function
_renewal
(data)
tests/test_chatgpt_auth.py:111
↓ 1 callers
Function
_report_parts
The sections with something to say: (heading, folder, [(agent, file, text)]).
tradingagents/reporting.py:76
← previous
next →
301–400 of 1,834, ranked by callers