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
↓ 5 callers
Function
_nonce_of
(printed)
tests/test_chatgpt_auth.py:214
↓ 5 callers
Function
_patched_get
(body, capture=None)
tests/test_alpha_vantage_hardening.py:29
↓ 5 callers
Function
_post_answers
(about: float, stance: str = "bullish", confidence: float = 0.9)
tests/test_post_screen.py:172
↓ 5 callers
Function
_prompt_text
Flatten a captured prompt (str, message list, or objects) to text.
tests/test_structured_agent_prompts.py:36
↓ 5 callers
Function
_read
()
tradingagents/llm_clients/chatgpt_auth.py:62
↓ 5 callers
Function
_report_graph
(tmp_path)
tests/test_cli_headless.py:218
↓ 5 callers
Function
_request_stub
Build a _request replacement that dispatches on the endpoint path.
tests/test_fred.py:40
↓ 5 callers
Method
_route
(self, vendors_for_get_stock_data)
tests/test_vendor_routing.py:51
↓ 5 callers
Function
_run
Call the tool through a ToolNode in a graph carrying the run's trade_date.
tests/test_tool_date_enforcement.py:101
↓ 5 callers
Function
_run_load
Drive load_ohlcv against a pre-seeded cache frame (no network).
tests/test_ohlcv_latest_bar.py:98
↓ 5 callers
Function
_state
(**overrides)
tests/test_report_html.py:18
↓ 5 callers
Function
create_research_manager
(llm)
tradingagents/agents/managers/research_manager.py:14
↓ 5 callers
Function
get_model_options
Return shared model options for a provider and selection mode.
tradingagents/llm_clients/model_catalog.py:229
↓ 5 callers
Function
load_portfolio
Read a portfolio JSON file, failing before the run rather than mid-graph.
tradingagents/portfolio.py:75
↓ 5 callers
Function
normalize_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 callers
Method
raise_for_status
(self)
tests/test_alpha_vantage_hardening.py:25
↓ 5 callers
Method
reflect_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 callers
Function
replace_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 callers
Function
report_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 callers
Function
run_config
Serve ``config``, over the defaults, to every read made inside the block.
tradingagents/dataflows/config.py:45
↓ 5 callers
Method
run_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 callers
Function
save_last_run
Record the answers worth offering next time; failure is never fatal.
cli/prefs.py:49
↓ 4 callers
Function
_answer
(monkeypatch, answers)
tests/test_cli_headless.py:242
↓ 4 callers
Function
_bare_graph
(tmpdir, *, enabled=True)
tests/test_checkpoint_lifecycle.py:48
↓ 4 callers
Function
_base_url
(mod, provider, **kwargs)
tests/test_ollama_base_url.py:28
↓ 4 callers
Function
_build_graph
()
tests/test_checkpoint_resume.py:34
↓ 4 callers
Function
_capturing_llm
(captured: dict)
tests/test_debate_opening.py:29
↓ 4 callers
Function
_columns
(out)
tests/test_sec_edgar.py:247
↓ 4 callers
Function
_config
(**overrides)
tests/test_tier_providers.py:15
↓ 4 callers
Function
_dist
(direct=None, installer="pip")
tests/test_cli_updates.py:239
↓ 4 callers
Function
_epoch
(date_str)
tests/test_social_lookahead.py:98
↓ 4 callers
Function
_graph
(config)
tests/test_dataflows_config.py:66
↓ 4 callers
Function
_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 callers
Function
_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 callers
Function
_jwks
()
tests/test_chatgpt_auth.py:44
↓ 4 callers
Method
_kwargs_for
(self, temperature)
tests/test_temperature_config.py:62
↓ 4 callers
Function
_llm
(**kwargs)
tests/test_chatgpt_provider.py:30
↓ 4 callers
Function
_make_pm_state
Minimal AgentState dict for portfolio_manager_node.
tests/test_memory_log.py:67
↓ 4 callers
Function
_msg
(created_iso, sentiment=None)
tests/test_social_lookahead.py:59
↓ 4 callers
Function
_resolve
(log, ticker, date, resolution_date, reflection)
tests/test_memory_pointintime.py:20
↓ 4 callers
Function
_resp
A minimal context-manager response whose read() runs ``read_fn``.
tests/test_reddit_fallback.py:30
↓ 4 callers
Function
_scored
(tmp_path, rows)
tests/test_backtest.py:253
↓ 4 callers
Function
_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 callers
Function
as_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 callers
Method
begin_checkpoint
(self, *a, **k)
tests/test_rating_integrity.py:134
↓ 4 callers
Function
bind_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 callers
Method
create_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 callers
Method
create_run_state
(self, *a, **k)
tests/test_rating_integrity.py:125
↓ 4 callers
Function
detect_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 callers
Method
end_checkpoint
(self)
tests/test_rating_integrity.py:143
↓ 4 callers
Method
format_summary
(self)
cli/display.py:600
↓ 4 callers
Function
get_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 callers
Function
invoke_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 callers
Method
isatty
(self)
tests/test_cli_updates.py:24
↓ 4 callers
Function
iter_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 callers
Method
mark_started
(self, analyst_key: str, started_at: float | None = None)
cli/display.py:580
↓ 4 callers
Function
provider_default_url
Return the default backend URL for a provider key, or None if unknown.
cli/prompts.py:411
↓ 4 callers
Function
raise_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 callers
Function
render_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 callers
Function
render_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 callers
Method
save_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 callers
Method
settle_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 callers
Function
withhold_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 callers
Function
_av
Alpha Vantage path; the API call is mocked so a leak would be visible.
tests/test_fundamentals_lookahead.py:55
↓ 3 callers
Function
_bare_graph
(tmp_path)
tests/test_portfolio_context.py:122
↓ 3 callers
Method
_bound_kwargs
(self, runnable)
tests/test_minimax.py:54
↓ 3 callers
Function
_call
(**kwargs)
tests/test_get_scrubbed.py:30
↓ 3 callers
Function
_captured
(monkeypatch)
tests/test_tier_providers.py:23
↓ 3 callers
Method
_client
(self)
tests/test_deepseek_reasoning.py:57
↓ 3 callers
Function
_db_path
Return the SQLite checkpoint DB path for a ticker.
tradingagents/graph/checkpointer.py:19
↓ 3 callers
Function
_fake_msvcrt
msvcrt whose locking() raises the next error in ``results``, or succeeds on None.
tests/test_cache_writes.py:88
↓ 3 callers
Function
_frame
(date)
tests/test_yfinance_stale_ohlcv_guard.py:24
↓ 3 callers
Function
_insider_frame
(*dates)
tests/test_undated_tools_as_of.py:24
↓ 3 callers
Function
_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 callers
Method
_log
(self, tmp_path, monkeypatch, *dates)
tests/test_memory_log.py:1303
↓ 3 callers
Method
_log_state
Write a run's final state to JSON under the run's own ticker.
tradingagents/graph/trading_graph.py:438
↓ 3 callers
Function
_make_rm_state
()
tests/test_structured_agents.py:287
↓ 3 callers
Function
_matching_choice
The option value equal to ``default``, or None to leave the menu as is.
cli/prompts.py:156
↓ 3 callers
Function
_menu
questionary.select stand-in: records each menu and answers in turn.
tests/test_chatgpt_provider.py:81
↓ 3 callers
Function
_merge
Merge ``config`` into ``base``: dict-valued keys one level deep, scalars replaced.
tradingagents/dataflows/config.py:23
↓ 3 callers
Function
_prompt_key
(prompts, monkeypatch, tmp_path, key="sk-typed-in")
tests/test_api_key_env.py:150
↓ 3 callers
Function
_raises
(exc)
tests/test_vendor_routing.py:37
↓ 3 callers
Function
_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 callers
Function
_returns
(value)
tests/test_vendor_routing.py:31
↓ 3 callers
Function
_run_cli
Drive run_analysis against ``fake``; returns the message buffer.
tests/test_cli_memory_log.py:119
↓ 3 callers
Function
_selections_with_env
(monkeypatch, keys=None)
tests/test_cli_headless.py:186
↓ 3 callers
Function
_state
(latest_speaker, count=0)
tests/test_risk_router_path_map.py:16
↓ 3 callers
Function
_statement
(kind: str, ticker: str, freq: str, as_of_date: str, title: str)
tradingagents/dataflows/vendors/sec_edgar.py:191
↓ 3 callers
Function
_statement
One financial statement as CSV, for a run dated today.
tradingagents/dataflows/vendors/yahoo/fundamentals.py:107
↓ 3 callers
Function
_stream
(*bodies)
tests/test_stocktwits_resilience.py:81
↓ 3 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
call
(state)
tests/test_dataflows_config.py:177
↓ 3 callers
Function
depth_from_env
Both round counts come from the environment, so the depth question is skipped.
cli/selections.py:52
↓ 3 callers
Function
extract_content_string
Extract string content from various message formats. Returns None if no meaningful text content is found.
cli/display.py:503
↓ 3 callers
Method
get_graph_args
(self, callbacks=None)
tests/test_rating_integrity.py:131
↓ 3 callers
Method
get_llm
Return a configured ChatOpenAI instance, driven by the provider registry.
tradingagents/llm_clients/openai_client.py:344
↓ 3 callers
Method
get_news
(self, count=20)
tests/test_news_lookahead.py:118
↓ 3 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/net.py:6
← previous
next →
101–200 of 1,834, ranked by callers