MCPcopy Create free account

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

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

Functiontest_fetch_chain_provider_hook_wins_over_override
The fallback_chain_provider test hook defines the chain; the override must not leak its order in.
agent/tests/test_market_data.py:725
Methodtest_fetch_cn_index
(self, monkeypatch)
agent/tests/test_gildata_loader.py:386
Functiontest_fetch_combines_all_windows_and_caches_complete_frame
( monkeypatch: pytest.MonkeyPatch, config_cls: object )
agent/tests/test_longbridge_loader.py:211
Functiontest_fetch_daily_uses_get_k_data
(fake_client: _FakeStdQuotes)
agent/tests/test_mootdx_loader.py:106
Functiontest_fetch_data_map_delegates_auto_routing
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:151
Functiontest_fetch_data_map_does_not_call_an_index_additive
A tencent run over an index and a stock warns about the stock only.
agent/tests/test_price_caliber.py:437
Functiontest_fetch_data_map_does_not_expose_config_mutables_to_loader
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:122
Functiontest_fetch_data_map_reports_both_warnings_when_they_apply
tencent (additive) serving 600519.SH beside sina (raw) serving TSLA.US is both a mixed basket and an additive series; one warning must not shadow
agent/tests/test_price_caliber.py:461
Functiontest_fetch_data_map_silent_on_single_caliber
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
agent/tests/test_price_caliber.py:377
Functiontest_fetch_data_map_uses_registry_for_nonlegacy_source
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:80
Functiontest_fetch_data_map_warns_on_additive_caliber
A single-source tencent run mixes nothing, so the mixed-caliber warning is right to stay silent — but the series it served is additive, and the
agent/tests/test_price_caliber.py:410
Functiontest_fetch_data_map_warns_on_mixed_caliber_basket
yahoo serves AAPL (split_dividend), sina serves TSLA down the chain (raw): the run must say the basket mixes calibers.
agent/tests/test_price_caliber.py:353
Functiontest_fetch_declared_currency_failure_is_fail_closed
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_yfinance_uk_scale.py:155
Functiontest_fetch_empty_payload_omits_symbol
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:341
Functiontest_fetch_explicit_source_normalizes_rows
()
agent/tests/test_market_data.py:331
Functiontest_fetch_explicit_source_stays_src_first_with_override
An explicit source= never gets reordered by the market's override.
agent/tests/test_market_data.py:677
Functiontest_fetch_fails_closed_when_currency_absent
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:121
Functiontest_fetch_failure_is_surfaced_as_error_envelope
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_orderbook_depth_tool.py:379
Methodtest_fetch_hk_symbol
(self, monkeypatch)
agent/tests/test_gildata_loader.py:335
Methodtest_fetch_india_symbol
(self)
agent/tests/test_yahoo_loader.py:273
Functiontest_fetch_intraday_empty_window_returns_no_entry
( fake_client: _FakeStdQuotes, )
agent/tests/test_mootdx_loader.py:135
Functiontest_fetch_intraday_uses_bars_and_clips_window
( fake_client: _FakeStdQuotes, )
agent/tests/test_mootdx_loader.py:120
Functiontest_fetch_invalid_date_range_raises
()
agent/tests/test_sina_loader.py:207
Functiontest_fetch_json_is_strict_and_parseable
()
agent/tests/test_market_data.py:759
Functiontest_fetch_json_rejects_nan_via_allow_nan_false
()
agent/tests/test_market_data.py:771
Functiontest_fetch_leaves_gbp_quoted_lse_unscaled
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:82
Methodtest_fetch_leaves_missing_quote_currency_absent
(self)
agent/tests/test_yahoo_loader.py:264
Functiontest_fetch_leaves_us_prices_untouched
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:68
Functiontest_fetch_loader_error_falls_through_to_unresolved
()
agent/tests/test_market_data.py:469
Functiontest_fetch_local_prefix_unaffected_by_override
local: codes keep the local entry point — no-network sources are exempt from reordering.
agent/tests/test_market_data.py:703
Functiontest_fetch_local_result_alias_is_not_unresolved
()
agent/tests/test_market_data.py:504
Functiontest_fetch_market_data_auto_routes_yahoo_suffix_symbols
auto mode groups GC=F/EURUSD=X under yahoo, not the tushare/China chain (#718).
agent/tests/test_market_data.py:156
Functiontest_fetch_missing_symbol_listed_as_unresolved
()
agent/tests/test_market_data.py:480
Functiontest_fetch_non_2xx_status_skips_symbol
()
agent/tests/test_sina_loader.py:193
Functiontest_fetch_non_canadian_symbol_unaffected_by_venue_fallback
A non-Canadian symbol that fails must stay _unresolved — the sibling fallback only ever fires for .TO/.V symbols.
agent/tests/test_market_data.py:597
Functiontest_fetch_one_bad_symbol_does_not_abort_batch
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_tiingo_loader.py:324
Methodtest_fetch_one_symbol
(self, monkeypatch)
agent/tests/test_gildata_loader.py:188
Methodtest_fetch_one_symbol
(self, monkeypatch)
agent/tests/test_fmp_loader.py:271
Functiontest_fetch_one_symbol_failure_does_not_abort_batch
()
agent/tests/test_sina_loader.py:178
Functiontest_fetch_parses_and_clips_window
(monkeypatch)
agent/tests/test_india_broker_loader.py:57
Functiontest_fetch_passes_inclusive_end_date_to_yfinance_as_exclusive_end
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_crypto.py:87
Methodtest_fetch_preserves_provider_quote_currency
(self)
agent/tests/test_yahoo_loader.py:255
Functiontest_fetch_price_history_empty_frame
Loader returns an empty frame for the symbol → None.
agent/tests/test_shadow_account.py:1644
Functiontest_fetch_price_history_loader_raises
A loader that raises mid-fetch degrades to None, never propagates.
agent/tests/test_shadow_account.py:1663
Functiontest_fetch_price_history_symbol_absent_from_map
Loader available but returns no entry for the requested symbol → None.
agent/tests/test_shadow_account.py:1626
Functiontest_fetch_redacts_sdk_initialization_exception_and_drops_cause
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_longbridge_loader.py:325
Functiontest_fetch_rejects_bad_date_range
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:348
Functiontest_fetch_rejects_missing_credentials_before_sdk_initialization
( monkeypatch: pytest.MonkeyPatch, tmp_path )
agent/tests/test_longbridge_loader.py:86
Functiontest_fetch_rejects_non_daily_interval
()
agent/tests/test_sina_loader.py:202
Functiontest_fetch_rejects_partial_history_when_a_window_fails
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_longbridge_loader.py:274
Functiontest_fetch_rejects_unknown_interval
(fake_client: _FakeStdQuotes)
agent/tests/test_mootdx_loader.py:205
Functiontest_fetch_rejects_usd_quoted_lse_line
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:104
Functiontest_fetch_returns_empty_for_empty_input
()
agent/tests/test_swarm_grounding.py:189
Functiontest_fetch_returns_frame_for_us_symbol
()
agent/tests/test_sina_loader.py:150
Functiontest_fetch_returns_normalized_bars
Real call path: ``_detect_market(code)`` → ``resolve_loader(market)`` returns a ready loader instance. The stub mirrors that contract so a reg
agent/tests/test_swarm_grounding.py:151
Functiontest_fetch_returns_normalized_frame
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:285
Methodtest_fetch_returns_ohlcv_frame
(self)
agent/tests/test_vietnam_equity.py:67
Functiontest_fetch_scales_lse_pence_to_gbp
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:29
Functiontest_fetch_scales_only_on_gbp_pence
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:138
Functiontest_fetch_scales_other_lse_names
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_uk_scale.py:53
Functiontest_fetch_skips_bj_symbols_with_warning
Mootdx upstream has no BJ data; loader must skip + warn, not crash.
agent/tests/test_mootdx_loader.py:180
Functiontest_fetch_skips_non_a_share_symbols
(fake_client: _FakeStdQuotes)
agent/tests/test_mootdx_loader.py:173
Functiontest_fetch_skips_non_us_symbols
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:316
Functiontest_fetch_skips_non_us_symbols_without_http
()
agent/tests/test_sina_loader.py:171
Functiontest_fetch_skips_symbols_with_no_data
(monkeypatch)
agent/tests/test_swarm_grounding.py:178
Functiontest_fetch_stops_when_fallbacks_leave_symbols_missing
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:360
Methodtest_fetch_unknown_interval_fails_before_opening_context
(self, loader)
agent/tests/test_futu_loader.py:270
Methodtest_fetch_us_symbol
(self)
agent/tests/test_yahoo_loader.py:235
Methodtest_fetch_uses_from_to_range_not_hours
(self, monkeypatch)
agent/tests/test_tickerall_loader.py:255
Functiontest_fetch_without_key_returns_empty
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:308
Methodtest_fetches_uncapped_then_sorts_and_tails_locally
Long windows use the latest consecutive bars, not even-stride samples.
agent/tests/test_technical_indicator_tool.py:522
Methodtest_few_trades_is_insufficient_even_with_long_coverage
(self)
agent/tests/test_strategy_discovery_models.py:218
Functiontest_fewer_than_min_robust_comps_peers_triggers_warning
()
agent/tests/quantlib/valuation/test_comps.py:387
Methodtest_fewer_than_two_fetched_assets_raises
(self, monkeypatch)
agent/tests/test_regime.py:234
Methodtest_ffill_1d_basic
(self)
agent/tests/test_signal_alignment_perf.py:560
Methodtest_ffill_1d_leading_nan
Leading NaN with no valid predecessor stays NaN.
agent/tests/test_signal_alignment_perf.py:582
Methodtest_ffill_1d_limit_exceeded
(self)
agent/tests/test_signal_alignment_perf.py:566
Methodtest_ffill_2d_column_wise
(self)
agent/tests/test_signal_alignment_perf.py:572
Functiontest_ffill_anchors_on_filed_date_not_period_end
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_fundamentals_pit.py:147
Methodtest_ffill_limit_respected
Consecutive NaN > ffill_limit should NOT be forward-filled.
agent/tests/test_signal_alignment_perf.py:354
Functiontest_fiat_cross_is_not_crypto
(symbol: str)
agent/tests/test_trade_journal_fiat_pairs_not_crypto.py:16
Methodtest_fiat_pair_spellings_normalize_to_yahoo_form
(self)
agent/tests/test_agent_grounding.py:2681
Methodtest_fiat_pairs_are_not_misclassified_as_crypto
GBP/USD must stop being treated as a crypto 'GBP-USD' pair.
agent/tests/test_symbol_search_tool.py:803
Functiontest_field_ref_candidates_and_values_never_borrow_other_symbol
(tmp_path)
agent/tests/test_grounding_september28_safety.py:54
Functiontest_field_stats_and_ordering
()
agent/tests/test_binance_tolerance_calibration.py:105
Methodtest_fields_and_model_source
(self)
agent/tests/test_run_outcome_module.py:178
Functiontest_fifo_fee_allocation
()
agent/tests/test_trade_journal.py:404
Functiontest_fifo_partial_exits_conserve_entry_fee
(exit_quantities: list[int])
agent/tests/test_trade_journal.py:436
Functiontest_fifo_partial_fill_splits_into_two_roundtrips
()
agent/tests/test_trade_journal.py:417
Functiontest_fifo_single_roundtrip_pnl
()
agent/tests/test_trade_journal.py:387
Functiontest_fifo_unmatched_sell_ignored
()
agent/tests/test_trade_journal.py:467
Methodtest_fifteen_minute_bars_over_five_days_use_the_fractional_span
(self)
agent/tests/test_effective_bars_per_year_span.py:39
Functiontest_figures_block_malformed_fires_identically_through_the_gate
(tmp_path: Path)
agent/tests/test_grounding_registry.py:161
Functiontest_figures_ref_keeps_pipe_inside_call_id
()
agent/tests/test_grounding_figures_ref_parser.py:6
Functiontest_file_writing_exporters_are_refused_with_a_reason
(tool)
agent/tests/test_quantlib_tool.py:58
Functiontest_filed_at_t_plus_30_does_not_appear_before_filed_date
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_fundamentals_pit.py:71
Functiontest_filesystem_warnings_are_omitted_in_full
(path)
agent/tests/test_loader_health.py:456
Methodtest_filings_in_different_value_units_merge_correctly
A 2020 original in thousands, amended in 2026 in whole dollars. DZ BANK's real chain is exactly this: 41,697,805 (thousands) restated as
agent/tests/test_institutional_holdings_tool.py:939
Functiontest_fill_delta_artifact_is_jsonl_and_exposes_weighted_holding
(tmp_path)
agent/tests/test_base_engine.py:207
Methodtest_fill_is_capped_at_the_volume_cap
(self)
agent/tests/test_paper_order_lifecycle.py:166
← previousnext →18,301–18,400 of 26,887, ranked by callers