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_loopback_allowed_in_dev_mode_without_key
()
agent/tests/test_auth_precedence.py:82
Function
test_loopback_does_not_warn
( capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch )
agent/tests/test_serve_bind.py:91
Function
test_loopback_host_and_origin_accepted
()
agent/tests/test_mcp_host_origin_guard.py:147
Function
test_loopback_rejects_rebound_host_before_auth_bypass
A loopback peer is not enough when Host is attacker-controlled.
agent/tests/test_security_auth_api.py:426
Function
test_loopback_requires_auth_when_api_key_configured
GHSA-7wgj: a configured key gates EVERY peer, loopback included.
agent/tests/test_security_auth_api.py:170
Function
test_loopback_shutdown_accepts_valid_bearer
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:714
Function
test_loopback_shutdown_rejects_cross_site_browser_request
CORS is not enough; unsafe cross-site browser POSTs must be rejected.
agent/tests/test_security_auth_api.py:696
Function
test_loopback_shutdown_requires_bearer_when_api_key_configured
Loopback alone must not authorize the browser-reachable shutdown action.
agent/tests/test_security_auth_api.py:681
Function
test_loopback_upload_requires_bearer_when_key_configured
( client: TestClient, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_upload_api.py:54
Function
test_loopback_with_invalid_bearer_rejected_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:69
Function
test_loopback_with_valid_bearer_allowed_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:56
Function
test_loopback_without_credential_rejected_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:43
Function
test_loops_do_not_share_schema_state_when_given_the_same_wrapper
()
agent/tests/test_deferred_tool_loading.py:141
Function
test_loosened_tolerance_leaks_exactly_the_documented_residual
A weight-sum gap dW leaves a residual of -R_b * dW, as the docstring states. This is the cost of relaxing the precondition, and it is a real numb
agent/tests/quantlib/test_attribution.py:180
Method
test_losing_long
(self)
agent/tests/test_base_engine.py:898
Function
test_lost_submission_response_reuses_job_and_refuses_changed_parameters
(monkeypatch)
agent/tests/test_analysis_reliability.py:166
Function
test_lot_size_rejections_for_illegal_quantities
()
agent/tests/test_paper_trade_rejections.py:176
Function
test_lot_size_rejects_and_cancels
()
agent/tests/test_paper_trade_5m_engine.py:312
Function
test_lot_truncated_sleeve_is_named_in_the_metrics
#1235's motivating case: the sleeve that never fills must be nameable.
agent/tests/test_plan_rejected.py:286
Function
test_lot_truncation_in_hold_mode_is_still_one_zero_size
A target below one lot at full scale is the lot rule, not the cash.
agent/tests/test_plan_rejected.py:391
Method
test_lot_units
(self, symbol: str, expected: float)
agent/tests/test_forex_engine.py:333
Function
test_lots_and_ticks_are_real_certificates_before_a_ratio_change
()
agent/tests/test_argentina_equity_engine.py:151
Method
test_lots_default_to_one_share_or_round_lots
(self)
agent/tests/test_brazil_market_routing.py:71
Function
test_low_coverage_column_is_nan_without_poisoning_peers
A column below the 90% in-window coverage floor is NaN; peers are not.
agent/tests/factors/test_corr_rewire.py:68
Function
test_low_coverage_leaves_the_tag_off_and_discloses
1 of 3 columns labelled < 0.9: attaching would z-score one bucket.
agent/tests/test_alpha_bench_csi300_sector.py:165
Method
test_low_quality_old_access
Low quality + old access = low importance.
agent/tests/test_memory_lifecycle.py:191
Method
test_lower_circuit_allows_covering_a_short
(self)
agent/tests/test_india_equity_engine.py:104
Method
test_lower_circuit_blocks_sell
(self)
agent/tests/test_india_equity_engine.py:74
Method
test_lowercase
(self)
agent/tests/test_skill_writer_tools.py:26
Function
test_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_eastmoney_daily_week_aliases.py:8
Function
test_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_akshare_daily_aliases.py:8
Function
test_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_longbridge_loader_daily_week_aliases.py:13
Function
test_lowercase_1d_maps_to_daily
(monkeypatch)
agent/tests/test_india_broker_loader.py:114
Function
test_lowercase_1d_still_fetches
``1d`` used to hit the exact ``!= "1D"`` gate and return empty.
agent/tests/test_fmp_daily_aliases.py:21
Function
test_lowercase_1d_uses_daily_path_not_minutes
``1d`` used to miss ``!= "1D"`` and return empty from minute freq_map.
agent/tests/test_tushare_daily_alias_1d.py:26
Function
test_lowercase_1h_maps_like_project_token
Connector-style ``1h`` must map the same as project ``1H``.
agent/tests/test_india_broker_loader.py:104
Method
test_lowercase_1h_maps_to_h1_not_daily
(self, fake_mod: _FakeMT5Module)
agent/tests/test_mt5_loader.py:159
Function
test_lowercase_1h_matches_project_token
()
agent/tests/test_local_loader_interval_case.py:24
Function
test_lowercase_1w_maps_like_1W
``1w`` used to become ``1w``; yfinance expects ``1wk``.
agent/tests/test_yfinance_lowercase_4h_1w.py:14
Function
test_lowercase_4h_also_resamples_hourly_bars_to_four_hour
Regression for the case-sensitivity bug: lowercase ``4h`` must resample identically to ``4H`` instead of passing raw hourly bars through.
agent/tests/test_yfinance_lowercase_4h_resample.py:39
Function
test_lowercase_4h_maps_like_4H
``4h`` used to fall through to ``.lower()`` and become invalid ``4h``.
agent/tests/test_yfinance_lowercase_4h_1w.py:8
Function
test_lowercase_4h_resamples_like_4H
``4h`` used to miss the map and return native hourly bars unchanged.
agent/tests/test_local_loader_interval_case.py:28
Method
test_lowercase_cffex_multiplier
The opposite direction: CFFEX/ZCE keys are uppercase-only.
agent/tests/test_china_futures_engine.py:331
Method
test_lowercase_cffex_price_limit_still_specific
IF's own 10% limit must still apply lowercase, not the 5% generic default a missed lookup would silently substitute.
agent/tests/test_china_futures_engine.py:347
Method
test_lowercase_classifies_as_uk_equity
(self)
agent/tests/test_uk_equity_support.py:48
Method
test_lowercase_day_matches_uppercase
(self)
agent/tests/test_metrics.py:199
Function
test_lowercase_four_hour_fetches_four_hour_bars
()
agent/tests/test_okx_loader_interval_case.py:30
Function
test_lowercase_hour_aliases_match_project_tokens
()
agent/tests/test_futu_loader_interval_case.py:8
Function
test_lowercase_hour_day_aliases_match_project_tokens
()
agent/tests/test_mt5_interval_lowercase.py:8
Method
test_lowercase_hour_matches_uppercase
(self)
agent/tests/test_metrics.py:193
Method
test_lowercase_matches
(self)
agent/tests/test_akshare_loader.py:64
Method
test_lowercase_normalized
(self)
agent/tests/test_yfinance_crypto.py:24
Function
test_lowercase_one_hour_fetches_hour_bars_not_daily
()
agent/tests/test_okx_loader_interval_case.py:26
Method
test_lowercase_suffix
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:52
Method
test_lowercase_suffix_routes_to_yahoo
(self)
agent/tests/test_uk_equity_support.py:36
Method
test_lowercase_symbol_is_upcased
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:103
Method
test_lowercase_uppered
(self)
agent/tests/test_gildata_loader.py:109
Method
test_lowercase_zce_multiplier
(self)
agent/tests/test_china_futures_engine.py:336
Method
test_lse_classifies_as_uk_equity
(self)
agent/tests/test_uk_equity_support.py:41
Method
test_lse_contract_rejects_non_gbp_or_missing_currency
( self, currency: str | None )
agent/tests/test_uk_equity_support.py:155
Method
test_lse_engine_gets_uk_submarket
(self)
agent/tests/test_uk_equity_support.py:93
Method
test_lse_engine_is_global_equity
(self)
agent/tests/test_uk_equity_support.py:89
Method
test_lse_line_with_missing_currency_is_omitted
(self)
agent/tests/test_yahoo_loader.py:346
Method
test_lse_routes_to_yahoo
(self)
agent/tests/test_uk_equity_support.py:29
Method
test_lse_settles_in_gbp
(self)
agent/tests/test_uk_equity_support.py:62
Method
test_lse_symbol_detection_does_not_claim_currency
(self)
agent/tests/test_uk_equity_support.py:146
Function
test_ltm_formula_is_last_full_fy_plus_current_ytd_minus_prior_ytd
()
agent/tests/quantlib/valuation/test_comps.py:228
Function
test_ltm_policy_is_invariant_to_fiscal_year_end_month
LTM needs no month-weighting: it always trails 12 months from the 'as of' date the YTD figures were cut at, whatever the fiscal calendar.
agent/tests/quantlib/valuation/test_comps.py:235
Function
test_ltm_policy_missing_ytd_fields_raises
()
agent/tests/quantlib/valuation/test_comps.py:300
Function
test_macaulay_duration_is_below_maturity_for_a_coupon_bond
()
agent/tests/quantlib/test_fixedincome.py:120
Method
test_macd_insufficient_bars
(self)
agent/tests/test_technical_indicator_tool.py:180
Function
test_macd_keeps_precision_for_sub_penny_price
()
agent/tests/test_technical_indicator_small_price_rounding.py:47
Method
test_macd_normal
(self)
agent/tests/test_technical_indicator_tool.py:171
Method
test_macro_happy_path
(self, monkeypatch)
agent/tests/test_gildata_research_tools.py:57
Function
test_macro_horizon_follows_the_prompt
()
agent/tests/test_swarm_tool_variables.py:92
Function
test_macro_observations_ground_with_explicit_refs_without_widening_price_gate
(tmp_path)
agent/tests/test_gildata_boundaries.py:81
Function
test_magnitude_boundary_keeps_the_existing_table_and_prose_conventions
(wrapped)
agent/tests/test_report_audit_accounting_parens.py:166
Function
test_magnitude_conversion_still_requires_operand_evidence
(tmp_path, values, valid)
agent/tests/test_grounding_operand_evidence.py:181
Function
test_main_annualises_like_the_saved_run
(tmp_path: Path, capsys, run_config, annualisation)
agent/tests/test_validation_cli_settings.py:135
Method
test_main_contract_is_recognised_as_chinese
It must reach ChinaFuturesEngine, not GlobalFutures.
agent/tests/test_market_detection.py:486
Method
test_main_contract_resolves_to_futures
(self, code: str)
agent/tests/test_market_detection.py:465
Method
test_main_contract_routes_to_futures_main_sina
( self, fake_akshare: SimpleNamespace )
agent/tests/test_akshare_loader.py:322
Function
test_main_fresh_and_cached_results_use_same_complete_file
(tmp_path)
agent/tests/test_result_artifacts.py:118
Function
test_main_honors_saved_settings
(tmp_path: Path, capsys)
agent/tests/test_validation_cli_settings.py:34
Function
test_main_loads_dotenv_after_the_shell_tool_decision
(tmp_path, monkeypatch)
agent/tests/test_mcp_server_dotenv.py:10
Function
test_main_model_context_and_deterministic_replay_are_scrubbed
(tmp_path)
agent/tests/test_model_tool_result_redaction.py:33
Function
test_main_reuses_explicit_source_snapshot
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:180
Function
test_main_writes_strict_json_for_non_finite_results
(tmp_path: Path, monkeypatch, capsys)
agent/tests/test_validation_cli.py:48
Function
test_maintenance_margin_rejects_invalid_mark_price
(mark_price: float, match: str)
agent/tests/test_perpetual_risk.py:260
Function
test_maintenance_margin_rejects_symbol_mismatch_and_notional_above_final_cap
()
agent/tests/test_perpetual_risk.py:266
Function
test_maintenance_margin_uses_boundaries_without_reapplying_coefficient
( coefficient: float | None, )
agent/tests/test_perpetual_risk.py:245
Function
test_make_mcp_tool_name_is_stable
()
agent/tests/test_mcp_client_adapter.py:91
Function
test_malformed_accounting_is_not_rescued_as_a_positive
(cell, table)
agent/tests/test_report_audit_accounting_parens.py:127
Method
test_malformed_arg_cap_falls_back_instead_of_killing_the_repl
A junk override must not raise at import time. ``cli.main._dispatch_slash`` guards ``import_module`` with ``except ImportError`` only
agent/tests/test_institutional_commands.py:537
Method
test_malformed_bar_is_skipped
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:185
Function
test_malformed_budget_env_falls_back_to_default
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_rsshub_events_provider.py:269
Function
test_malformed_comments_and_conflicting_properties_fail_closed
()
agent/tests/test_email_authentication_results.py:232
Function
test_malformed_control_response_is_reported_not_crashed
(monkeypatch)
agent/tests/test_claude_cli_models.py:139
Function
test_malformed_date_returns_error_without_http
()
agent/tests/test_research_reports_tool.py:205
Method
test_malformed_entries_contribute_nothing
(self)
agent/tests/test_strategy_discovery_decay.py:72
← previous
next →
20,401–20,500 of 26,887, ranked by callers