MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,834 in github.com/TauricResearch/TradingAgents

↓ 5 callersFunction_nonce_of
(printed)
tests/test_chatgpt_auth.py:214
↓ 5 callersFunction_patched_get
(body, capture=None)
tests/test_alpha_vantage_hardening.py:29
↓ 5 callersFunction_post_answers
(about: float, stance: str = "bullish", confidence: float = 0.9)
tests/test_post_screen.py:172
↓ 5 callersFunction_prompt_text
Flatten a captured prompt (str, message list, or objects) to text.
tests/test_structured_agent_prompts.py:36
↓ 5 callersFunction_read
()
tradingagents/llm_clients/chatgpt_auth.py:62
↓ 5 callersFunction_report_graph
(tmp_path)
tests/test_cli_headless.py:218
↓ 5 callersFunction_request_stub
Build a _request replacement that dispatches on the endpoint path.
tests/test_fred.py:40
↓ 5 callersMethod_route
(self, vendors_for_get_stock_data)
tests/test_vendor_routing.py:51
↓ 5 callersFunction_run
Call the tool through a ToolNode in a graph carrying the run's trade_date.
tests/test_tool_date_enforcement.py:101
↓ 5 callersFunction_run_load
Drive load_ohlcv against a pre-seeded cache frame (no network).
tests/test_ohlcv_latest_bar.py:98
↓ 5 callersFunction_state
(**overrides)
tests/test_report_html.py:18
↓ 5 callersFunctioncreate_research_manager
(llm)
tradingagents/agents/managers/research_manager.py:14
↓ 5 callersFunctionget_model_options
Return shared model options for a provider and selection mode.
tradingagents/llm_clients/model_catalog.py:229
↓ 5 callersFunctionload_portfolio
Read a portfolio JSON file, failing before the run rather than mid-graph.
tradingagents/portfolio.py:75
↓ 5 callersFunctionnormalize_content
Normalize LLM response content to a plain string. Multiple providers (OpenAI Responses API, Google Gemini 3) return content as a list of type
tradingagents/llm_clients/base_client.py:6
↓ 5 callersMethodraise_for_status
(self)
tests/test_alpha_vantage_hardening.py:25
↓ 5 callersMethodreflect_on_final_decision
Single reflection call on the final trade decision with outcome context. Used when a pending decision is settled. The final_trade_decision al
tradingagents/memory/reflection.py:36
↓ 5 callersFunctionreplace_file
Write ``path`` through a uniquely named temp file beside it, then move it into place. A reader sees the old file or the new one, never a partial
tradingagents/dataflows/files.py:14
↓ 5 callersFunctionreport_or_absent
An analyst's report, or a marker saying it was never produced. A report is empty when its analyst was not selected, refused, or returned noth
tradingagents/agents/context.py:190
↓ 5 callersFunctionrun_config
Serve ``config``, over the defaults, to every read made inside the block.
tradingagents/dataflows/config.py:45
↓ 5 callersMethodrun_settings
What produces this graph's runs, for the saved report and state log. An allowlist: endpoints (a backend_url can carry credentials), keys and
tradingagents/graph/trading_graph.py:255
↓ 5 callersFunctionsave_last_run
Record the answers worth offering next time; failure is never fatal.
cli/prefs.py:49
↓ 4 callersFunction_answer
(monkeypatch, answers)
tests/test_cli_headless.py:242
↓ 4 callersFunction_bare_graph
(tmpdir, *, enabled=True)
tests/test_checkpoint_lifecycle.py:48
↓ 4 callersFunction_base_url
(mod, provider, **kwargs)
tests/test_ollama_base_url.py:28
↓ 4 callersFunction_build_graph
()
tests/test_checkpoint_resume.py:34
↓ 4 callersFunction_capturing_llm
(captured: dict)
tests/test_debate_opening.py:29
↓ 4 callersFunction_columns
(out)
tests/test_sec_edgar.py:247
↓ 4 callersFunction_config
(**overrides)
tests/test_tier_providers.py:15
↓ 4 callersFunction_dist
(direct=None, installer="pip")
tests/test_cli_updates.py:239
↓ 4 callersFunction_epoch
(date_str)
tests/test_social_lookahead.py:98
↓ 4 callersFunction_graph
(config)
tests/test_dataflows_config.py:66
↓ 4 callersFunction_input_to_messages
Normalise a langchain LLM input to a list of message objects. Accepts a list of messages, a ``ChatPromptValue`` (from a ChatPromptTemplate),
tradingagents/llm_clients/openai_client.py:75
↓ 4 callersFunction_is_native_openai_base_url
True when ``base_url`` is unset or points at api.openai.com. The Responses API (/v1/responses) only exists on native OpenAI. A custom base_ur
tradingagents/llm_clients/openai_client.py:309
↓ 4 callersFunction_jwks
()
tests/test_chatgpt_auth.py:44
↓ 4 callersMethod_kwargs_for
(self, temperature)
tests/test_temperature_config.py:62
↓ 4 callersFunction_llm
(**kwargs)
tests/test_chatgpt_provider.py:30
↓ 4 callersFunction_make_pm_state
Minimal AgentState dict for portfolio_manager_node.
tests/test_memory_log.py:67
↓ 4 callersFunction_msg
(created_iso, sentiment=None)
tests/test_social_lookahead.py:59
↓ 4 callersFunction_resolve
(log, ticker, date, resolution_date, reflection)
tests/test_memory_pointintime.py:20
↓ 4 callersFunction_resp
A minimal context-manager response whose read() runs ``read_fn``.
tests/test_reddit_fallback.py:30
↓ 4 callersFunction_scored
(tmp_path, rows)
tests/test_backtest.py:253
↓ 4 callersFunction_structured_trader_llm
Build a MagicMock LLM whose with_structured_output binding captures the prompt and returns a real TraderProposal so render_trader_proposal works.
tests/test_structured_agents.py:178
↓ 4 callersFunctionas_of_window
``[start, end]`` with its end clamped to the run date. A window wholly after the run date keeps its length and moves back to end there. An un
tradingagents/dataflows/date_window.py:93
↓ 4 callersMethodbegin_checkpoint
(self, *a, **k)
tests/test_rating_integrity.py:134
↓ 4 callersFunctionbind_structured
Return ``llm.with_structured_output(schema)`` or ``None`` if unsupported. Logs a warning when the binding fails so the user understands the agent
tradingagents/agents/structured.py:42
↓ 4 callersMethodcreate_initial_state
Create the initial state for the agent graph. ``instrument_context`` is the deterministic ticker-identity string resolved once at run
tradingagents/graph/propagation.py:13
↓ 4 callersMethodcreate_run_state
(self, *a, **k)
tests/test_rating_integrity.py:125
↓ 4 callersFunctiondetect_asset_type
Classify on the canonical symbol so e.g. BTCUSD and BTC-USDT both read as crypto (#981/#982), matching what the data path will actually fetch.
cli/prompts.py:135
↓ 4 callersMethodend_checkpoint
(self)
tests/test_rating_integrity.py:143
↓ 4 callersMethodformat_summary
(self)
cli/display.py:600
↓ 4 callersFunctionget_vendor
Get the configured vendor for a data category or specific tool method. Tool-level configuration takes precedence over category-level.
tradingagents/dataflows/router.py:160
↓ 4 callersFunctioninvoke_structured_or_freetext
Run the structured call and render to markdown; fall back to free-text on any failure.
tradingagents/agents/structured.py:84
↓ 4 callersMethodisatty
(self)
tests/test_cli_updates.py:24
↓ 4 callersFunctioniter_grid
Analysis dates from ``start_date``, never past today. A future date has no outcome to settle against, and the graph rejects one, so the grid
tradingagents/backtest.py:35
↓ 4 callersMethodmark_started
(self, analyst_key: str, started_at: float | None = None)
cli/display.py:580
↓ 4 callersFunctionprovider_default_url
Return the default backend URL for a provider key, or None if unknown.
cli/prompts.py:411
↓ 4 callersFunctionraise_for_empty
Report an empty Yahoo answer as an absence, or as an outage if it is one. An empty answer from a Yahoo that cannot be reached is not an answer ab
tradingagents/dataflows/vendors/yahoo/common.py:32
↓ 4 callersFunctionrender_sentiment_report
Render a SentimentReport to the markdown shape the rest of the system expects. The structured header (band + score + confidence) is prepended to
tradingagents/agents/schemas.py:366
↓ 4 callersFunctionrender_trader_proposal
Render a TraderProposal to markdown. The trailing ``FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL**`` line is preserved for backward compatibil
tradingagents/agents/schemas.py:191
↓ 4 callersMethodsave_reports
Write the report tree for a completed run, like the CLI does. Programmatic callers get the same on-disk reports the CLI produces. Pass
tradingagents/graph/trading_graph.py:277
↓ 4 callersMethodsettle_all_pending
Settle every ticker's decisions whose holding window has now traded (#1445). For a scheduler whose tickers rotate: a ticker it stops analysin
tradingagents/graph/trading_graph.py:349
↓ 4 callersFunctionwithhold_undated_statements
Notice to serve instead of a statement with no filing date, or None to serve it. A vendor that dates a statement by the period it covers (Yahoo,
tradingagents/dataflows/date_window.py:159
↓ 3 callersFunction_av
Alpha Vantage path; the API call is mocked so a leak would be visible.
tests/test_fundamentals_lookahead.py:55
↓ 3 callersFunction_bare_graph
(tmp_path)
tests/test_portfolio_context.py:122
↓ 3 callersMethod_bound_kwargs
(self, runnable)
tests/test_minimax.py:54
↓ 3 callersFunction_call
(**kwargs)
tests/test_get_scrubbed.py:30
↓ 3 callersFunction_captured
(monkeypatch)
tests/test_tier_providers.py:23
↓ 3 callersMethod_client
(self)
tests/test_deepseek_reasoning.py:57
↓ 3 callersFunction_db_path
Return the SQLite checkpoint DB path for a ticker.
tradingagents/graph/checkpointer.py:19
↓ 3 callersFunction_fake_msvcrt
msvcrt whose locking() raises the next error in ``results``, or succeeds on None.
tests/test_cache_writes.py:88
↓ 3 callersFunction_frame
(date)
tests/test_yfinance_stale_ohlcv_guard.py:24
↓ 3 callersFunction_insider_frame
(*dates)
tests/test_undated_tools_as_of.py:24
↓ 3 callersFunction_llm_provider_table
(display_name, provider_key, base_url) for every supported provider. Shared by the interactive picker and by env-driven configuration so an e
cli/prompts.py:377
↓ 3 callersMethod_log
(self, tmp_path, monkeypatch, *dates)
tests/test_memory_log.py:1303
↓ 3 callersMethod_log_state
Write a run's final state to JSON under the run's own ticker.
tradingagents/graph/trading_graph.py:438
↓ 3 callersFunction_make_rm_state
()
tests/test_structured_agents.py:287
↓ 3 callersFunction_matching_choice
The option value equal to ``default``, or None to leave the menu as is.
cli/prompts.py:156
↓ 3 callersFunction_menu
questionary.select stand-in: records each menu and answers in turn.
tests/test_chatgpt_provider.py:81
↓ 3 callersFunction_merge
Merge ``config`` into ``base``: dict-valued keys one level deep, scalars replaced.
tradingagents/dataflows/config.py:23
↓ 3 callersFunction_prompt_key
(prompts, monkeypatch, tmp_path, key="sk-typed-in")
tests/test_api_key_env.py:150
↓ 3 callersFunction_raises
(exc)
tests/test_vendor_routing.py:37
↓ 3 callersFunction_require_text
Prompt for a required value; exit cleanly if the user cancels. ``questionary.text(...).ask()`` returns None on Ctrl-C/Esc; mirror the exit-on
cli/prompts.py:287
↓ 3 callersFunction_returns
(value)
tests/test_vendor_routing.py:31
↓ 3 callersFunction_run_cli
Drive run_analysis against ``fake``; returns the message buffer.
tests/test_cli_memory_log.py:119
↓ 3 callersFunction_selections_with_env
(monkeypatch, keys=None)
tests/test_cli_headless.py:186
↓ 3 callersFunction_state
(latest_speaker, count=0)
tests/test_risk_router_path_map.py:16
↓ 3 callersFunction_statement
(kind: str, ticker: str, freq: str, as_of_date: str, title: str)
tradingagents/dataflows/vendors/sec_edgar.py:191
↓ 3 callersFunction_statement
One financial statement as CSV, for a run dated today.
tradingagents/dataflows/vendors/yahoo/fundamentals.py:107
↓ 3 callersFunction_stream
(*bodies)
tests/test_stocktwits_resilience.py:81
↓ 3 callersFunction_structured_pm_llm
Build a MagicMock LLM whose with_structured_output binding captures the prompt and returns a real PortfolioDecision (so render_pm_decision works).
tests/test_memory_log.py:91
↓ 3 callersFunction_structured_sentiment_llm
MagicMock LLM whose structured binding captures the prompt and returns a real SentimentReport so render_sentiment_report works.
tests/test_structured_agents.py:415
↓ 3 callersFunction_write
Write the auth file whole, readable only by its owner. Unlike a cache, a failed write must surface: losing a rotated refresh token would end the s
tradingagents/llm_clients/chatgpt_auth.py:70
↓ 3 callersFunctioncall
(state)
tests/test_dataflows_config.py:177
↓ 3 callersFunctiondepth_from_env
Both round counts come from the environment, so the depth question is skipped.
cli/selections.py:52
↓ 3 callersFunctionextract_content_string
Extract string content from various message formats. Returns None if no meaningful text content is found.
cli/display.py:503
↓ 3 callersMethodget_graph_args
(self, callbacks=None)
tests/test_rating_integrity.py:131
↓ 3 callersMethodget_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:344
↓ 3 callersMethodget_news
(self, count=20)
tests/test_news_lookahead.py:118
↓ 3 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/net.py:6
← previousnext →101–200 of 1,834, ranked by callers