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_futu_endpoint_keeps_legacy_gateway_settings_and_live_profile
(ibkr_endpoint_client)
agent/tests/test_connection_routes.py:288
Function
test_futu_extended_capabilities_are_exactly_seven
()
agent/tests/test_futu_extended_reads.py:342
Function
test_futu_filter_trdmarket_defaults_to_hk
With no saved market, every Futu profile still opens the HK default.
agent/tests/test_sdk_connectors.py:946
Function
test_futu_filter_trdmarket_override_beats_saved_file
An explicit override still wins over the saved market.
agent/tests/test_sdk_connectors.py:956
Function
test_futu_hk_prefix_infers_hkd_when_currency_is_missing
()
agent/tests/test_futu_portfolio_currency.py:95
Function
test_futu_hkd_position_and_account_total_are_converted_to_usd
(tmp_path, average_cost)
agent/tests/test_futu_portfolio_currency.py:52
Function
test_futu_positions_error_code_returns_error_envelope
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:48
Function
test_futu_positions_success_stays_ok
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:58
Function
test_futu_prefixed_codes_are_risk_xray_symbols
()
agent/tests/test_portfolio_futu_prefixed_codes.py:21
Function
test_futu_saved_filter_trdmarket_survives_every_profile
A market saved in futu.json must not be overwritten by a profile. ``build_config`` applies profile config after the saved file. Hard-coding `
agent/tests/test_sdk_connectors.py:923
Function
test_futu_service_unconfigured_gateway_down
(monkeypatch, tmp_path)
agent/tests/test_sdk_connectors.py:976
Function
test_futu_snapshot_error_code_returns_error_envelope
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:68
Method
test_futu_symbol_converted_correctly
(self, loader, mock_ctx)
agent/tests/test_futu_loader.py:249
Function
test_futu_tool_preserves_saved_endpoint_for_unsupplied_fields
(ibkr_endpoint_client, monkeypatch, overrides, expected_port)
agent/tests/test_connection_routes.py:323
Function
test_futu_trd_env_mapping
()
agent/tests/test_sdk_connectors.py:918
Function
test_futu_whitespace_does_not_split_the_same_holding
()
agent/tests/test_portfolio_futu_prefixed_codes.py:58
Function
test_future_bars_do_not_reprice_a_past_option_fill
(tmp_path, factor)
agent/tests/test_options_hv_bars_per_year.py:242
Function
test_future_cadence_changes_cannot_change_past_volatility
(frequency)
agent/tests/test_options_hv_bars_per_year.py:84
Function
test_future_event_does_not_leak_into_earlier_bars
()
agent/tests/test_rsshub_events_lookahead.py:53
Method
test_future_last_verified_clamps_to_zero
(self)
agent/tests/test_strategy_discovery_decay.py:123
Function
test_future_market_can_register_an_adapter_without_runner_changes
()
agent/tests/test_data_availability.py:95
Method
test_future_window_is_fresh_via_clamp
(self)
agent/tests/test_strategy_discovery_decay.py:145
Method
test_futures_chain_leads_with_a_source_that_implements_futures
#1395 — tushare led this chain while implementing no futures path. ``resolve_loader`` walks FALLBACK_CHAINS and never consults a loader's
agent/tests/test_registry.py:316
Function
test_futures_closing_a_long_is_blocked_at_the_lower_band
Closing a long is a sell, so the LOWER band blocks it.
agent/tests/test_price_limit_lookahead.py:96
Function
test_futures_closing_a_short_is_blocked_at_the_upper_band
Closing a short is a buy, so the UPPER band blocks it.
agent/tests/test_price_limit_lookahead.py:106
Function
test_futures_margin_positive_for_negative_price
()
agent/tests/test_nonpositive_prices.py:235
Function
test_futures_open_inside_band_allows_the_long_even_if_close_locks
(engine, symbol, band)
agent/tests/test_price_limit_lookahead.py:80
Function
test_futures_open_locked_at_upper_band_refuses_the_long
(engine, symbol, band)
agent/tests/test_price_limit_lookahead.py:62
Function
test_futures_opens_on_negative_price_bar_when_allowed
()
agent/tests/test_nonpositive_prices.py:241
Function
test_futures_prefer_pre_settle_over_pre_close
Exchanges set futures bands off the previous settlement.
agent/tests/test_price_limit_lookahead.py:147
Function
test_futures_raw_size_positive_for_negative_price
()
agent/tests/test_nonpositive_prices.py:229
Method
test_futures_reject_non_daily_intervals
( self, fake_akshare: SimpleNamespace )
agent/tests/test_akshare_loader.py:366
Function
test_futures_terminal_close_uses_multiplier_fees_and_exit_slippage
( engine_cls: type[BaseEngine], symbol: str, target_weight: float )
agent/tests/test_terminal_close_accounting.py:83
Function
test_futures_turnover_uses_multiplier_adjusted_margin
()
agent/tests/test_realized_turnover.py:173
Function
test_futures_whole_contract_truncation_surfaces_zero_size
()
agent/tests/test_plan_rejected.py:168
Function
test_fuzzy_search_filters_sentinel_ids
(monkeypatch)
agent/tests/test_etoro_connector.py:386
Function
test_fx_http_shape_date_and_eur_then_coherent_cache
(tmp_path, monkeypatch)
agent/tests/test_extraetf_integration.py:138
Function
test_fx_pair_resolution_authorizes_market_data_consumer
Issue: search_symbol('GBP/USD') must lock, and get_market_data('GBPUSD=X') must be authorized — the slashed query used to normalize to the crypto
agent/tests/test_agent_grounding.py:2720
Method
test_fx_query_keeps_its_pair_across_spellings
(self)
agent/tests/test_symbol_search_tool.py:1178
Method
test_fx_query_returns_canonical_candidate_when_yahoo_unavailable
A throttled/failed Yahoo must not turn a canonical pair into nothing.
agent/tests/test_symbol_search_tool.py:908
Function
test_fx_rate_rejects_non_positive_rate
()
agent/tests/test_entities_spine.py:855
Function
test_fx_rate_table_from_mapping_builds_a_table
()
agent/tests/test_entities_spine.py:862
Function
test_fx_rate_table_rejects_entry_quoted_against_the_wrong_currency
A reversed-direction quote (base/quote swapped) cannot enter a table declared for the other currency -- caught at construction, not silently u
agent/tests/test_entities_spine.py:783
Method
test_fx_rounding_unchanged
(self)
agent/tests/test_forex_engine.py:356
Method
test_fx_suffix
(self)
agent/tests/test_tickerall_loader.py:139
Method
test_fx_suffix_matches
(self)
agent/tests/test_akshare_loader.py:67
Method
test_g10_fx_pairs_classify_as_forex
(self)
agent/tests/test_correlation.py:80
Function
test_g1_ledger_has_zero_residual_markers
()
agent/tests/test_paper_trade_purity.py:299
Function
test_gap_does_not_deflate_realised_volatility
Zero-injection shrinks dispersion; that is the non-cancelling harm.
agent/tests/test_returns_gaps_and_infinities.py:60
Function
test_gap_does_not_erase_the_move_across_it
The bar resuming after a gap carries the real move, not 0.0.
agent/tests/test_returns_gaps_and_infinities.py:38
Function
test_gap_invalidates_exactly_the_windows_that_contain_it
( compute, missing_field, backend )
agent/tests/factors/test_gtja191_highday_lowday_recency.py:89
Method
test_gap_invalidates_only_overlapping_windows
(self, random_df)
agent/tests/test_factor_operators.py:309
Function
test_gap_stays_nan_not_fabricated
()
agent/tests/factors/test_alpha101_alpha074_nan_propagation.py:57
Function
test_gap_stays_nan_not_fabricated
()
agent/tests/factors/test_alpha101_alpha049_nan_propagation.py:47
Function
test_gap_stays_nan_through_the_full_affected_window
()
agent/tests/factors/test_gtja191_alpha069_nan_propagation.py:42
Function
test_gap_stays_nan_through_the_full_affected_window
(alpha_id: str, window: int)
agent/tests/factors/test_qlib158_cnt_nan_propagation.py:79
Function
test_gap_stays_nan_through_the_full_affected_window
()
agent/tests/factors/test_gtja191_alpha038_nan_propagation.py:37
Function
test_gap_stays_nan_through_the_full_affected_window
(alpha_id, window)
agent/tests/factors/test_gtja191_alpha003_059_nan_propagation.py:52
Function
test_gap_stays_nan_through_the_full_affected_window
()
agent/tests/factors/test_gtja191_alpha004_nan_propagation.py:47
Function
test_gapless_positive_series_unchanged
()
agent/tests/test_returns_gaps_and_infinities.py:140
Function
test_gapped_frame_isolates_symbols
()
agent/tests/test_returns_gaps_and_infinities.py:81
Function
test_gapped_series_match_explicit_pad_on_every_pandas
Pins the pre-#872 answer without depending on the pct_change default.
agent/tests/test_returns_gaps_and_infinities.py:50
Method
test_garbage_body_returns_none
(self)
agent/tests/test_southbound_tool.py:223
Method
test_garbage_rejected
(self)
agent/tests/test_fund_nav_tool.py:87
Function
test_garbage_retry_after_falls_back_to_backoff
A non-numeric Retry-After header falls back to the exponential delay.
agent/tests/test_stream_retry_escalation.py:250
Function
test_gate_accepts_an_order_naming_the_bound_account_without_duplicating_it
(live_runtime: Path)
agent/tests/test_robinhood_live_account_binding.py:132
Function
test_gate_advisory_disabled_by_default
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_advisory.py:277
Function
test_gate_advisory_enabled_with_mock_provider
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_advisory.py:304
Function
test_gate_advisory_provider_failure_is_observational
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_advisory.py:379
Function
test_gate_advisory_reject_is_observational
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_advisory.py:346
Function
test_gate_allows_in_bounds_and_places
(monkeypatch)
agent/tests/test_sdk_order_gate.py:180
Function
test_gate_blocks_disallowed_asset_class
(monkeypatch)
agent/tests/test_sdk_order_gate.py:754
Function
test_gate_blocks_oversized_order
(monkeypatch)
agent/tests/test_sdk_order_gate.py:742
Function
test_gate_connector_raise_is_caught
(monkeypatch)
agent/tests/test_sdk_order_gate.py:935
Function
test_gate_count_consumed_only_on_success
(monkeypatch)
agent/tests/test_sdk_order_gate.py:856
Function
test_gate_denies_expired_mandate
(monkeypatch)
agent/tests/test_sdk_order_gate.py:845
Function
test_gate_denies_on_halt
(monkeypatch)
agent/tests/test_sdk_order_gate.py:168
Function
test_gate_denies_without_mandate
(monkeypatch)
agent/tests/test_sdk_order_gate.py:156
Function
test_gate_fails_closed_on_a_first_page_of_positions
(live_runtime: Path)
agent/tests/test_robinhood_live_account_binding.py:182
Function
test_gate_fails_closed_when_a_held_position_cannot_be_priced
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_robinhood_live_account_binding.py:168
Method
test_gate_inputs_are_required
Omitting them is a TypeError, not a silent unguarded write.
agent/tests/test_strategy_store_adaptation.py:304
Method
test_gate_order_first_failure_wins
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:233
Function
test_gate_prices_held_positions_so_exposure_is_enforced
( live_runtime: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_robinhood_live_account_binding.py:143
Function
test_gate_quantity_order_priced_and_enforced
(monkeypatch)
agent/tests/test_sdk_order_gate.py:767
Function
test_gate_quantity_unpriceable_denies
(monkeypatch)
agent/tests/test_sdk_order_gate.py:949
Function
test_gate_reads_alpaca_short_as_negative_exposure
()
agent/tests/test_alpaca_position_sign.py:54
Function
test_gate_refuses_an_order_naming_another_account
(live_runtime: Path, key: str)
agent/tests/test_robinhood_live_account_binding.py:121
Function
test_gate_refuses_every_order_when_the_mandate_names_no_account
(live_runtime: Path)
agent/tests/test_robinhood_live_account_binding.py:109
Function
test_gate_stamps_the_mandate_account_on_reads_and_the_order
(live_runtime: Path)
agent/tests/test_robinhood_live_account_binding.py:81
Method
test_gate_updates_dedup_ledger
(self)
agent/tests/test_loop_helpers.py:218
Method
test_gated_run_reports_hard_gate_token
(self, runs_root: Path)
agent/tests/test_strategy_discovery_refresh.py:173
Method
test_gated_run_yields_zero_rows_with_gate_token
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:264
Function
test_gateway_picker_does_not_invent_flash_availability
( monkeypatch, provider_name, endpoint, m3, flash )
agent/tests/test_minimax_flash.py:338
Function
test_gateway_picker_preserves_other_models_and_custom_endpoints
( monkeypatch, provider_name, endpoint, prefix, flash, custom_endpoint )
agent/tests/test_minimax_flash.py:287
Method
test_gateway_provider_not_inferred_from_model
Gateway providers (OpenRouter) must never be overridden. (#549) Their model names contain direct-provider prefixes like ``deepseek/``
agent/tests/test_llm.py:101
Function
test_gateway_real_sdk_preserves_route_id
( requests, monkeypatch, provider_name, endpoint, model_name )
agent/tests/test_minimax_flash.py:370
Function
test_gateway_services_adapt_session_service_for_hydration
()
agent/tests/test_channels_runtime.py:306
Method
test_gaussian_copula_properties
(self)
agent/tests/quantlib/test_copula.py:56
Function
test_gbk_fallback
GBK-encoded Chinese text (common from A-share brokers).
agent/tests/test_doc_reader.py:56
Function
test_gbm_differs_under_a_different_seed
()
agent/tests/quantlib/test_risk.py:339
← previous
next →
18,701–18,800 of 26,887, ranked by callers