MCPcopy Create free account

hub / github.com/TauricResearch/TradingAgents / functions

Functions1,834 in github.com/TauricResearch/TradingAgents

MethodtearDown
(self)
tests/test_fred.py:223
MethodtearDown
(self)
tests/test_no_data_handling.py:31
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_backtest_result_is_summarized_directly
The result names its own log, so a caller never builds the log to score it.
tests/test_backtest.py:312
Methodtest_a_bar_of_a_session_still_trading_is_not_scored
(self, monkeypatch)
tests/test_memory_log.py:1165
Functiontest_a_base_url_without_a_key_does_not_turn_screening_on
(monkeypatch)
tests/test_post_screen.py:94
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:259
Functiontest_a_bearish_call_that_rose_counts_as_wrong
(tmp_path)
tests/test_backtest.py:271
Methodtest_a_benchmark_shut_past_the_window_is_fetched_again
(self, monkeypatch)
tests/test_memory_log.py:1203
Functiontest_a_bullish_call_is_scored_the_same_way_as_before
(tmp_path)
tests/test_backtest.py:277
Functiontest_a_cache_of_the_wrong_shape_is_no_news
(tmp_path, monkeypatch, stored)
tests/test_cli_updates.py:288
Functiontest_a_cash_flow_filed_year_to_date_is_served_with_its_span
Many filers tag a 10-Q's cash flows only year to date (3, 6, then 9 months): a quarterly table of discrete quarters alone would stop at each first
tests/test_sec_edgar.py:293
Functiontest_a_cell_already_in_the_log_is_not_run_again
(tmp_path)
tests/test_backtest.py:90
Functiontest_a_chatgpt_tier_beside_an_openai_tier_keeps_each_credential
(signed_in, monkeypatch)
tests/test_chatgpt_provider.py:66
Functiontest_a_check_dated_in_the_future_is_due
()
tests/test_cli_updates.py:297
Functiontest_a_check_is_due_once_a_day
()
tests/test_cli_updates.py:167
Functiontest_a_check_records_the_latest_release_and_notices
(tmp_path, monkeypatch)
tests/test_cli_updates.py:179
Functiontest_a_close_that_is_not_a_price_is_skipped_not_scored
A zero close would score as an infinite return and be written to the memory log.
tests/test_memory_log.py:1231
Functiontest_a_closed_stdin_counts_as_no_terminal
(monkeypatch, capsys)
tests/test_cli_headless.py:158
Functiontest_a_corrupt_file_degrades_to_no_memory
(tmp_path)
tests/test_cli_prefs.py:42
Functiontest_a_crypto_pair_is_fetched_from_its_communities_in_one_request
()
tests/test_reddit_fallback.py:329
Functiontest_a_crypto_ticker_is_searched_in_crypto_communities
(ticker, expected)
tests/test_reddit_fallback.py:324
Functiontest_a_current_run_is_not_cluttered_with_a_vintage_note
(monkeypatch)
tests/test_undated_tools_as_of.py:87
Functiontest_a_current_run_is_still_served_yahoo_statements
()
tests/test_statement_knowledge_time.py:41
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:128
Methodtest_a_date_must_be_a_past_or_present_day
(self)
tests/test_cli_headless.py:31
Functiontest_a_debug_run_prints_the_analysts_work_and_reaches_the_same_decision
Debug mode streams the analysts' own graphs, so their tool calls still print.
tests/test_graph_end_to_end.py:193
Methodtest_a_decision_before_a_long_market_closure_settles
(self, monkeypatch)
tests/test_memory_log.py:1179
Methodtest_a_decision_is_scored_from_the_first_close_after_its_date
#1518: news published after the close on the decision date reaches the analysts, so the close of that date is not a price they could have trad
tests/test_memory_log.py:584
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:179
Functiontest_a_download_from_an_earlier_day_is_not_fresh
(tmp_path)
tests/test_ohlcv_cache_freshness.py:68
Functiontest_a_failed_cell_does_not_abort_the_sweep
(tmp_path)
tests/test_backtest.py:109
Functiontest_a_failed_check_keeps_what_was_known_and_waits_a_day
(tmp_path, monkeypatch, capsys)
tests/test_cli_updates.py:199
Functiontest_a_failed_login_exits_with_the_reason
(runner, monkeypatch)
tests/test_cli_commands.py:203
Methodtest_a_failed_lookup_is_asked_again
(self)
tests/test_instrument_identity.py:58
Methodtest_a_failed_reflection_is_reported_and_left_pending
(self, tmp_path, monkeypatch)
tests/test_memory_log.py:1269
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:977
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:185
Functiontest_a_failure_does_not_wait_for_requests_still_in_flight
(jev, monkeypatch)
tests/test_post_screen.py:288
Functiontest_a_failure_message_with_brackets_is_printed_as_text
(runner, monkeypatch)
tests/test_cli_commands.py:227
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:531
Functiontest_a_figure_under_a_million_is_not_printed_as_zero
(monkeypatch)
tests/test_sec_edgar.py:350
Functiontest_a_figure_with_no_stated_currency_is_printed_bare
()
tests/test_fundamentals_units.py:67
Functiontest_a_file_held_open_elsewhere_keeps_its_old_content
On Windows a file another reader has open cannot be replaced; the cache write is skipped rather than failing the call that produced the data.
tests/test_cache_writes.py:70
Functiontest_a_filer_with_no_usable_facts_reads_differently_from_a_non_filer
(monkeypatch)
tests/test_sec_edgar.py:114
Functiontest_a_flat_article_with_a_null_field_is_read_with_its_default
(field)
tests/test_news_lookahead.py:405
Functiontest_a_fresh_token_is_used_without_asking_openai
(home, openai)
tests/test_chatgpt_auth.py:154
Functiontest_a_full_run_reaches_a_logged_decision
(tmp_path, monkeypatch, offline, structured)
tests/test_graph_end_to_end.py:133
Functiontest_a_gemini_call_times_out_like_the_other_providers
The OpenAI and Anthropic SDKs give up after 600s; Gemini's waits forever unless told otherwise, so a stalled call would hang the run (#1417).
tests/test_google_thinking_level.py:66
Functiontest_a_genuine_id_token_is_accepted
()
tests/test_chatgpt_auth.py:119
Functiontest_a_graph_built_earlier_still_runs_with_its_own_config
Scoping at construction would hand graph A graph B's config if B was built after A; the config must be bound when the run starts.
tests/test_dataflows_config.py:102
Functiontest_a_graph_reused_across_runs_keeps_no_run_state
A backtest reuses one graph over its whole grid; holding every run's full state would grow without bound.
tests/test_graph_end_to_end.py:169
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:90
Functiontest_a_half_written_file_cannot_be_observed
Two runs finishing together must never leave a torn file behind.
tests/test_cli_prefs.py:48
Functiontest_a_historical_run_gets_the_current_name_only_as_an_identifier
The profile is today's. The name still tells the company apart from others (#814), so a past run keeps it, marked as today's; a sector, industry o
tests/test_undated_tools_as_of.py:70
Functiontest_a_historical_run_is_not_told_todays_date
A header stamped with the wall clock tells a backtest when it is really running.
tests/test_undated_tools_as_of.py:219
Functiontest_a_holding_keeps_the_instrument_it_was_listed_as
()
tests/test_portfolio_context.py:93
Functiontest_a_holding_under_a_broker_alias_is_the_analyzed_instrument
(held, analyzed, canonical)
tests/test_portfolio_context.py:55
Functiontest_a_line_the_filer_does_not_tag_is_named_as_such
()
tests/test_sec_edgar.py:100
Functiontest_a_lock_held_elsewhere_is_reported_when_not_waiting
(tmp_path)
tests/test_cache_writes.py:132
Functiontest_a_log_path_that_does_not_exist_is_an_error_not_an_empty_summary
(tmp_path)
tests/test_backtest.py:322
Functiontest_a_long_retry_after_is_capped
(post)
tests/test_post_screen.py:122
Methodtest_a_long_shot_is_not_shown_as_impossible_or_certain
(self)
tests/test_polymarket.py:81
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:1047
Functiontest_a_malformed_model_entry_does_not_hide_the_others
(signed_in)
tests/test_chatgpt_provider.py:192
Methodtest_a_market_whose_clocks_skip_midnight_still_settles
(self, monkeypatch)
tests/test_memory_log.py:1193
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:24
Methodtest_a_missing_close_is_skipped_not_scored
(self, monkeypatch)
tests/test_memory_log.py:1147
Functiontest_a_missing_key_without_a_terminal_names_the_variable
(monkeypatch, capsys)
tests/test_cli_headless.py:122
Functiontest_a_missing_sign_in_fails_before_any_request
(monkeypatch)
tests/test_provider_registry.py:106
Functiontest_a_missing_time_zone_is_not_taken_for_an_answer
yfinance reports a failed time-zone lookup the same way as a symbol without one.
tests/test_yahoo_rate_limit.py:274
Functiontest_a_model_that_no_longer_exists_is_dropped
()
tests/test_cli_prefs.py:59
Functiontest_a_network_failure_while_signing_in_is_reported_not_raised_raw
(home, openai)
tests/test_chatgpt_auth.py:422
Functiontest_a_newer_release_is_announced_once_in_the_notice
(running, shown)
tests/test_cli_updates.py:83
Functiontest_a_non_filer_is_reported_as_such_not_as_missing_data
()
tests/test_sec_edgar.py:68
Functiontest_a_notice_is_shown_as_plain_text_with_only_a_web_link
()
tests/test_cli_updates.py:138
Functiontest_a_notice_shows_through_its_bounds_and_date_and_hides_when_they_cannot_be_read
()
tests/test_cli_updates.py:124
Functiontest_a_notice_with_an_unreadable_expiry_is_not_shown
()
tests/test_cli_updates.py:302
Functiontest_a_page_is_opened_only_in_a_browser_window_on_this_machine
(monkeypatch, env, browser, offered)
tests/test_cli_headless.py:305
Functiontest_a_page_the_browser_cannot_open_is_pointed_to
(monkeypatch, tmp_path, capsys)
tests/test_cli_headless.py:352
Functiontest_a_partial_settings_dict_still_writes_the_report
(tmp_path)
tests/test_reporting.py:137
Functiontest_a_passthrough_status_is_returned_for_the_caller
()
tests/test_get_scrubbed.py:61
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:211
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_plan_pointed_at_another_endpoint_stops_before_the_run
(monkeypatch, capsys, main, tier_provider, t
tests/test_chatgpt_provider.py:218
Methodtest_a_price_request_that_fails_is_reported_not_taken_for_not_due
(self, tmp_path, monkeypatch)
tests/test_memory_log.py:1351
Functiontest_a_price_request_that_fails_is_unavailable_even_when_yahoo_answers
A timeout says nothing about the symbol; a reachable host does not make it one.
tests/test_yahoo_rate_limit.py:132
Functiontest_a_price_request_that_raises_is_unavailable_whether_or_not_yahoo_answers
An unknown symbol comes back from ``Ticker.history`` as an empty frame, so a request that raised failed in transit, and says nothing about the sym
tests/test_yahoo_rate_limit.py:117
Functiontest_a_price_that_is_a_number_survives
()
tests/test_structured_agents.py:522
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:510
Functiontest_a_quote_feed_with_articles_is_not_searched
(monkeypatch)
tests/test_news_lookahead.py:215
Functiontest_a_quoted_rating_in_a_list_table_or_quote_is_not_the_decision
(quoted)
tests/test_rating_integrity.py:251
Functiontest_a_rate_limit_that_outlasts_the_retries_is_reported_as_one
(yahoo, tool, args)
tests/test_yahoo_rate_limit.py:53
Functiontest_a_rating_argued_against_is_not_read_as_the_decision
()
tests/test_rating_integrity.py:31
Functiontest_a_rating_someone_else_gave_does_not_become_the_decision
The decision's own rating line is read as the call; another party's rating, even on a line of its own, is evidence, not the call (#1466).
tests/test_rating_integrity.py:279
Functiontest_a_rating_the_text_quotes_does_not_replace_the_decision
A free-text decision opens with its own rating line; a rating it quotes as evidence, or a word merely ending in 'rating', is not the call.
tests/test_rating_integrity.py:236
Functiontest_a_rating_word_without_a_label_is_not_read_as_the_call
A rating word in prose may be one the text argues against (#1435).
tests/test_rating_integrity.py:49
Functiontest_a_recast_outside_the_annual_report_still_counts_from_its_filing
Filers recast past years in an 8-K after a split or spin-off. The annual report decides the columns; the value is the latest filing of any form.
tests/test_sec_edgar.py:274
← previousnext →801–900 of 1,834, ranked by callers