MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,297 in github.com/TauricResearch/TradingAgents

Functionget_news
Returns live and historical market news & sentiment data from premier news outlets worldwide. Covers stocks, cryptocurrencies, forex, and topics
tradingagents/dataflows/alpha_vantage_news.py:7
Functionget_news
Retrieve news data for a given ticker symbol. Uses the configured news_data vendor. Args: ticker (str): Ticker symbol sta
tradingagents/agents/utils/news_data_tools.py:11
Methodget_news
(self, count)
tests/test_symbol_normalization_paths.py:68
Functionget_news_yfinance
Retrieve news for a specific stock ticker using yfinance. Args: ticker: Stock ticker symbol (e.g., "AAPL") start_date: Start
tradingagents/dataflows/yfinance_news.py:64
Functionget_prediction_markets
Return live prediction-market probabilities for an event topic. Args: topic: Event keyword(s), e.g. "Fed rate cut", "recession 2026",
tradingagents/dataflows/polymarket.py:70
Functionget_prediction_markets
Retrieve live, market-implied probabilities for forward-looking events from prediction markets (Polymarket): Fed decisions, recession, electi
tradingagents/agents/utils/prediction_markets_tools.py:10
Functionget_stock
Returns raw daily OHLCV values, adjusted close values, and historical split/dividend events filtered to the specified date range. Args:
tradingagents/dataflows/alpha_vantage_stock.py:6
Functionget_stock_data
Retrieve stock price data (OHLCV) for a given ticker symbol. Uses the configured core_stock_apis vendor. Args: symbol (str): Tick
tradingagents/agents/utils/core_stock_tools.py:11
Functionget_stock_stats_indicators_window
( symbol: Annotated[str, "ticker symbol of the company"], indicator: Annotated[str, "technical indicat
tradingagents/dataflows/y_finance.py:79
Functionget_verified_market_snapshot
Deterministic verification snapshot for exact market-data claims. Returns the latest OHLCV row on or before curr_date, common technical indic
tradingagents/agents/utils/market_data_validation_tools.py:11
Methodhistory
(self, start, end)
tests/test_yfinance_stale_ohlcv_guard.py:76
Methodhistory
(self, start, end)
tests/test_date_boundaries.py:23
Methodhistory
(self, *args, **kwargs)
tests/test_symbol_normalization_paths.py:43
Functionimpl
(symbol, *a, **k)
tests/test_vendor_routing.py:32
Methodinit_for_analysis
(self, selected_analysts)
tests/test_cli_decision_log.py:123
Methodinvoke
(self, input, config=None, **kwargs)
tradingagents/llm_clients/google_client.py:30
Methodinvoke
(self, input, config=None, **kwargs)
tradingagents/llm_clients/azure_client.py:17
Methodinvoke
(self, input, config=None, **kwargs)
tradingagents/llm_clients/anthropic_client.py:49
Methodinvoke
(self, input, config=None, **kwargs)
tradingagents/llm_clients/bedrock_client.py:34
Methodinvoke
(self, prompt, *a, **k)
tests/test_rating_integrity.py:187
Functionmarket_analyst_node
(state)
tradingagents/agents/analysts/market_analyst.py:14
Functionmock_llm_client
()
tests/conftest.py:60
Functionneutral_node
(state)
tradingagents/agents/risk_mgmt/neutral_debator.py:11
Functionnews_analyst_node
(state)
tradingagents/agents/analysts/news_analyst.py:14
Methodon_chat_model_start
Increment LLM call counter when a chat model starts.
cli/stats_handler.py:30
Methodon_llm_end
Extract token usage from LLM response.
cli/stats_handler.py:40
Methodon_llm_start
Increment LLM call counter when an LLM starts.
cli/stats_handler.py:20
Methodon_tool_start
Increment tool call counter when a tool starts.
cli/stats_handler.py:58
Functionportfolio_manager_node
(state)
tradingagents/agents/managers/portfolio_manager.py:29
Methodprocess_signal
(self, text)
tests/test_cli_decision_log.py:76
Functionpytest_configure
(config)
tests/conftest.py:9
Methodraises_no_data
(symbol, *a, **k)
tests/test_no_data_handling.py:52
Methodraises_unavailable
(symbol, *a, **k)
tests/test_no_data_handling.py:74
Methodread
(self)
tests/test_social_lookahead.py:31
Methodread
(self_inner)
tests/test_stocktwits_resilience.py:27
Methodrecord
(t, subs, limit, timeout)
tests/test_reddit_fallback.py:208
Methodrecord_decision
(self, *a, **k)
tests/test_rating_integrity.py:120
Methodreflect_on_final_decision
(self, **kw)
tests/test_memory_log.py:968
Methodrender
The portfolio block for the decision agents, led by the analyzed instrument.
tradingagents/portfolio.py:37
Functionresearch_manager_node
(state)
tradingagents/agents/managers/research_manager.py:20
Functionrunner
(monkeypatch)
tests/test_cli_commands.py:16
Functionsentiment_analyst_node
(state)
tradingagents/agents/analysts/sentiment_analyst.py:65
MethodsetUp
(self)
tests/test_checkpoint_resume.py:46
MethodsetUp
(self)
tests/test_checkpoint_resume.py:147
MethodsetUp
(self)
tests/test_vendor_routing.py:45
MethodsetUp
(self)
tests/test_instrument_identity.py:20
MethodsetUp
(self)
tests/test_polymarket.py:107
MethodsetUp
(self)
tests/test_vendor_errors.py:54
MethodsetUp
(self)
tests/test_dataflows_config.py:14
MethodsetUp
(self)
tests/test_yfinance_stale_ohlcv_guard.py:86
MethodsetUp
(self)
tests/test_fred.py:198
MethodsetUp
(self)
tests/test_no_data_handling.py:24
Methodsettle_pending
(self, ticker)
tests/test_backtest.py:59
Methodshould_continue_fundamentals
Determine if fundamentals analysis should continue.
tradingagents/graph/conditional_logic.py:44
Methodshould_continue_market
Determine if market analysis should continue.
tradingagents/graph/conditional_logic.py:14
Methodshould_continue_news
Determine if news analysis should continue.
tradingagents/graph/conditional_logic.py:36
Methodshould_continue_social
Determine if sentiment-analyst tool round should continue. Method name keeps the legacy ``social`` suffix to match the ``AnalystType.
tradingagents/graph/conditional_logic.py:22
Methodstream
(self, graph_input, **kwargs)
tests/test_cli_decision_log.py:98
MethodtearDown
(self)
tests/test_vendor_routing.py:48
MethodtearDown
(self)
tests/test_polymarket.py:110
MethodtearDown
(self)
tests/test_vendor_errors.py:57
MethodtearDown
(self)
tests/test_yfinance_stale_ohlcv_guard.py:89
MethodtearDown
(self)
tests/test_fred.py:201
MethodtearDown
(self)
tests/test_no_data_handling.py:29
Methodtest_429_then_success_retries_once
(self)
tests/test_reddit_fallback.py:94
Methodtest_429_twice_gives_up_after_one_retry
(self)
tests/test_reddit_fallback.py:103
Functiontest_a_bearish_call_that_fell_counts_as_right
Alpha below the benchmark is the outcome a Sell predicted; scoring it as a miss reported the system as wrong exactly when it was right.
tests/test_backtest.py:199
Functiontest_a_bearish_call_that_rose_counts_as_wrong
(tmp_path)
tests/test_backtest.py:211
Functiontest_a_bullish_call_is_scored_the_same_way_as_before
(tmp_path)
tests/test_backtest.py:217
Functiontest_a_cell_already_in_the_log_is_not_run_again
(tmp_path)
tests/test_backtest.py:88
Functiontest_a_corrupt_file_degrades_to_no_memory
(_home)
tests/test_cli_prefs.py:47
Functiontest_a_current_run_is_not_cluttered_with_a_vintage_note
(monkeypatch)
tests/test_undated_tools_as_of.py:107
Functiontest_a_custom_language_is_remembered_without_breaking_the_next_run
A free-text answer is not one of the menu's choices, and questionary rejects a default it cannot find, so offering it back would crash startup.
tests/test_cli_prefs.py:134
Functiontest_a_decision_prompt_states_the_shape_of_its_answer
The field descriptions live in the schema, which a provider without structured output never sees. Without the format in the prompt body, the f
tests/test_rating_integrity.py:175
Functiontest_a_download_from_an_earlier_day_is_not_fresh
(tmp_path)
tests/test_ohlcv_cache_freshness.py:61
Functiontest_a_failed_cell_does_not_abort_the_sweep
(tmp_path)
tests/test_backtest.py:107
Functiontest_a_failed_reflection_leaves_the_entry_pending_and_lets_the_run_start
Settling past decisions happens on the way into a new run, and reflection calls an LLM. A transient failure there must not stop the new analysis.
tests/test_memory_log.py:950
Functiontest_a_failed_settlement_does_not_lose_the_remaining_tickers
Settlement reflects with an LLM, so it can fail; the sweep still returns its result and every other ticker still gets settled.
tests/test_backtest.py:166
Functiontest_a_field_the_model_did_not_give_says_so
An omitted line and a line never asked for read the same to an analyst.
tests/test_structured_agents.py:532
Functiontest_a_filer_with_no_usable_facts_reads_differently_from_a_non_filer
(monkeypatch)
tests/test_sec_edgar.py:113
Functiontest_a_half_set_round_count_says_which_value_won
With only one of the two round-count variables set, the depth prompt is still shown but half the answer is discarded; the user was never told.
tests/test_cli_config_precedence.py:89
Functiontest_a_half_written_file_cannot_be_observed
Two runs finishing together must never leave a torn file behind.
tests/test_cli_prefs.py:53
Functiontest_a_historical_run_is_told_the_identity_is_current
The company name, sector and industry come from today's vendor profile. They are usually right for a past date, but a company that renamed or was
tests/test_undated_tools_as_of.py:91
Functiontest_a_line_the_filer_does_not_tag_is_named_unavailable
()
tests/test_sec_edgar.py:100
Functiontest_a_longer_window_asks_for_enough_price_history
Trading days are not calendar days: a 21-day window needs about a month of bars, and asking for 28 days left every outcome unsettled.
tests/test_memory_log.py:1020
Functiontest_a_message_that_reads_like_a_python_value_is_still_text
These were parsed as Python and judged empty, so the message vanished.
tests/test_cli_display.py:18
Functiontest_a_model_that_no_longer_exists_is_dropped
()
tests/test_cli_prefs.py:64
Functiontest_a_non_filer_is_reported_as_such_not_as_missing_data
()
tests/test_sec_edgar.py:68
Functiontest_a_per_share_figure_keeps_its_own_unit
Statements are reported in millions, but EPS is dollars per share: scaling it the same way prints a real figure as zero.
tests/test_sec_edgar.py:166
Functiontest_a_period_reported_under_two_tags_takes_the_preferred_one_not_both
()
tests/test_sec_edgar.py:214
Functiontest_a_period_that_ended_but_was_not_filed_yet_is_not_served
The fiscal year ended 2024-09-28; it reached the public on 2024-11-01.
tests/test_sec_edgar.py:83
Functiontest_a_price_that_is_a_number_survives
()
tests/test_structured_agents.py:523
Functiontest_a_price_written_as_a_range_drops_only_that_field
Anything that is not a single number becomes None. Letting it through fails the whole decision's validation, and the run falls back to free text,
tests/test_structured_agents.py:511
Functiontest_a_rating_argued_against_is_not_read_as_the_decision
()
tests/test_rating_integrity.py:30
Functiontest_a_refusal_has_no_rating_and_is_not_defaulted
()
tests/test_rating_integrity.py:48
Functiontest_a_region_specific_provider_survives
()
tests/test_cli_prefs.py:92
Functiontest_a_remembered_endpoint_is_offered_back
Users of a local or custom endpoint retyped the URL every run: it was remembered and validated, then never read.
tests/test_cli_prefs.py:147
Functiontest_a_report_that_was_never_produced_says_so
`--analysts market` leaves three reports empty; presenting them as blank sections invites the model to invent the contents.
tests/test_prompt_integrity.py:55
Functiontest_a_restated_figure_reads_as_it_did_at_the_time
The value published then, not the correction filed later.
tests/test_sec_edgar.py:74
Functiontest_a_retired_model_id_still_runs_without_a_warning
A config written against an earlier release keeps working: the provider still serves these, they are just no longer offered in the picker.
tests/test_model_validation.py:95
← previousnext →501–600 of 1,297, ranked by callers