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
Method
test_ranked_by_volume
(self)
tests/test_polymarket.py:59
Function
test_rate_limit_detected
(monkeypatch)
tests/test_alpha_vantage_hardening.py:46
Method
test_rate_limit_subclass_caught_by_base
(self)
tests/test_vendor_errors.py:54
Function
test_rate_limits_overload_and_dropped_connections_are_retried
(post, transient)
tests/test_post_screen.py:105
Method
test_rating_label_wins_over_prose_with_markdown
Rating: **Sell** must win even when prose contains a conflicting rating word.
tests/test_memory_log.py:409
Method
test_rating_parsed_buy
(self, tmp_path)
tests/test_memory_log.py:185
Method
test_rating_parsed_from_bold_markdown
**Rating**: Buy — markdown bold around the label must not prevent parsing.
tests/test_memory_log.py:395
Method
test_rating_parsed_from_bold_value
Rating: **Sell** — markdown bold around the value must not prevent parsing.
tests/test_memory_log.py:402
Method
test_rating_parsed_from_numbered_list
1. Rating: Buy — numbered list prefix must not prevent parsing.
tests/test_memory_log.py:420
Method
test_rating_parsed_overweight
(self, tmp_path)
tests/test_memory_log.py:190
Method
test_rating_priority_over_prose
Rating: X' label wins even when an opposing rating word appears earlier in prose.
tests/test_memory_log.py:204
Function
test_ratings_that_disagree_with_no_line_of_the_decisions_own_need_review
When the text never states its own rating in the decision's shape and the ratings it names disagree, nobody can tell which is the call (#1170).
tests/test_rating_integrity.py:300
Function
test_read_only_key_file_is_still_updated
(monkeypatch, prompts, tmp_path)
tests/test_api_key_env.py:184
Method
test_reasoner_suppresses_tool_choice
(self)
tests/test_deepseek_reasoning.py:148
Method
test_reasoner_variant_inherits_thinking_quirks
(self)
tests/test_capabilities.py:58
Function
test_reasoning_effort_defaults_to_none
Unset reasoning/thinking knobs stay None so each provider uses its own default.
tests/test_env_overrides.py:84
Function
test_reasoning_model_receives_effort
(monkeypatch)
tests/test_openai_reasoning_effort.py:37
Method
test_reasoning_split_sent_via_extra_body_not_top_level
(self)
tests/test_minimax.py:28
Function
test_reasoning_thinking_overrides
The provider reasoning/thinking knobs are env-configurable (non-interactive runs).
tests/test_env_overrides.py:71
Function
test_recent_cache_is_fresh
(tmp_path)
tests/test_ohlcv_cache_freshness.py:56
Method
test_recent_prior_trading_day_is_accepted
(self)
tests/test_yfinance_stale_ohlcv_guard.py:39
Function
test_record_decision_appends_a_pending_entry
(tmp_path)
tests/test_cli_memory_log.py:29
Function
test_record_decision_skips_a_run_without_a_decision
(tmp_path)
tests/test_cli_memory_log.py:37
Function
test_recording_a_run_writes_its_state_log
The CLI records a run through record_decision, so the state log is written there.
tests/test_cli_memory_log.py:173
Method
test_records_wall_time_when_analyst_completes
(self)
tests/test_cli_display.py:109
Function
test_reddit_covered_but_empty_window_is_a_real_absence
(monkeypatch)
tests/test_social_lookahead.py:142
Function
test_reddit_empty_feed_for_an_old_window_is_unavailable
(monkeypatch)
tests/test_social_lookahead.py:155
Function
test_reddit_full_page_does_not_vouch_for_older_days
(monkeypatch)
tests/test_social_lookahead.py:211
Function
test_reddit_historical_window_excludes_recent
(monkeypatch)
tests/test_social_lookahead.py:103
Function
test_reddit_live_empty_feed_is_a_real_absence
(monkeypatch)
tests/test_social_lookahead.py:168
Function
test_reddit_live_window_keeps_in_range
(monkeypatch)
tests/test_social_lookahead.py:115
Function
test_reddit_standard_week_window_empty_is_a_real_absence
(monkeypatch)
tests/test_social_lookahead.py:197
Function
test_reddit_window_straddling_the_lookback_is_unavailable
(monkeypatch)
tests/test_social_lookahead.py:183
Method
test_reflect_and_remember_removed
TradingAgentsGraph must not expose reflect_and_remember.
tests/test_memory_log.py:917
Method
test_reflect_on_final_decision_includes_returns_in_prompt
Return figures are present in the human message sent to the LLM.
tests/test_memory_log.py:518
Method
test_reflect_on_final_decision_returns_llm_output
(self)
tests/test_memory_log.py:508
Method
test_reflector_defaults_to_spy_for_unupdated_callers
Default benchmark_name keeps the SPY label for legacy callers.
tests/test_memory_log.py:716
Method
test_reflector_includes_benchmark_in_label
benchmark_name appears in the prompt label, not 'SPY' hardcoded.
tests/test_memory_log.py:700
Function
test_registry_membership
()
tests/test_provider_registry.py:18
Function
test_registry_spec
(provider, base_url, chat_class, responses)
tests/test_provider_registry.py:45
Method
test_rejects_dot_only_values
(self)
tests/test_safe_ticker_component.py:41
Method
test_rejects_empty_or_non_string
(self)
tests/test_safe_ticker_component.py:32
Method
test_rejects_null_byte_and_whitespace
(self)
tests/test_safe_ticker_component.py:27
Method
test_rejects_overlong_input
(self)
tests/test_safe_ticker_component.py:37
Method
test_rejects_path_separators
(self)
tests/test_safe_ticker_component.py:22
Method
test_rejects_unknown_analyst_keys
(self)
tests/test_analyst_execution.py:17
Function
test_remote_text_cannot_carry_c1_or_direction_controls
()
tests/test_cli_updates.py:312
Function
test_remote_text_cannot_style_or_break_the_terminal
()
tests/test_cli_updates.py:98
Method
test_renames_datetime_and_date_variants
(self)
tests/test_ohlcv_date_column.py:36
Method
test_renames_index_column
(self)
tests/test_ohlcv_date_column.py:32
Function
test_rendered_context_reaches_the_agents_from_state
()
tests/test_portfolio_context.py:70
Method
test_rendered_pm_markdown_shape
(self)
tests/test_signal_processing.py:31
Function
test_renewal_waits_for_the_time_openai_allows_while_the_token_still_works
(home, openai)
tests/test_chatgpt_auth.py:174
Function
test_report_agent_applies_language_instruction
(rel)
tests/test_i18n_coverage.py:61
Method
test_report_has_header_latest_change_and_table
(self)
tests/test_fred.py:113
Function
test_report_text_cannot_inject_markup_or_fetch_anything
(tmp_path)
tests/test_report_html.py:63
Function
test_request_error_message_carries_no_key
(monkeypatch)
tests/test_alpha_vantage_hardening.py:162
Function
test_request_passes_timeout
(monkeypatch)
tests/test_alpha_vantage_hardening.py:38
Method
test_requests_pin_the_data_vintage
(self)
tests/test_fred.py:176
Method
test_required_fields
(self)
tests/test_structured_agents.py:143
Function
test_research_depth_sets_both_rounds_without_env
(monkeypatch)
tests/test_cli_config_precedence.py:29
Function
test_research_layer_sizes_against_a_standard_allocation
The research team is blind to the book, so its plan cannot promise position-relative sizing: it sizes against a standard allocation instead.
tests/test_portfolio_context.py:235
Function
test_research_manager_prompt_states_constraint
()
tests/test_structured_agent_prompts.py:61
Function
test_research_team_stays_blind_to_the_portfolio
()
tests/test_portfolio_context.py:198
Function
test_researcher_opening_has_no_phantom_opponent
(factory, opponent)
tests/test_debate_opening.py:73
Function
test_researcher_passes_real_opponent_argument
()
tests/test_debate_opening.py:80
Function
test_resolution_date_is_stored_and_parsed
(tmp_path)
tests/test_memory_pointintime.py:28
Method
test_resolve_benchmark_brazil
B3 tickers were measured against SPY.
tests/test_memory_log.py:657
Method
test_resolve_benchmark_case_insensitive
Suffix matching is case-insensitive so 7203.t resolves like 7203.T.
tests/test_memory_log.py:692
Method
test_resolve_benchmark_china_a_shares
A-share tickers route to their exchange composite (uses the real default benchmark_map, since A-share support relies on it).
tests/test_memory_log.py:646
Method
test_resolve_benchmark_explicit_override
config['benchmark_ticker'] wins for every ticker.
tests/test_memory_log.py:616
Method
test_resolve_benchmark_regional_indexes
Taiwan, Korea, Singapore and the main European exchanges were measured against SPY.
tests/test_memory_log.py:668
Method
test_resolve_benchmark_suffix_map
Known suffixes route to their regional index.
tests/test_memory_log.py:625
Method
test_resolve_benchmark_unknown_suffix_falls_back
Unrecognised suffix (BRK.B, FAKE.XX) falls back to SPY.
tests/test_memory_log.py:683
Method
test_resolve_benchmark_us_ticker_defaults_to_spy
US tickers (no dotted suffix) take the empty-suffix entry.
tests/test_memory_log.py:674
Method
test_resolve_leaves_premature_entry_pending
#1169: when the outcome can't be settled yet (fetch_returns None), the entry stays pending and the reflector is never called.
tests/test_memory_log.py:757
Method
test_resolve_marks_entry_completed
After resolve, get_pending_entries() is empty and the entry has a REFLECTION.
tests/test_memory_log.py:741
Method
test_resolve_skips_other_tickers
Pending AAPL entry is not resolved when the run is for NVDA.
tests/test_memory_log.py:732
Function
test_resolver_does_not_affect_other_providers
OLLAMA_BASE_URL should NOT leak into xai/deepseek/etc.
tests/test_ollama_base_url.py:52
Function
test_resolver_evaluation_is_call_time
Setting the env AFTER module import must still take effect.
tests/test_ollama_base_url.py:44
Function
test_resolver_returns_default_when_env_unset
(monkeypatch)
tests/test_ollama_base_url.py:32
Function
test_resolver_returns_env_when_set
(monkeypatch)
tests/test_ollama_base_url.py:38
Method
test_resolves_company_metadata_from_yfinance
(self)
tests/test_instrument_identity.py:22
Method
test_resolves_known_crypto_forms
(self)
tests/test_symbols.py:89
Method
test_result_is_cached
(self)
tests/test_instrument_identity.py:67
Function
test_retries_are_bounded
(post)
tests/test_post_screen.py:131
Method
test_retry_after_header_is_honoured
(self)
tests/test_reddit_fallback.py:111
Method
test_retry_after_zero_is_honoured_not_treated_as_absent
(self)
tests/test_reddit_fallback.py:118
Method
test_returns_none_when_absent
(self)
tests/test_signal_processing.py:66
Function
test_risk_opening_has_no_phantom_opponent
(factory)
tests/test_debate_opening.py:94
Function
test_risk_passes_real_opponent_arguments
()
tests/test_debate_opening.py:102
Method
test_rotation_disabled_by_default
Without max_entries, all resolved entries are kept.
tests/test_memory_log.py:332
Method
test_rotation_never_prunes_pending
Pending entries (unresolved) are kept regardless of the cap.
tests/test_memory_log.py:364
Method
test_rotation_prunes_oldest_resolved
When max_entries is set and exceeded, oldest resolved entries are pruned.
tests/test_memory_log.py:339
Method
test_rotation_prunes_the_oldest_dated_not_the_first_written
A backfill writes older dates last; rotation still keeps the newest decisions.
tests/test_memory_log.py:354
Method
test_rotation_under_cap_is_noop
No rotation when resolved count <= max_entries.
tests/test_memory_log.py:383
Function
test_round_trip
()
tests/test_cli_prefs.py:31
Function
test_rounds_from_the_environment_do_not_claim_a_depth_was_chosen
With both round counts set, the depth question never appeared.
tests/test_cli_headless.py:166
Function
test_router_return_always_routable
(latest_speaker)
tests/test_risk_router_path_map.py:33
Method
test_router_sentinel_surfaces_stale_reason
(self)
tests/test_yfinance_stale_ohlcv_guard.py:92
← previous
next →
1,501–1,600 of 1,834, ranked by callers