MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,834 in github.com/TauricResearch/TradingAgents

Functiontest_normalize_dates_strips_tz_and_normalizes_to_midnight
()
tests/test_ohlcv_latest_bar.py:36
Functiontest_normalize_symbol_crypto_and_passthrough
(raw, expected)
tests/test_cli_symbol_handling.py:27
Methodtest_normalize_ticker_symbol_preserves_exchange_suffix
(self)
tests/test_ticker_symbol_handling.py:11
Methodtest_normalized_does_not_propagate_reasoning_content
The general-purpose NormalizedChatOpenAI must not carry DeepSeek-specific behaviour. Only the subclass does.
tests/test_deepseek_reasoning.py:233
Methodtest_not_configured_degrades_gracefully
(self)
tests/test_fred.py:239
Methodtest_not_configured_falls_through_to_next_vendor
(self)
tests/test_vendor_errors.py:69
Methodtest_not_configured_is_a_value_error
(self)
tests/test_fred.py:106
Methodtest_not_configured_is_still_a_value_error
(self)
tests/test_vendor_errors.py:34
Functiontest_not_forwarded_when_unset
()
tests/test_llm_max_tokens.py:50
Functiontest_not_forwarded_when_unset
()
tests/test_llm_max_retries.py:48
Functiontest_nothing_is_missing_when_flags_and_environment_answer_every_step
(monkeypatch)
tests/test_cli_headless.py:83
Functiontest_nothing_that_holds_the_url_travels_with_the_error
The request, the response and a chained original each carry the full URL.
tests/test_get_scrubbed.py:48
Functiontest_notices_are_read_from_their_own_key
()
tests/test_cli_updates.py:155
Functiontest_notices_reach_only_the_versions_they_name
()
tests/test_cli_updates.py:108
Functiontest_offset_aware_timestamp_is_converted_not_truncated
()
tests/test_news_lookahead.py:65
Functiontest_older_nan_close_row_is_still_dropped
(monkeypatch, tmp_path)
tests/test_ohlcv_latest_bar.py:154
Functiontest_older_periods_fall_back_to_the_tag_the_filer_used_then
Filers renamed lines when the revenue standard changed, so one tag covers only recent years. Each period takes one tag, never a sum of two.
tests/test_sec_edgar.py:197
Functiontest_ollama_has_no_key
()
tests/test_api_key_env.py:53
Methodtest_ollama_honors_base_url_env
(self)
tests/test_cli_env_skip.py:29
Functiontest_ollama_model_labels_no_local_suffix
Labels should no longer claim '(local)' since the endpoint is dynamic.
tests/test_ollama_base_url.py:133
Functiontest_ollama_offers_custom_model_id
Ollama users with custom-pulled models can pick 'Custom model ID'.
tests/test_ollama_base_url.py:141
Functiontest_on_windows_a_held_lock_is_reported_when_not_waiting
(tmp_path, monkeypatch)
tests/test_cache_writes.py:155
Functiontest_on_windows_a_lock_that_cannot_be_taken_is_reported_not_retried_forever
(tmp_path, monkeypatch)
tests/test_cache_writes.py:119
Functiontest_on_windows_the_lock_is_waited_for_while_another_writer_holds_it
(tmp_path, monkeypatch)
tests/test_cache_writes.py:105
Methodtest_one_bad_field_no_longer_fails_the_whole_proposal
(self)
tests/test_structured_agents.py:127
Functiontest_one_cache_file_per_symbol_across_days
A later day's download replaces the symbol's file instead of adding one (#1330).
tests/test_ohlcv_cache_freshness.py:97
Functiontest_one_failed_request_leaves_every_post_unscreened
(jev)
tests/test_post_screen.py:231
Functiontest_one_instrument_held_under_two_spellings_shows_both_holdings
()
tests/test_portfolio_context.py:84
Functiontest_one_malformed_article_does_not_lose_the_feed
(monkeypatch)
tests/test_news_lookahead.py:412
Functiontest_only_a_notices_list_replaces_the_known_notices
(tmp_path, monkeypatch)
tests/test_cli_updates.py:215
Functiontest_only_a_person_at_a_terminal_is_told
(monkeypatch, stdin_tty, stdout_tty, ci, opt_out, expected)
tests/test_cli_updates.py:38
Methodtest_only_official_namespace_is_stripped
(self)
tests/test_capabilities.py:156
Functiontest_only_the_providers_the_tiers_use_need_a_key
Both tiers on a local Ollama: the main provider's key is not needed.
tests/test_cli_headless.py:339
Functiontest_only_yahoo_saying_a_window_has_no_prices_is_no_data
yfinance raises YFPricesMissingError both when Yahoo answered with no prices and when its answer was an error; only the first is a fact about the
tests/test_yahoo_rate_limit.py:256
Functiontest_openai_and_google_clients_accept_the_kwarg
()
tests/test_llm_max_tokens.py:87
Methodtest_openai_hosts_are_native
(self)
tests/test_openai_responses_base_url.py:20
Methodtest_openrouter_and_ollama_accept_custom_models_without_warning
(self)
tests/test_model_validation.py:46
Methodtest_optional_category_degrades_instead_of_raising
(self)
tests/test_vendor_routing.py:103
Methodtest_optional_fields_are_named_as_not_provided
An omitted line reads as a field nobody asked for; the reader cannot tell it from a level the trader declined to set.
tests/test_structured_agents.py:64
Methodtest_optional_fields_included_when_present
(self)
tests/test_structured_agents.py:49
Functiontest_optional_key_from_env
(monkeypatch)
tests/test_openai_compatible_provider.py:47
Functiontest_options_still_parse_without_a_subcommand
(runner)
tests/test_cli_commands.py:33
Functiontest_other_failures_raise_without_retry
(post, status)
tests/test_post_screen.py:151
Methodtest_other_kwargs_still_forwarded_when_effort_skipped
Skipping effort must not break other passthrough kwargs.
tests/test_anthropic_effort.py:88
Functiontest_other_request_errors_are_screening_failures_without_retry
(post, error)
tests/test_post_screen.py:141
Functiontest_out_of_window_articles_do_not_consume_the_article_budget
The limit counts articles the run may see, not candidates fetched (#1356). Out-of-window items were counted first, so they filled the budget, sto
tests/test_news_lookahead.py:349
Methodtest_oversized_rss_feed_is_refused_not_parsed
(self)
tests/test_reddit_fallback.py:148
Methodtest_overview_is_withheld
(self)
tests/test_fundamentals_lookahead.py:96
Methodtest_parse_rating_defaults_to_review
(self)
tests/test_signal_processing.py:74
Methodtest_parses_atom_entries
(self)
tests/test_reddit_fallback.py:78
Methodtest_parses_offset_and_z
(self)
tests/test_reddit_fallback.py:57
Functiontest_partial_env_only_overrides_that_count
(monkeypatch)
tests/test_cli_config_precedence.py:48
Methodtest_partial_nested_update_preserves_existing_defaults
(self)
tests/test_dataflows_config.py:40
Functiontest_partial_portfolio_states_only_what_it_was_given
Cash omitted is not cash zero; the line is absent rather than invented.
tests/test_portfolio_context.py:246
Methodtest_past_context_defaults_to_empty
(self)
tests/test_memory_log.py:783
Methodtest_past_context_in_initial_state
(self)
tests/test_memory_log.py:777
Functiontest_past_decisions_settle_alongside_the_analysts
(tmp_path, monkeypatch, offline)
tests/test_graph_end_to_end.py:310
Functiontest_path_map_covers_full_router_range
()
tests/test_risk_router_path_map.py:47
Functiontest_pending_note_appears_only_when_something_is_pending
(tmp_path)
tests/test_backtest.py:245
Methodtest_pending_tag_format
(self, tmp_path)
tests/test_memory_log.py:177
Functiontest_percent_fields_carry_their_unit_and_fractions_are_unchanged
()
tests/test_fundamentals_units.py:25
Methodtest_percentage_answer_to_a_price_field_becomes_none
(self)
tests/test_structured_agents.py:103
Methodtest_plain_equities_unchanged
(self)
tests/test_symbols.py:13
Methodtest_pm_falls_back_to_freetext_when_structured_unavailable
If a provider does not support with_structured_output, the agent falls back to a plain invoke and returns whatever prose the model pro
tests/test_memory_log.py:830
Methodtest_pm_no_past_context_no_section
PM prompt omits the lessons section entirely when past_context is empty.
tests/test_memory_log.py:799
Methodtest_pm_nullish_price_target_coerces_to_none
(self)
tests/test_structured_agents.py:94
Methodtest_pm_prompt_includes_past_context
(self)
tests/test_memory_log.py:790
Methodtest_pm_returns_rendered_markdown_with_rating
The structured PortfolioDecision is rendered to markdown that downstream consumers (memory log, signal processor, CLI display) can par
tests/test_memory_log.py:808
Functiontest_polymarket_serves_a_current_run
()
tests/test_undated_tools_as_of.py:52
Functiontest_polymarket_withholds_live_odds_from_a_historical_run
()
tests/test_undated_tools_as_of.py:45
Methodtest_portfolio_manager_no_memory_param
create_portfolio_manager accepts only llm; passing memory= raises TypeError.
tests/test_memory_log.py:921
Functiontest_portfolio_manager_prompt_states_constraint
()
tests/test_structured_agent_prompts.py:82
Functiontest_position_in_the_analyzed_instrument_leads_the_render
()
tests/test_portfolio_context.py:30
Methodtest_posts_are_grouped_back_by_subreddit
(self)
tests/test_reddit_fallback.py:217
Functiontest_posts_from_an_unrequested_or_unnamed_subreddit_are_not_dropped
()
tests/test_reddit_fallback.py:243
Methodtest_prefers_precomputed_context
(self)
tests/test_instrument_identity.py:109
Methodtest_prefixed_chat_selects_deepseek_chat_not_default
(self)
tests/test_capabilities.py:149
Methodtest_prefixed_flash_alias_suppresses_tool_choice
(self)
tests/test_capabilities.py:146
Methodtest_prefixed_reasoner_suppresses_tool_choice
(self)
tests/test_capabilities.py:143
Methodtest_prefixed_v4_flash_suppresses_tool_choice
(self)
tests/test_capabilities.py:139
Methodtest_price_text
(self, value, text)
tests/test_yahoo_snapshot.py:91
Methodtest_primary_error_is_logged_not_masked
(self)
tests/test_vendor_routing.py:74
Functiontest_pro_keeps_high
()
tests/test_google_thinking_level.py:54
Functiontest_pro_remaps_minimal_to_low
()
tests/test_google_thinking_level.py:33
Methodtest_probability_volume_and_weekly_change_render
(self)
tests/test_polymarket.py:73
Functiontest_progress_is_reported_before_each_cell
(tmp_path)
tests/test_backtest.py:340
Methodtest_prompt_contains_ticker
(self)
tests/test_structured_agents.py:469
Methodtest_prompt_custom_model_id_cancel_exits
(self)
tests/test_openrouter_model_select.py:107
Methodtest_prompt_includes_investment_plan
(self)
tests/test_structured_agents.py:235
Methodtest_prompt_includes_market_report_for_price_levels
(self)
tests/test_structured_agents.py:244
Methodtest_prompt_states_the_mode
(self, mode, label)
tests/test_openrouter_model_select.py:19
Methodtest_prompt_uses_5_tier_rating_scale
The RM prompt must list all five tiers so the schema enum matches user expectations.
tests/test_structured_agents.py:333
Methodtest_propagate_on_send
When an outgoing AIMessage carries reasoning_content, the request payload echoes it on the corresponding message dict.
tests/test_deepseek_reasoning.py:89
Functiontest_propagate_rejects_a_future_date
(monkeypatch)
tests/test_tool_date_enforcement.py:199
Functiontest_propagate_rejects_a_non_canonical_date
(bad)
tests/test_tool_date_enforcement.py:189
Methodtest_propagate_through_chat_prompt_value
Gemini bot review note: non-list inputs (ChatPromptValue) must also propagate reasoning_content.
tests/test_deepseek_reasoning.py:104
Methodtest_propagator_includes_asset_type_in_initial_state
(self)
tests/test_crypto_asset_mode.py:47
Functiontest_prose_naming_several_ratings_without_a_label_needs_review
Nothing in the text says which one is the call, so guessing risks reporting the opposite of the decision.
tests/test_rating_integrity.py:36
Methodtest_raises_on_empty_data
(self, monkeypatch)
tests/test_yahoo_snapshot.py:54
Methodtest_raises_when_no_rows_on_or_before_date
(self, monkeypatch)
tests/test_yahoo_snapshot.py:49
← previousnext →1,401–1,500 of 1,834, ranked by callers