Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
1,297 in github.com/TauricResearch/TradingAgents
⨍
Functions
1,297
◇
Types & classes
181
↳
Endpoints
8
↓ 2 callers
Method
begin_checkpoint
Recompile the graph with a per-ticker checkpointer and return the ``thread_id`` to inject into the stream/invoke ``config`` (or ``None``
tradingagents/graph/trading_graph.py:461
↓ 2 callers
Method
checkpoint_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:490
↓ 2 callers
Function
clear_all_checkpoints
Remove all checkpoint databases. Returns the number of databases deleted. SQLite keeps committed state in ``-wal`` and ``-shm`` files beside the
tradingagents/graph/checkpointer.py:73
↓ 2 callers
Function
clear_checkpoint
Remove checkpoint for a specific ticker+date by deleting the thread's rows.
tradingagents/graph/checkpointer.py:90
↓ 2 callers
Method
clear_checkpoint_on_success
Drop a completed run's checkpoint so a later run starts fresh (#1249).
tradingagents/graph/trading_graph.py:516
↓ 2 callers
Function
create_aggressive_debator
(llm)
tradingagents/agents/risk_mgmt/aggressive_debator.py:10
↓ 2 callers
Function
create_bull_researcher
(llm)
tradingagents/agents/researchers/bull_researcher.py:9
↓ 2 callers
Function
create_question_box
(title, prompt, default=None)
cli/main.py:539
↓ 2 callers
Method
create_run_state
Build a run's initial state; propagate() and the CLI both start here. Settles this ticker's pending decisions first, then injects the lessons
tradingagents/graph/trading_graph.py:539
↓ 2 callers
Method
end_checkpoint
Restore the plain uncheckpointed graph after a checkpointed run.
tradingagents/graph/trading_graph.py:500
↓ 2 callers
Function
format_datetime_for_api
Convert various date formats to the YYYYMMDDTHHMM Alpha Vantage expects. A plain date means midnight, which is the start of that day. For the end
tradingagents/dataflows/alpha_vantage_common.py:37
↓ 2 callers
Method
format_summary
(self)
tradingagents/graph/analyst_execution.py:105
↓ 2 callers
Function
get_initial_analyst_node
(plan: AnalystExecutionPlan)
tradingagents/graph/analyst_execution.py:72
↓ 2 callers
Function
get_known_models
Build known model names from the shared CLI catalog plus legacy IDs.
tradingagents/llm_clients/model_catalog.py:245
↓ 2 callers
Method
get_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:277
↓ 2 callers
Function
get_scrubbed
``requests.get`` plus ``raise_for_status``, with ``secret`` kept out of errors. Vendors that authenticate with a query parameter put the key in t
tradingagents/dataflows/utils.py:46
↓ 2 callers
Method
get_wall_times
(self)
tradingagents/graph/analyst_execution.py:102
↓ 2 callers
Method
history
(self, start, end)
tests/test_memory_log.py:1032
↓ 2 callers
Method
info
(self)
tests/test_symbol_normalization_paths.py:24
↓ 2 callers
Method
invoke
(self, prompt, *a, **k)
tests/test_portfolio_context.py:128
↓ 2 callers
Function
is_openai_compatible
Whether ``provider`` is served by the OpenAI-compatible registry.
tradingagents/llm_clients/openai_client.py:237
↓ 2 callers
Function
is_review
Whether a signal is the non-tradeable REVIEW sentinel (#1170).
tradingagents/agents/utils/rating.py:91
↓ 2 callers
Function
is_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 callers
Function
is_yahoo_safe
True when ``symbol`` only contains characters Yahoo symbols use.
tradingagents/dataflows/symbol_utils.py:154
↓ 2 callers
Method
position_in
(self, ticker: str)
tradingagents/portfolio.py:34
↓ 2 callers
Method
process_signal
Process a signal to extract the core decision.
tradingagents/graph/trading_graph.py:670
↓ 2 callers
Method
record_decision
Log a finished run's decision for reflection on the next same-ticker run.
tradingagents/graph/trading_graph.py:569
↓ 2 callers
Method
record_decision
(self, ticker, trade_date, final_state)
tests/test_cli_decision_log.py:80
↓ 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
Method
save_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:524
↓ 2 callers
Method
should_continue_debate
Determine if debate should continue.
tradingagents/graph/conditional_logic.py:52
↓ 2 callers
Function
sync_analyst_tracker_from_chunk
( tracker: AnalystWallTimeTracker, chunk: dict[str, str], now: float | None = None, )
tradingagents/graph/analyst_execution.py:117
↓ 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
Method
update_report_section
(self, section_name, content)
cli/main.py:191
↓ 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/utils.py:67
↓ 2 callers
Method
with_structured_output
(self, schema, *, method=None, **kwargs)
tradingagents/llm_clients/openai_client.py:38
↓ 2 callers
Function
withhold_live_profile
Notice to serve instead of a live-only company profile, or None to serve it. Vendor "company overview" endpoints (yfinance ``Ticker.info``, Alpha
tradingagents/dataflows/date_window.py:95
↓ 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
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:63
↓ 1 callers
Function
_answer_every_prompt
Drive the real selection flow, answering each prompt with a fixed value.
tests/test_cli_prefs.py:99
↓ 1 callers
Function
_apply_env_overrides
Apply TRADINGAGENTS_* env vars to the config dict in-place.
tradingagents/default_config.py:59
↓ 1 callers
Function
_as_of
({period end: value}, unit) for the first tag the filer reports, as known then. A period reported more than once takes its latest filing on or be
tradingagents/dataflows/sec_edgar.py:140
↓ 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
_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:1012
↓ 1 callers
Function
_build_system_message
Assemble the sentiment-analyst system message with structured data blocks.
tradingagents/agents/analysts/sentiment_analyst.py:133
↓ 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/stockstats_utils.py:181
↓ 1 callers
Function
_canonical
Parse a grid bound, rejecting anything the run date would also reject.
tradingagents/backtest.py:52
↓ 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/stockstats_utils.py:103
↓ 1 callers
Function
_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/utils/agent_utils.py:84
↓ 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:36
↓ 1 callers
Function
_coerce_ohlcv_dates
Return parsed dates from an OHLCV frame, whether Date is a column or the index.
tradingagents/dataflows/stockstats_utils.py:127
↓ 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/reddit.py:57
↓ 1 callers
Method
_create_chat_result
(self, response, generation_info=None)
tradingagents/llm_clients/openai_client.py:114
↓ 1 callers
Function
_fetch_json
Read a public EDGAR document, respecting SEC's identification rule.
tradingagents/dataflows/sec_edgar.py:100
↓ 1 callers
Function
_fetch_openrouter_models
Fetch available models from the OpenRouter API.
cli/utils.py:221
↓ 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/reddit.py:169
↓ 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/stockstats_utils.py:117
↓ 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/alpha_vantage_common.py:123
↓ 1 callers
Function
_fmt
(value)
tradingagents/dataflows/market_data_validator.py:50
↓ 1 callers
Method
_format_full
(self, e: dict)
tradingagents/agents/utils/memory.py:321
↓ 1 callers
Method
_format_reflection_only
(self, e: dict)
tradingagents/agents/utils/memory.py:331
↓ 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/fred.py:125
↓ 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/y_finance.py:219
↓ 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/polymarket.py:49
↓ 1 callers
Function
_iso_to_timestamp
Parse an Atom ``published`` timestamp to a UTC epoch, or None.
tradingagents/dataflows/reddit.py:99
↓ 1 callers
Function
_jitter
Return ``seconds`` with +/-``frac`` random jitter, to desynchronize concurrent runs pacing against the same per-IP limit.
tradingagents/dataflows/reddit.py:129
↓ 1 callers
Function
_market
(question, prob, *, volume, end_date, closed=False, wk=None)
tests/test_polymarket.py:19
↓ 1 callers
Function
_normalize_crypto
Return ``<BASE>-USD`` for a known USD/USDT/USDC-quoted crypto, else None.
tradingagents/dataflows/symbol_utils.py:104
↓ 1 callers
Function
_normalize_dates
Parse to naive, midnight-normalized dates so tz-aware or intraday timestamps compare correctly against the naive ``curr_date`` cutoff (#1201).
tradingagents/dataflows/stockstats_utils.py:90
↓ 1 callers
Method
_parse_entry
(self, raw: str)
tradingagents/agents/utils/memory.py:288
↓ 1 callers
Function
_prompt_custom_model_id
Prompt user to type a custom model ID.
cli/utils.py:296
↓ 1 callers
Function
_prompt_selections
Walk the selection steps. ``prefs`` prefills, the environment skips.
cli/main.py:507
↓ 1 callers
Function
_raise
(exc)
tests/test_reddit_fallback.py:49
↓ 1 callers
Function
_raise
(exc)
tests/test_stocktwits_resilience.py:19
↓ 1 callers
Method
_raises
(self, side_effect)
tests/test_fred.py:247
↓ 1 callers
Function
_read_capped
Read a response body bounded to ``_MAX_FEED_BYTES``, raising on overflow.
tradingagents/dataflows/reddit.py:159
↓ 1 callers
Function
_request
(path: str, params: dict)
tradingagents/dataflows/polymarket.py:31
↓ 1 callers
Function
_request
GET a FRED endpoint, surfacing FRED's JSON error body on a bad request.
tradingagents/dataflows/fred.py:135
↓ 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/fred.py:102
↓ 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/reddit.py:135
↓ 1 callers
Method
_route_method
(self, method, vendors)
tests/test_vendor_routing.py:99
↓ 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/main.py:989
↓ 1 callers
Function
_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/reddit.py:89
↓ 1 callers
Function
_seven_days_back
(trade_date: str)
tradingagents/agents/analysts/sentiment_analyst.py:51
↓ 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/stocktwits.py:57
↓ 1 callers
Function
_strip_html
Reduce the HTML body Reddit embeds in an Atom entry to plain text.
tradingagents/dataflows/reddit.py:110
↓ 1 callers
Function
_supports_effort
Whether Anthropic accepts the ``effort`` parameter for this model.
tradingagents/llm_clients/anthropic_client.py:27
↓ 1 callers
Method
_update_current_report
(self)
cli/main.py:196
↓ 1 callers
Method
_update_final_report
(self)
cli/main.py:225
↓ 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/sec_edgar.py:79
↓ 1 callers
Function
_validate_trade_date
The run date as a canonical ``YYYY-MM-DD`` string no later than today.
tradingagents/graph/trading_graph.py:48
↓ 1 callers
Function
_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 callers
Function
_version
The installed package version, so a release identifies itself correctly.
tradingagents/dataflows/sec_edgar.py:92
↓ 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/stocktwits.py:43
↓ 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/reddit.py:38
↓ 1 callers
Function
_workflow
()
tests/test_checkpoint_lifecycle.py:38
↓ 1 callers
Method
add_tool_call
(self, tool_name, args)
cli/main.py:182
↓ 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/utils.py:513
← previous
next →
201–300 of 1,297, ranked by callers