Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Function
test_build_anthropic_uses_messages_api_proxy
()
agent/tests/test_llm.py:345
Function
test_build_client_keeps_default_init_timeout_floor
()
agent/tests/test_mcp_oauth_schema.py:476
Function
test_build_client_rejects_url_only_config_without_explicit_type
()
agent/tests/test_mcp_client_adapter.py:818
Function
test_build_client_uses_explicit_init_timeout_without_widening_tool_timeout
()
agent/tests/test_mcp_oauth_schema.py:459
Function
test_build_client_uses_sse_transport
(monkeypatch)
agent/tests/test_mcp_client_adapter.py:759
Function
test_build_client_uses_stdio_transport
(monkeypatch)
agent/tests/test_mcp_client_adapter.py:732
Function
test_build_client_uses_streamable_http_transport
(monkeypatch)
agent/tests/test_mcp_client_adapter.py:789
Function
test_build_client_yields_oauth_streamable_transport
()
agent/tests/test_mcp_oauth_schema.py:239
Method
test_build_config_precedence
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:377
Function
test_build_indicator_series_skips_zero_period
()
agent/tests/test_indicator_period_nonpositive.py:26
Function
test_build_job_from_playbook_unit_guard
()
agent/tests/scheduling/test_system_job_protection.py:596
Function
test_build_live_runner_no_broker_configured_raises_unavailable
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:806
Function
test_build_live_runner_read_error_envelope_raises
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:1135
Function
test_build_live_runner_reads_normalize_adapter_payloads
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:1088
Function
test_build_live_runner_wires_a_real_runner
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:817
Method
test_build_llm_leaves_default_transport_when_disabled
(self)
agent/tests/test_llm.py:780
Function
test_build_llm_normalises_reasoning_effort
(monkeypatch, raw)
agent/tests/test_claude_cli_models.py:158
Function
test_build_llm_passes_reasoning_effort_through_bind_tools
(monkeypatch)
agent/tests/test_claude_cli_models.py:167
Method
test_build_llm_passes_sync_and_async_direct_clients
(self)
agent/tests/test_llm.py:747
Method
test_build_llm_pins_the_transport_it_serializes_for
The pin above must mirror build_llm, not just make the test pass.
agent/tests/test_llm_reasoning_effort.py:637
Method
test_build_llm_receives_normalized_ollama_base_url
The runtime constructor must not reintroduce Ollama's raw root (#1069).
agent/tests/test_llm.py:1049
Function
test_build_llm_returns_cli_wrapper
(monkeypatch)
agent/tests/test_claude_cli_provider.py:65
Function
test_build_llm_returns_codex_adapter
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_openai_codex.py:72
Function
test_build_mcp_tool_wrappers_disambiguates_colliding_local_names
()
agent/tests/test_mcp_client_adapter.py:575
Function
test_build_mcp_tool_wrappers_filters_enabled_tools
()
agent/tests/test_mcp_client_adapter.py:187
Function
test_build_mcp_tool_wrappers_honors_local_server_name_override
()
agent/tests/test_mcp_client_adapter.py:209
Function
test_build_mcp_tool_wrappers_retries_transient_discovery_failure
()
agent/tests/test_mcp_client_adapter.py:595
Function
test_build_mcp_tool_wrappers_single_attempt_does_not_retry_discovery
max_list_tools_attempts=1 (authorize bootstrap) must not retry. Regression for #259: a retry opens a fresh client context that starts a secon
agent/tests/test_mcp_client_adapter.py:613
Function
test_build_mcp_tool_wrappers_wildcard_enabled_tools_passes_all
enabledTools: ["*"] must pass every tool through without filtering.
agent/tests/test_mcp_client_adapter.py:671
Function
test_build_passes_openrouter_credentials_explicitly
The relay client should retain the selected key for header restoration.
agent/tests/test_provider_header_isolation.py:227
Function
test_build_rates_anchors_on_usd
()
agent/tests/test_portfolio_fx.py:17
Function
test_build_rates_rejects_non_positive_or_non_finite_rates
(bad: Decimal)
agent/tests/test_portfolio_fx.py:29
Function
test_build_registry_default_call_is_unchanged
Calling build_registry() with no kwargs must produce identical results.
agent/tests/test_registry_mcp_integration.py:212
Function
test_build_registry_surfaces_aggregate_failure_warning
(monkeypatch, caplog)
agent/tests/test_tool_registry_diagnostics.py:24
Function
test_build_registry_without_agent_config_does_not_raise
build_registry() with default arguments must not raise any exception.
agent/tests/test_mcp_regression.py:58
Function
test_build_registry_without_agent_config_loads_local_tools_only
build_registry() called with defaults must never raise and must return only local tools (no mcp_* names). This is the "zero-change" contract
agent/tests/test_mcp_regression.py:38
Function
test_build_registry_without_agent_config_returns_well_known_local_tools
Well-known local tool names must survive a no-config build_registry call.
agent/tests/test_mcp_regression.py:70
Function
test_build_rejects_a_frame_with_no_usable_characteristic
()
agent/tests/quantlib/test_factormodel.py:175
Function
test_build_rejects_an_empty_frame
()
agent/tests/quantlib/test_factormodel.py:181
Function
test_build_rejects_non_ascii_openrouter_api_key_before_transport
A malformed Bearer credential should name its setting without leaking it.
agent/tests/test_provider_header_isolation.py:206
Function
test_build_sentiment_factor_sorts_forward_dates
Forward horizons should follow date order rather than input row order.
agent/tests/test_social_media_intelligence_skill.py:59
Function
test_build_sentiment_factor_uses_computed_normalization
The example should not require a sentiment_norm input column.
agent/tests/test_social_media_intelligence_skill.py:47
Function
test_build_style_exposures_uses_the_documented_signs
()
agent/tests/quantlib/test_factormodel.py:117
Function
test_build_swarm_registry_discovers_only_servers_named_by_whitelist
Remote discovery is limited to MCP servers implied by the whitelist.
agent/tests/test_swarm_m2_registry_assembly.py:196
Function
test_build_swarm_registry_drops_whitelisted_tool_when_server_excludes_it
An ``enabled_tools`` allowlist still wins over a permissive whitelist. Operators express trust at boot time (``enabled_tools`` on the server
agent/tests/test_swarm_m2_registry_assembly.py:96
Function
test_build_swarm_registry_filters_remote_tools_outside_agent_whitelist
A remote tool surfaced by the server but absent from the whitelist stays out. The server may surface ``mcp_kb_search`` and ``mcp_kb_fetch`` via
agent/tests/test_swarm_m2_registry_assembly.py:166
Function
test_build_swarm_registry_includes_local_and_remote_tools_when_both_whitelisted
An agent whitelist containing one local and one remote tool yields both. The swarm whitelist should be the *only* gate on tool exposure. When the
agent/tests/test_swarm_m2_registry_assembly.py:67
Function
test_build_swarm_registry_preserves_collision_hash_prefix_after_pruning
Pruning keeps full-config MCP collision disambiguation stable.
agent/tests/test_swarm_m2_registry_assembly.py:221
Function
test_build_swarm_registry_skips_mcp_discovery_for_local_only_whitelist
A local-only agent whitelist must not discover any configured MCP server.
agent/tests/test_swarm_m2_registry_assembly.py:250
Function
test_build_swarm_registry_with_empty_mcp_servers_is_local_only
An ``AgentConfig`` with no servers configured is equivalent to None. Operators who keep a swarm-agent.json file but haven't enrolled any MCP
agent/tests/test_swarm_m2_registry_assembly.py:269
Function
test_build_swarm_registry_without_agent_config_drops_mcp_tools
``agent_config=None`` keeps swarm strictly local-tool-only. Today's behavior must continue to hold when no operator config is wired in. A pre
agent/tests/test_swarm_m2_registry_assembly.py:139
Method
test_build_target_aliases_normalizes_and_dedupes
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:287
Function
test_build_token_store_creates_dir_0700
(tmp_path: Path)
agent/tests/test_oauth_token_cache.py:37
Function
test_build_token_store_expands_user
(monkeypatch, tmp_path: Path)
agent/tests/test_oauth_token_cache.py:46
Function
test_build_token_store_idempotent_on_existing_dir
(tmp_path: Path)
agent/tests/test_oauth_token_cache.py:58
Method
test_builtin_engines_discoverable
Built-in engines should be discoverable via _all_engines().
agent/tests/test_ocr_integration.py:97
Method
test_builtin_engines_registered
rapid and llm-vision should be in the built-in registry.
agent/tests/test_ocr_engine.py:136
Function
test_builtin_sdk_connection_rejects_partial_vault_set
(tmp_path, monkeypatch)
agent/tests/test_local_connections.py:188
Function
test_builtin_sdk_connections_use_isolated_keyring_credentials
( tmp_path, monkeypatch, )
agent/tests/test_local_connections.py:149
Function
test_bull_call_spread_shape
A bull call spread has analytic capped loss, profit, and one root.
agent/tests/test_options_payoff.py:71
Function
test_busy_generator_is_closed_when_pending_pull_returns
()
agent/tests/test_chat_stream_interruption.py:210
Method
test_buy_allowed_inside_band
(self)
agent/tests/test_vietnam_equity_engine.py:237
Function
test_buy_and_hold_equals_the_compounded_product_when_prices_are_positive
The price relative is what the old product telescoped to all along.
agent/tests/test_nonpositive_returns.py:69
Function
test_buy_and_hold_is_none_for_a_series_too_short_to_move
()
agent/tests/test_nonpositive_returns.py:144
Function
test_buy_and_hold_is_none_without_a_positive_entry_price
No honest percentage exists, so report nothing rather than a number.
agent/tests/test_nonpositive_returns.py:139
Function
test_buy_and_hold_rejects_an_infinite_entry_price
No honest percentage exists, so report nothing rather than -100%.
agent/tests/test_returns_gaps_and_infinities.py:117
Function
test_buy_and_hold_survives_a_negative_bar_mid_series
Entry and exit are positive, so the held position has a real return.
agent/tests/test_nonpositive_returns.py:148
Method
test_buy_at_the_ceiling_is_blocked
(self)
agent/tests/test_composite_vietnam_rules.py:111
Method
test_buy_blocked_at_ceiling
(self)
agent/tests/test_vietnam_equity_engine.py:231
Method
test_buy_carries_brokerage_only
(self)
agent/tests/test_korea_equity_engine.py:229
Method
test_buy_costs_more_than_sell_due_to_stamp_duty
(self)
agent/tests/test_india_equity_engine.py:139
Function
test_buy_hold_counts_entry_and_terminal_exit
()
agent/tests/test_realized_turnover.py:104
Method
test_buy_increases_price
(self)
agent/tests/test_global_futures_engine.py:275
Method
test_buy_increases_price
(self)
agent/tests/test_forex_engine.py:153
Method
test_buy_inside_the_band_is_allowed
(self)
agent/tests/test_composite_vietnam_rules.py:117
Method
test_buy_is_never_held
(self)
agent/tests/test_vietnam_equity_engine.py:124
Function
test_buy_limit_above_close_fills_at_the_close
()
agent/tests/test_paper_trade_limits.py:87
Function
test_buy_limit_above_quote_is_priced_at_the_limit
()
agent/tests/test_limit_price_notional.py:43
Function
test_buy_limit_below_close_is_rejected_limit_not_marketable
()
agent/tests/test_paper_trade_limits.py:99
Function
test_buy_limit_below_quote_keeps_the_quote
()
agent/tests/test_limit_price_notional.py:51
Function
test_buy_limit_equal_to_close_fills_boundary_inclusive
()
agent/tests/test_paper_trade_limits.py:93
Function
test_buy_limit_fills_at_the_first_marketable_bar
(limit: float, expected: float | None)
agent/tests/test_paper_trade_5m_engine.py:234
Method
test_buy_no_stamp_tax
Buy side: no stamp tax.
agent/tests/test_china_a_engine.py:214
Method
test_buy_pays_brokerage_only
(self)
agent/tests/test_vietnam_equity_engine.py:249
Method
test_buy_slippage_increases_price
(self)
agent/tests/test_china_a_engine.py:247
Method
test_buy_slippage_increases_price
(self)
agent/tests/test_china_futures_engine.py:363
Method
test_buy_slippage_rounds_up_to_a_valid_tick
(self)
agent/tests/test_korea_equity_engine.py:270
Method
test_buy_slips_up_onto_the_grid
(self)
agent/tests/test_vietnam_equity_engine.py:263
Method
test_buying_more_is_never_held
(self)
agent/tests/test_vietnam_equity_engine.py:188
Function
test_buying_power_excludes_only_sales_settling_after_the_purchase
()
agent/tests/test_argentina_equity_engine.py:201
Function
test_byma_fetch_succeeds_with_mapping_metadata
(monkeypatch)
agent/tests/test_yfinance_declared_currency.py:59
Function
test_byte_budget_never_breaks_json_at_floor
( run_dir: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_run_artifact_tool.py:463
Function
test_byte_budget_restrides_downsample
( run_dir: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_run_artifact_tool.py:447
Function
test_byte_budget_shrinks_rows_page_honestly
( run_dir: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_run_artifact_tool.py:426
Function
test_c1_relay_builds_mandate_proposal_frame
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:748
Function
test_c1_relay_ignores_non_propose_events
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:770
Function
test_c1_relay_returns_none_when_proposal_missing
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:786
Function
test_ca_venue_sibling_swaps_suffix_only
Unit check for the sibling helper, incl. hyphenated class bases.
agent/tests/test_market_data.py:610
Function
test_caar_is_the_running_sum_of_aar
()
agent/tests/quantlib/test_eventstudy.py:204
Function
test_cache_contains_no_credentials
The verify cache entry must never store credential material. Patches the underlying ``src.trading.service.check_connection`` so the real cach
agent/tests/test_longbridge_runtime.py:985
← previous
next →
15,601–15,700 of 26,887, ranked by callers