MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,297 in github.com/TauricResearch/TradingAgents

↓ 2 callersMethodbegin_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 callersMethodcheckpoint_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 callersFunctionclear_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 callersFunctionclear_checkpoint
Remove checkpoint for a specific ticker+date by deleting the thread's rows.
tradingagents/graph/checkpointer.py:90
↓ 2 callersMethodclear_checkpoint_on_success
Drop a completed run's checkpoint so a later run starts fresh (#1249).
tradingagents/graph/trading_graph.py:516
↓ 2 callersFunctioncreate_aggressive_debator
(llm)
tradingagents/agents/risk_mgmt/aggressive_debator.py:10
↓ 2 callersFunctioncreate_bull_researcher
(llm)
tradingagents/agents/researchers/bull_researcher.py:9
↓ 2 callersFunctioncreate_question_box
(title, prompt, default=None)
cli/main.py:539
↓ 2 callersMethodcreate_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 callersMethodend_checkpoint
Restore the plain uncheckpointed graph after a checkpointed run.
tradingagents/graph/trading_graph.py:500
↓ 2 callersFunctionformat_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 callersMethodformat_summary
(self)
tradingagents/graph/analyst_execution.py:105
↓ 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 plus legacy IDs.
tradingagents/llm_clients/model_catalog.py:245
↓ 2 callersMethodget_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:277
↓ 2 callersFunctionget_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 callersMethodget_wall_times
(self)
tradingagents/graph/analyst_execution.py:102
↓ 2 callersMethodhistory
(self, start, end)
tests/test_memory_log.py:1032
↓ 2 callersMethodinfo
(self)
tests/test_symbol_normalization_paths.py:24
↓ 2 callersMethodinvoke
(self, prompt, *a, **k)
tests/test_portfolio_context.py:128
↓ 2 callersFunctionis_openai_compatible
Whether ``provider`` is served by the OpenAI-compatible registry.
tradingagents/llm_clients/openai_client.py:237
↓ 2 callersFunctionis_review
Whether a signal is the non-tradeable REVIEW sentinel (#1170).
tradingagents/agents/utils/rating.py:91
↓ 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:154
↓ 2 callersMethodposition_in
(self, ticker: str)
tradingagents/portfolio.py:34
↓ 2 callersMethodprocess_signal
Process a signal to extract the core decision.
tradingagents/graph/trading_graph.py:670
↓ 2 callersMethodrecord_decision
Log a finished run's decision for reflection on the next same-ticker run.
tradingagents/graph/trading_graph.py:569
↓ 2 callersMethodrecord_decision
(self, ticker, trade_date, final_state)
tests/test_cli_decision_log.py:80
↓ 2 callersFunctionrender_research_plan
Render a ResearchPlan to markdown for storage and the trader's prompt context.
tradingagents/agents/schemas.py:130
↓ 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:524
↓ 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 callersFunctionto_utc
Normalize a datetime to UTC-aware; a naive value is assumed to be UTC.
tradingagents/dataflows/date_window.py:19
↓ 2 callersMethodupdate_report_section
(self, section_name, content)
cli/main.py:191
↓ 2 callersFunctionvendor_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 callersMethodwith_structured_output
(self, schema, *, method=None, **kwargs)
tradingagents/llm_clients/openai_client.py:38
↓ 2 callersFunctionwithhold_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 callersMethod__enter__
(self_inner)
tests/test_reddit_fallback.py:33
↓ 1 callersMethod__exit__
(self_inner, *a)
tests/test_reddit_fallback.py:36
↓ 1 callersFunction_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 callersFunction_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 callersFunction_answer_every_prompt
Drive the real selection flow, answering each prompt with a fixed value.
tests/test_cli_prefs.py:99
↓ 1 callersFunction_apply_env_overrides
Apply TRADINGAGENTS_* env vars to the config dict in-place.
tradingagents/default_config.py:59
↓ 1 callersFunction_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 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:1012
↓ 1 callersFunction_build_system_message
Assemble the sentiment-analyst system message with structured data blocks.
tradingagents/agents/analysts/sentiment_analyst.py:133
↓ 1 callersFunction_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 callersFunction_canonical
Parse a grid bound, rejecting anything the run date would also reject.
tradingagents/backtest.py:52
↓ 1 callersFunction_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 callersFunction_clean_identity_value
Return a trimmed string, or None for empty / placeholder-ish values.
tradingagents/agents/utils/agent_utils.py:84
↓ 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:36
↓ 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:127
↓ 1 callersFunction_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 callersMethod_create_chat_result
(self, response, generation_info=None)
tradingagents/llm_clients/openai_client.py:114
↓ 1 callersFunction_fetch_json
Read a public EDGAR document, respecting SEC's identification rule.
tradingagents/dataflows/sec_edgar.py:100
↓ 1 callersFunction_fetch_openrouter_models
Fetch available models from the OpenRouter API.
cli/utils.py:221
↓ 1 callersFunction_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 callersFunction_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 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:123
↓ 1 callersFunction_fmt
(value)
tradingagents/dataflows/market_data_validator.py:50
↓ 1 callersMethod_format_full
(self, e: dict)
tradingagents/agents/utils/memory.py:321
↓ 1 callersMethod_format_reflection_only
(self, e: dict)
tradingagents/agents/utils/memory.py:331
↓ 1 callersFunction_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 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:219
↓ 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:49
↓ 1 callersFunction_iso_to_timestamp
Parse an Atom ``published`` timestamp to a UTC epoch, or None.
tradingagents/dataflows/reddit.py:99
↓ 1 callersFunction_jitter
Return ``seconds`` with +/-``frac`` random jitter, to desynchronize concurrent runs pacing against the same per-IP limit.
tradingagents/dataflows/reddit.py:129
↓ 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:104
↓ 1 callersFunction_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 callersMethod_parse_entry
(self, raw: str)
tradingagents/agents/utils/memory.py:288
↓ 1 callersFunction_prompt_custom_model_id
Prompt user to type a custom model ID.
cli/utils.py:296
↓ 1 callersFunction_prompt_selections
Walk the selection steps. ``prefs`` prefills, the environment skips.
cli/main.py:507
↓ 1 callersFunction_raise
(exc)
tests/test_reddit_fallback.py:49
↓ 1 callersFunction_raise
(exc)
tests/test_stocktwits_resilience.py:19
↓ 1 callersMethod_raises
(self, side_effect)
tests/test_fred.py:247
↓ 1 callersFunction_read_capped
Read a response body bounded to ``_MAX_FEED_BYTES``, raising on overflow.
tradingagents/dataflows/reddit.py:159
↓ 1 callersFunction_request
(path: str, params: dict)
tradingagents/dataflows/polymarket.py:31
↓ 1 callersFunction_request
GET a FRED endpoint, surfacing FRED's JSON error body on a bad request.
tradingagents/dataflows/fred.py:135
↓ 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:102
↓ 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/reddit.py:135
↓ 1 callersMethod_route_method
(self, method, vendors)
tests/test_vendor_routing.py:99
↓ 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/main.py:989
↓ 1 callersFunction_search_qs
(ticker: str, limit: int)
tradingagents/dataflows/reddit.py:89
↓ 1 callersFunction_seven_days_back
(trade_date: str)
tradingagents/agents/analysts/sentiment_analyst.py:51
↓ 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:57
↓ 1 callersFunction_strip_html
Reduce the HTML body Reddit embeds in an Atom entry to plain text.
tradingagents/dataflows/reddit.py:110
↓ 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:196
↓ 1 callersMethod_update_final_report
(self)
cli/main.py:225
↓ 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/sec_edgar.py:79
↓ 1 callersFunction_validate_trade_date
The run date as a canonical ``YYYY-MM-DD`` string no later than today.
tradingagents/graph/trading_graph.py:48
↓ 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 callersFunction_version
The installed package version, so a release identifies itself correctly.
tradingagents/dataflows/sec_edgar.py:92
↓ 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/stocktwits.py:43
↓ 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/reddit.py:38
↓ 1 callersFunction_workflow
()
tests/test_checkpoint_lifecycle.py:38
↓ 1 callersMethodadd_tool_call
(self, tool_name, args)
cli/main.py:182
↓ 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/utils.py:513
← previousnext →201–300 of 1,297, ranked by callers