MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

Functiontest_written_report_file_carries_the_disclosure
End-to-end: the artifact a user keeps, with no renderer stubbed.
agent/tests/test_alpha_bench_meta_survivorship.py:218
Functiontest_wrong_call_for_the_right_field_hints_the_call_holding_the_value
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:224
Functiontest_wrong_call_hint_is_value_matched_only
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:236
Functiontest_wrong_call_hint_stays_within_the_declared_calls_tool
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:248
Functiontest_wrong_cancel_token_fails_closed
()
agent/tests/test_paper_trade_v12_schema.py:445
Functiontest_wrong_derived_return_arithmetic_is_rejected
A from/to frame with arithmetic that no observed pair supports fails.
agent/tests/test_agent_grounding.py:3207
Methodtest_wrong_manifest_shape
(self, isolated_home: Path, payload_factory)
agent/tests/test_strategy_discovery_refresh.py:240
Methodtest_wrong_manifest_shape_fails_with_clear_error
( self, home: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_strategy_evidence.py:176
Functiontest_wrong_schema_database_is_refused
A readable SQLite file with the wrong tables must not register.
agent/tests/test_taiwan_stock_data_tool.py:781
Functiontest_wrong_value_for_an_indexed_element_is_rejected
( tmp_path: Path, dotted: bool )
agent/tests/test_grounding_indexed_field_refs.py:73
Functiontest_wvma_gap_masks_exactly_its_reach_and_recovers
( compute, window: int, field: str, extra_bar: int, )
agent/tests/factors/test_qlib158_wvma_abs_numerator.py:112
Functiontest_wvma_nonzero_values_and_warmup_match_independent_oracle
(compute, window: int)
agent/tests/factors/test_qlib158_wvma_abs_numerator.py:98
Functiontest_wvma_numerator_uses_absolute_return
(compute, window: int)
agent/tests/factors/test_qlib158_wvma_abs_numerator.py:56
Functiontest_wvma_zero_volume_keeps_local_zero_denominator_nan_contract
(compute, window: int)
agent/tests/factors/test_qlib158_wvma_abs_numerator.py:132
Methodtest_xaut_usdt_keeps_tokenized_gold
(self)
agent/tests/test_symbol_search_tool.py:1196
Methodtest_xauusd_and_xautusdt_are_not_equivalent_assets
(self)
agent/tests/test_symbol_search_tool.py:1080
Methodtest_xauusd_slash_drops_near_string_crypto_hits
(self)
agent/tests/test_symbol_search_tool.py:1146
Methodtest_xauusd_x_drops_near_string_crypto_hits
(self)
agent/tests/test_symbol_search_tool.py:1154
Methodtest_xauusdt_drops_near_string_btc_etp
The bug repro: Yahoo returns a Swedish Bitcoin ETP for XAUUSD.
agent/tests/test_symbol_search_tool.py:1135
Functiontest_xirr_all_returns_a_single_root_for_a_conventional_schedule
()
agent/tests/quantlib/test_fundmath.py:280
Functiontest_xirr_discounts_by_actual_days
Half the elapsed time at the same multiple must roughly square the rate.
agent/tests/quantlib/test_performance.py:349
Functiontest_xirr_recovers_a_known_flat_rate
Pay 1000, receive 1100 exactly one year later: 10%.
agent/tests/quantlib/test_performance.py:342
Functiontest_xirr_recovers_the_constructed_rate
(rate)
agent/tests/quantlib/test_fundmath.py:103
Functiontest_xirr_recovery_is_far_tighter_than_the_required_tolerance
()
agent/tests/quantlib/test_fundmath.py:107
Functiontest_xirr_survives_a_horizon_in_the_subnormal_discount_window
~52 years leaves the discount factor subnormal rather than zero. At the lower bracket ``1e-6 ** 52 ~ 6e-313`` is a denormal, so the closing t
agent/tests/quantlib/test_performance.py:387
Functiontest_xirr_survives_a_horizon_that_underflows_the_discount_factor
Sixty years underflows the factor at the solver's lower bracket. The bisection starts just above -100%, where a 60-year discount factor (``1e
agent/tests/quantlib/test_performance.py:355
Functiontest_xlsx_invalid_date_is_rejected
(tmp_path, monkeypatch)
agent/tests/test_trade_journal_invalid_datetime.py:106
Functiontest_xlsx_multiple_sheets
(tmp_path: Path)
agent/tests/test_doc_reader.py:124
Methodtest_yahoo_client_passes_vn_through
(self)
agent/tests/test_vietnam_equity.py:38
Methodtest_yahoo_declares_vietnam_market
(self)
agent/tests/test_vietnam_equity.py:49
Methodtest_yahoo_empty_news_returns_empty_articles
(self)
agent/tests/test_stock_news_tool.py:192
Methodtest_yahoo_equals_notation_routes_to_underlying_market
(self)
agent/tests/test_correlation.py:91
Methodtest_yahoo_equals_notation_routes_to_underlying_market
(self)
agent/tests/test_market_detection.py:421
Methodtest_yahoo_failure_envelope
(self)
agent/tests/test_stock_news_tool.py:235
Methodtest_yahoo_limit_is_clamped_before_request
(self)
agent/tests/test_stock_news_tool.py:199
Functiontest_yahoo_loader_accepts_futures_and_forex_suffixes
The yahoo direct loader must accept =F/=X, not just equity suffixes (#718).
agent/tests/test_market_data.py:74
Functiontest_yahoo_loader_accepts_index_symbols
^SPX-style index symbols must be served verbatim like =F/=X.
agent/tests/test_market_data.py:86
Methodtest_yahoo_notation_uses_pair_spread
USDJPY=X is USD/JPY: it gets the 1.0 pip spread, not the 2.0 default.
agent/tests/test_forex_engine.py:179
Methodtest_yahoo_shanghai_suffix_folds_onto_the_project_convention
Yahoo's ``.SS`` and Eastmoney's ``.SH`` must merge into one candidate. Emitted separately they became two rival candidates for one listing,
agent/tests/test_symbol_search_tool.py:486
Methodtest_yahoo_shanghai_suffix_resolves_like_sh
(self)
agent/tests/test_etf_holdings_tool.py:362
Methodtest_yahoo_source_aliases_yfinance
(self)
agent/tests/test_metrics.py:202
Functiontest_year_fraction_is_antisymmetric
()
agent/tests/quantlib/test_fixedincome.py:301
Functiontest_year_horizon_label_does_not_exempt_the_return_it_labels
( tmp_path: Path, )
agent/tests/test_grounding_unit_and_scanner_gaps.py:195
Functiontest_year_horizon_label_is_not_a_measurement
(label: str)
agent/tests/test_grounding_unit_and_scanner_gaps.py:181
Functiontest_year_less_date_still_rejects_a_wrong_quote
Matching the day must not stop the value from being checked (#983). Resolving the date is what lets the comparison happen at all; it must not
agent/tests/test_agent_grounding.py:1762
Methodtest_year_to_date_frame_is_excluded
(self)
agent/tests/test_sec_period_frames.py:131
Methodtest_year_to_date_frame_never_replaces_the_quarter
(self)
agent/tests/test_sec_period_frames.py:111
Functiontest_yen_and_won_are_currency_marks
(text: str, shape: str)
agent/tests/test_grounding_shape_hardening.py:569
Functiontest_yfinance_cache_lookup_keeps_requested_end_date
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_crypto.py:129
Functiontest_yfinance_loader_serves_second_fetch_from_cache
A batch loader (yfinance) must skip its bulk download on a full cache hit.
agent/tests/test_loader_retry_helpers.py:532
Methodtest_yfinance_loader_validates_dates
yfinance loader should raise on reversed dates before fetching.
agent/tests/test_engine_robustness.py:523
Methodtest_yfinance_passes_vn_through
(self)
agent/tests/test_vietnam_equity.py:41
Functiontest_yields_are_omitted_when_the_price_is_zero
()
agent/tests/test_financial_rigor_tool.py:138
Functiontest_ypfd_buy_and_hold_minimal_config
(tmp_path, monkeypatch)
agent/tests/test_argentina_backtests.py:146
Functiontest_ypfd_ggal_rotation_nets_the_same_session_sale
(tmp_path, monkeypatch, mode)
agent/tests/test_argentina_backtests.py:172
Functiontest_ytd_and_full_year_frames_are_excluded_and_q4_is_synthesized
Regression: SEC duration entries mix 3-month, YTD, and full-year frames. Live AAPL data produced a ~$1T "TTM revenue" because YTD frames sharing
agent/tests/test_fundamentals_pit.py:280
Functiontest_ytm_solve_raises_when_price_unreachable
()
agent/tests/quantlib/test_fixedincome.py:100
Functiontest_ytm_solve_rejects_inverted_bracket
()
agent/tests/quantlib/test_fixedincome.py:105
Functiontest_yyyymmdd_cal_date_spelling_is_normalized
()
agent/tests/test_paper_trade_calendar.py:100
Functiontest_zai_base_url_falls_back_to_catalog_default
With no *_BASE_URL set, zai resolves to its catalog endpoint instead of silently defaulting to api.openai.com (which 404s glm-5.1).
agent/tests/test_llm_provider_defaults.py:153
Methodtest_zai_provider
(self)
agent/tests/test_llm.py:280
Methodtest_zero
(self)
agent/tests/test_global_futures_engine.py:177
Functiontest_zero_adjusted_ohlc_is_rejected_not_priced
()
agent/tests/test_tiingo_loader.py:144
Functiontest_zero_adv_is_rejected_rather_than_dividing_by_zero
An instrument that does not trade has no defined participation rate.
agent/tests/quantlib/test_impact.py:183
Functiontest_zero_amount_is_allowed_for_a_signed_kind
()
agent/tests/test_entities_spine.py:164
Functiontest_zero_and_negative_adv_are_treated_as_untradeable
()
agent/tests/test_factor_costs.py:80
Functiontest_zero_bar_target_day_returns_in_band_not_ready_never_a_raise
(market: str, symbol: str)
agent/tests/test_paper_trade_validation.py:172
Functiontest_zero_candidates_with_a_skipped_source_are_not_found
A source that cannot serve the query shape does not block the answer. The counterpart — a source that actually failed — is covered by ``test_
agent/tests/test_agent_grounding.py:2057
Functiontest_zero_close_produces_nan_not_inf
(module)
agent/tests/factors/test_fundamental_expansion_price_samples.py:174
Methodtest_zero_commission
(self)
agent/tests/test_forex_engine.py:138
Functiontest_zero_coupon_bond_exact_key_rate_concentration
()
agent/tests/quantlib/test_fixedincome.py:525
Functiontest_zero_coupon_bond_is_valid
()
agent/tests/test_entities_spine.py:710
Functiontest_zero_coupon_macaulay_duration_equals_maturity
()
agent/tests/quantlib/test_fixedincome.py:115
Methodtest_zero_crossing_equity_keeps_risk_ratios_finite
Equity that hits exactly 0 then recovers yields inf pct_change. Options metrics already skip non-finite returns; equity calc_metrics
agent/tests/test_metrics.py:523
Functiontest_zero_day_winner_has_null_disposition_ratio
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_trade_journal_strict_json.py:38
Functiontest_zero_day_winners_and_losers_do_not_imply_disposition_bias
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_trade_journal_strict_json.py:54
Functiontest_zero_decimal_comma_sets_document_locale
()
agent/tests/test_grounding_numeric_locale_rounding.py:133
Functiontest_zero_delay_returns_an_equal_signal
Zero delay is same-bar execution and changes nothing.
agent/tests/quantlib/test_impact.py:225
Functiontest_zero_denominator_is_nan_not_inf
safe_div contract: exact-zero denominator -> NaN, never +/-inf.
agent/tests/factors/test_fundamental_expansion_samples.py:217
Methodtest_zero_deviation_is_sent_as_zero
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:650
Functiontest_zero_drift_samples_get_positive_floors
()
agent/tests/test_binance_tolerance_calibration.py:92
Functiontest_zero_ebitda_denominator_is_also_excluded
()
agent/tests/quantlib/valuation/test_comps.py:353
Functiontest_zero_embargo_keeps_the_bar_right_after_the_test_block
()
agent/tests/quantlib/test_crossvalidation.py:120
Methodtest_zero_final_equity
A full wipeout (equity reaches 0) annualises to -100%, not a crash.
agent/tests/test_metrics.py:484
Functiontest_zero_final_equity_has_real_annual_return
()
agent/tests/test_options_portfolio_correctness.py:32
Functiontest_zero_gap_excludes_event_and_later_returns
(shocked_frame, model)
agent/tests/quantlib/test_eventstudy_post_event_window.py:53
Functiontest_zero_limit_denies_all_requests
A limiter with max_requests=0 must deny every request without creating a bucket.
agent/tests/test_rate_limiter_memory.py:98
Functiontest_zero_market_cap_peer_is_excluded_and_reported
A zero market cap is not a cheap company, it is missing data. Under the two-sided rule (2026-08-06) a non-positive NUMERATOR is excluded just
agent/tests/quantlib/valuation/test_comps.py:470
Methodtest_zero_on_close
(self)
agent/tests/test_forex_engine.py:142
Methodtest_zero_order_flow_is_a_zero_lambda_not_an_error
(self)
agent/tests/quantlib/test_microstructure.py:82
Functiontest_zero_order_pure_valuation_path_produces_a_cash_plus_position_nav
()
agent/tests/test_paper_trade_validation.py:131
Methodtest_zero_penalty_is_path_independent
With gamma=0 the prior weights must not affect the solution.
agent/tests/test_turnover_aware_optimizer.py:45
Functiontest_zero_price_rejected_even_when_allowed
DELU 2025-10-26 cleared at exactly 0 — undefined sizing, always rejected.
agent/tests/test_nonpositive_prices.py:172
Functiontest_zero_prices_do_not_leak_through_a_frame
The engine's per-symbol matrix feeds optimizers and correlation math.
agent/tests/test_nonpositive_returns.py:122
Functiontest_zero_qty_position_skipped
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:103
Functiontest_zero_qty_still_skipped_without_error
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:616
Methodtest_zero_quality_always_zero
quality_score=0 should produce importance=0 regardless of access.
agent/tests/test_memory_lifecycle.py:218
Functiontest_zero_rates_leave_a_costless_run
With both rates zeroed the same run must record no cost at all.
agent/tests/test_korea_backtest_smoke.py:111
Functiontest_zero_revenue_boundary
A pre-revenue company still produces a linked, balanced projection. With revenue pinned at zero, every revenue-scaled line (gross profit, ope
agent/tests/quantlib/valuation/test_threestatement.py:578
Functiontest_zero_shares_produces_nan_not_inf
(module)
agent/tests/factors/test_fundamental_expansion_price_samples.py:186
← previousnext →26,601–26,700 of 26,887, ranked by callers