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_derived_multi_refs_fail_closed_on_unknown_or_empty_source
(tmp_path, ref)
agent/tests/test_grounding_multi_derived_refs.py:49
Function
test_derived_passes_on_its_own_arithmetic_and_fails_without_it
( tmp_path: Path, )
agent/tests/test_grounding_figures_contract.py:446
Function
test_derived_percent_over_exact_percent_refs_reads_as_points
( tmp_path: Path, )
agent/tests/test_grounding_unit_and_scanner_gaps.py:213
Function
test_derived_percent_over_exact_percent_refs_rejects_the_100x_reading
( tmp_path: Path, )
agent/tests/test_grounding_unit_and_scanner_gaps.py:223
Function
test_derived_percent_rejects_a_wrong_difference
(tmp_path: Path)
agent/tests/test_grounding_unit_and_scanner_gaps.py:233
Function
test_derived_return_exemption_is_structural_not_phrasal
The same derivation must get the same verdict in both languages. Keying the exemption on a growth PHRASE ("从…到" / "from…to") made the gate st
agent/tests/test_agent_grounding.py:3407
Function
test_describe_and_call_require_both_module_and_function
(tool)
agent/tests/test_quantlib_tool.py:122
Function
test_describe_returns_a_signature_and_docstring
(tool)
agent/tests/test_quantlib_tool.py:115
Function
test_description_is_the_tool_class_description
MCP clients get the tool's own self-contained description, verbatim.
agent/tests/test_mcp_new_tools.py:148
Method
test_description_keeps_a_concrete_example
(self)
agent/tests/test_northbound_tool.py:261
Method
test_description_keeps_a_concrete_example
(self)
agent/tests/test_fund_flow_tool.py:207
Method
test_description_leads_with_market_wide_stock_connect
(self)
agent/tests/test_northbound_tool.py:253
Method
test_description_leads_with_per_stock_order_level
(self)
agent/tests/test_fund_flow_tool.py:199
Method
test_description_scopes_to_market_wide_southbound
(self)
agent/tests/test_southbound_tool.py:235
Method
test_description_self_contained
(self)
agent/tests/test_lockup_expiry_tool.py:57
Method
test_description_separates_closed_from_resolved
(self)
agent/tests/test_prediction_market_tool.py:200
Method
test_descriptions_are_one_line_and_non_empty
(self)
agent/tests/test_institutional_commands.py:96
Function
test_descriptive_colon_does_not_extend_evaluator
( expression: str, separator: str )
agent/tests/test_grounding_formula_note.py:56
Function
test_descriptive_colon_keeps_derived_grounding_checks
( tmp_path: Path, separator: str, value: str, expression: str, ref: str, with_evidence
agent/tests/test_grounding_formula_note.py:86
Function
test_descriptive_colon_preserves_formula
(note: str, separator: str)
agent/tests/test_grounding_formula_note.py:30
Function
test_desktop_secure_mode_never_persists_injected_llm_key
( client: TestClient, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_settings_api.py:257
Function
test_desktop_secure_mode_never_persists_injected_tushare_token
( client: TestClient, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_settings_api.py:556
Function
test_detail_gates_non_public_provider_and_endpoint_shaped_model
Given a stored run whose provider/model predate the write-time public gate, When GET detail, Then both are redacted rather than leaked raw.
agent/tests/test_swarm_routes_usage.py:139
Function
test_detail_is_bounded_to_200_chars
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:693
Function
test_detail_reflects_updated_stored_run_not_stale_snapshot
Given usage written to the store after creation, When GET detail, Then the response reflects the persisted update (stale-state guard).
agent/tests/test_swarm_routes_usage.py:112
Function
test_detail_returns_int_zero_totals_for_never_run
Given a run that never executed, When GET detail, Then every usage key is present with honest defaults — int 0 totals, None token_source.
agent/tests/test_swarm_routes_usage.py:86
Function
test_detail_returns_stored_token_totals_and_provider_model
Given a persisted run with measured usage, When GET detail, Then the response carries the stored values under the MCP-parity keys (an allowlisted
agent/tests/test_swarm_routes_usage.py:59
Function
test_detect_boundary_leakage_flags_a_missing_embargo
()
agent/tests/quantlib/test_crossvalidation.py:131
Function
test_detect_format_needs_a_futu_value_column_to_claim_futu
()
agent/tests/test_trade_journal.py:199
Function
test_detect_format_signatures
()
agent/tests/test_trade_journal.py:182
Function
test_detect_install_kind_checkout
(monkeypatch)
agent/tests/test_cli_update.py:102
Function
test_detect_install_kind_corrupt_direct_url_is_wheel
Unparseable direct_url.json defaults to the pip path, never crashes.
agent/tests/test_cli_update.py:145
Function
test_detect_install_kind_editable_modern_marker
direct_url.json with dir_info.editable => editable (modern pip style).
agent/tests/test_cli_update.py:110
Function
test_detect_install_kind_legacy_editable_egg_info
Metadata without direct_url.json but an egg-info in the source tree. Covers the case that bit us live: running ``python -m cli`` from ``agent/``
agent/tests/test_cli_update.py:132
Function
test_detect_install_kind_non_dict_direct_url_is_wheel
Valid JSON that is not a dict must not crash (AttributeError guard).
agent/tests/test_cli_update.py:155
Function
test_detect_install_kind_wheel
direct_url.json WITHOUT editable (a wheel's index URL) => wheel.
agent/tests/test_cli_update.py:117
Function
test_detect_install_kind_wheel_without_any_marker
No direct_url.json and no egg-info on sys.path => wheel.
agent/tests/test_cli_update.py:124
Function
test_detect_source
(code: str, expected: str)
agent/tests/test_market_data.py:70
Method
test_detect_source_forex
(self, code: str, expected: str)
agent/tests/test_mt5_loader.py:299
Method
test_deterministic
Same inputs always produce the same hash.
agent/tests/memory/test_memory_dedup.py:20
Function
test_developer_approving_their_own_model_is_flagged
(tools)
agent/tests/test_sdm_governance_wiring.py:108
Function
test_development_extra_includes_bounded_style_tools
Contributor style commands should be installed by the dev extra.
agent/tests/test_packaging_dependencies.py:139
Function
test_dhan_invalid_profile_rejected
()
agent/tests/test_sdk_connectors.py:1263
Function
test_dhan_invalid_quantity_returns_an_error
(quantity)
agent/tests/test_sdk_connectors.py:1186
Function
test_dhan_keeps_supported_daily_and_intraday
(monkeypatch)
agent/tests/test_dhan_period_reject.py:33
Function
test_dhan_place_order_rejects_fractional_quantity
A fractional quantity must not silently truncate to a zero-share fill. Before the fix, ``int(0.5)`` truncated to 0 after the ``> 0`` check had
agent/tests/test_sdk_connectors.py:1171
Function
test_dhan_redacts_access_token
()
agent/tests/test_sdk_connectors.py:1245
Function
test_dhan_rejects_hour_period_instead_of_daily
(monkeypatch)
agent/tests/test_dhan_period_reject.py:22
Function
test_dhan_service_unconfigured
(monkeypatch, tmp_path)
agent/tests/test_sdk_connectors.py:1273
Function
test_dhan_whole_quantity_is_preserved_in_the_paper_fill
(quantity, expected)
agent/tests/test_sdk_connectors.py:1197
Function
test_diagnostics_never_contain_secret_values
(monkeypatch, tmp_path)
agent/tests/test_longbridge_credentials.py:145
Method
test_diagnostics_report_the_model_scoped_flag
provider doctor must reflect the per-model decision, not the label. Both configurations name the moonshot provider; only the kimi-k3.1 one
agent/tests/test_llm_reasoning_effort.py:398
Method
test_diagonal_is_one
(self)
agent/tests/test_correlation.py:273
Function
test_dict_history_replay_preserves_thought_signature
()
agent/tests/test_agent_loop_thought_signature.py:33
Method
test_dict_payload_success
dict-like payload with 'close' key still works.
agent/tests/test_technical_indicator_tool.py:586
Function
test_dict_valued_defaults_are_excluded_for_real_adapters
Same rule against a real adapter shape (signal's dm/group policy maps). whatsapp ``lid_mappings``, napcat ``group_policy_overrides`` and mochat
agent/tests/test_channel_config_meta.py:788
Function
test_dict_valued_defaults_are_excluded_from_derived_hints
Dict-valued fields stay out of derived hints (hermetic stub pin). The generic form edits text/password/bool/list widgets only; a dict field d
agent/tests/test_channel_config_meta.py:755
Method
test_diff_across_model_names_raises
(self)
agent/tests/quantlib/valuation/test_artifact.py:511
Method
test_diff_as_dict_is_handled
(self)
agent/tests/test_sector_tool.py:138
Method
test_diff_as_dict_is_normalized
(self)
agent/tests/test_market_screener_tool.py:102
Method
test_diff_of_identical_artifacts_has_no_changes
(self)
agent/tests/quantlib/valuation/test_artifact.py:566
Method
test_diff_precisely_reports_a_single_changed_input_and_its_delta
(self)
agent/tests/quantlib/valuation/test_artifact.py:517
Method
test_diff_reports_only_the_outputs_actually_affected_by_total_debt
(self)
agent/tests/quantlib/valuation/test_artifact.py:540
Method
test_different_args_produces_different_key
Different args should produce different cache keys.
agent/tests/test_mcp_specs_cache.py:120
Function
test_different_arguments_are_not_duplicates
The red test for the bug: two statements, two executions. On the unfixed loop the second call is answered with a synthetic skip and the tool
agent/tests/test_agent_loop_dedup_arguments.py:106
Function
test_different_arguments_re_execute
A different expression is a different question, not a cache hit.
agent/tests/test_agent_loop_deterministic_cache.py:127
Method
test_different_command_produces_different_key
Different command should produce different cache keys.
agent/tests/test_mcp_specs_cache.py:112
Function
test_different_complete_sources_fail_closed
(monkeypatch, tmp_path)
agent/tests/test_longbridge_credentials.py:92
Method
test_different_content_different_hash
Different inputs produce different hashes.
agent/tests/memory/test_memory_dedup.py:44
Method
test_different_content_not_duplicate
Different content is never flagged as duplicate.
agent/tests/memory/test_memory_dedup.py:71
Function
test_different_days_and_prices_produce_different_fingerprints
()
agent/tests/test_paper_trade_1d_fingerprint.py:69
Method
test_different_entries_both_written
Entries with different content are both persisted.
agent/tests/memory/test_memory_dedup.py:144
Method
test_different_env_produces_different_key
Different env should produce different cache keys.
agent/tests/test_mcp_specs_cache.py:128
Method
test_different_headers_produces_different_key
Two HTTP configs differing only in a header value must not share a cache entry.
agent/tests/test_mcp_specs_cache.py:146
Method
test_different_oauth_config_produces_different_key
Two configs differing only in OAuth client secret must not share a cache entry.
agent/tests/test_mcp_specs_cache.py:189
Function
test_different_repeatable_arguments_still_execute_externally_after_protection
()
agent/tests/test_readonly_replay_after_microcompact.py:383
Method
test_different_server_name_produces_different_key
Different server_name should produce different cache keys.
agent/tests/test_mcp_specs_cache.py:105
Method
test_different_transport_type_produces_different_key
Same url on a different transport type must not share a cache entry.
agent/tests/test_mcp_specs_cache.py:216
Method
test_different_url_produces_different_key
Two HTTP configs differing only in url must not share a cache entry.
agent/tests/test_mcp_specs_cache.py:136
Function
test_differing_text_and_data_are_both_kept
()
agent/tests/test_mcp_result_dedup.py:206
Method
test_digest_quality_retention
Digest-compressed corpus P@5 should be >= 20% of raw P@5.
agent/tests/memory/benchmarks/test_tier2_benchmark.py:260
Method
test_digest_retention
Digest compression should retain >= 5% Jaccard token overlap. Digest reduces content to ~15 keyword bullets. Raw Jaccard is very low
agent/tests/memory/benchmarks/test_tier2_benchmark.py:237
Function
test_digit_leading_base_is_classified_as_crypto
(code: str)
agent/tests/test_crypto_digit_leading_symbols.py:31
Function
test_digit_leading_base_normalizes_to_dash_pair
(code: str, expected: str)
agent/tests/test_crypto_digit_leading_symbols.py:59
Function
test_digit_leading_base_selects_crypto_source
(code: str, source: str)
agent/tests/test_crypto_digit_leading_symbols.py:45
Function
test_digit_only_base_is_never_crypto
(code: str)
agent/tests/test_crypto_digit_leading_symbols.py:80
Function
test_digit_only_base_is_not_crypto
(code: str)
agent/tests/test_crypto_usdc_busd_separated_pairs.py:48
Function
test_digit_only_equity_codes_are_not_captured
(code: str, market: str)
agent/tests/test_crypto_digit_leading_symbols.py:74
Function
test_diluted_concept_wins_over_basic_from_the_same_filing
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_fundamentals_shares_diluted_alias.py:77
Function
test_diluted_shares_only_appear_on_their_own_filing_date
(monkeypatch)
agent/tests/test_fundamentals_shares_diluted_alias.py:96
Function
test_dingtalk_field_hints_exact_snapshot
DingTalk hints match the frozen contract, with ``enabled`` excluded.
agent/tests/test_channel_config_meta.py:59
Method
test_dir_without_skill_md_skipped
(self, tmp_path: Path, empty_user_dir: Path)
agent/tests/test_skills.py:208
Function
test_direct_alpha_agrees_with_ks_pme_and_pme_plus_on_direction
All three metrics must agree on which of two funds outperformed.
agent/tests/quantlib/test_fundmath.py:959
Function
test_direct_alpha_double_sided_guard
()
agent/tests/quantlib/test_fundmath.py:948
Function
test_direct_alpha_needs_the_index_to_cover_every_mark_not_only_the_terminal_one
Unlike ks_pme/pme_plus, direct_alpha deflates every flow before the valuation policy runs, so even a mark that "terminal" will later drop stil
agent/tests/quantlib/test_fundmath.py:973
Function
test_direct_alpha_of_a_fund_that_beat_the_index
Deflated series: -1000/100=-10 @ t0, 2000/150=13.3333 @ t0+1y. IRR of (-10, +40/3 one year later) solves 1+r = (40/3)/10 = 4/3 -> r = 1/3.
agent/tests/quantlib/test_fundmath.py:929
Function
test_direct_alpha_of_a_fund_that_lagged_the_index
Deflated series: -10 @ t0, 900/150=6 @ t0+1y -> 1+r=0.6 -> r=-0.4.
agent/tests/quantlib/test_fundmath.py:940
Function
test_direct_alpha_on_an_all_valuation_series_raises
No contributions, no distributions -- only two NAV marks. The default "terminal" valuation policy collapses this to one flow, which xirr() al
agent/tests/quantlib/test_fundmath.py:991
Function
test_direct_alpha_refuses_a_bare_list
()
agent/tests/quantlib/test_fundmath.py:1002
Method
test_direct_clients_do_not_install_environment_proxy_mounts
(self)
agent/tests/test_llm.py:804
← previous
next →
17,101–17,200 of 26,887, ranked by callers