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
Method
test_get_loader_cls_falls_back_when_requested_init_errors
(self)
agent/tests/test_registry.py:568
Method
test_get_market_data_asks_for_daily_bars
(self, recording_loader)
agent/tests/test_weekly_monthly_bars.py:147
Function
test_get_masks_secrets_and_reports_writable
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:213
Function
test_get_messages_skips_non_object_json_and_keeps_siblings
(tmp_path: Path)
agent/tests/test_session_store_messages_corrupt.py:20
Function
test_get_messages_skips_unexpected_keys_and_keeps_siblings
(tmp_path: Path)
agent/tests/test_session_store_messages_corrupt.py:43
Method
test_get_missing_returns_none
(self, tmp_path: Path)
agent/tests/test_scheduled_research_store.py:193
Method
test_get_one_includes_the_body_verbatim
(self, client: TestClient)
agent/tests/test_playbooks_surface.py:141
Function
test_get_open_orders_filters_and_optional_executions
(monkeypatch)
agent/tests/test_zerodha_sdk.py:249
Function
test_get_open_orders_reads_portfolio_orders
(monkeypatch)
agent/tests/test_etoro_connector.py:580
Function
test_get_open_orders_routes_through_tap
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:214
Function
test_get_open_orders_trade_history_path
(monkeypatch)
agent/tests/test_etoro_connector.py:603
Function
test_get_positions_maps_net_rows
(monkeypatch)
agent/tests/test_zerodha_sdk.py:235
Function
test_get_positions_routes_through_tap
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:192
Function
test_get_positions_tolerates_empty_string_numerics
Shoonya returns ``""`` for unset position fields — must not crash.
agent/tests/test_shoonya_empty_string_numeric.py:72
Function
test_get_quote_reads_rates
(monkeypatch)
agent/tests/test_etoro_connector.py:622
Function
test_get_quote_routes_through_tap_and_normalizes_keys
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:242
Function
test_get_quote_tolerates_empty_string_numerics
Shoonya returns ``""`` for unset quote fields — must not crash.
agent/tests/test_shoonya_empty_string_numeric.py:100
Function
test_get_quote_uses_flat_rates_on_readonly_profile
(monkeypatch)
agent/tests/test_etoro_connector.py:559
Function
test_get_rehab_handles_empty_payload
No adjustment events (the common case) returns an empty list, not null.
agent/tests/test_futu_extended_reads.py:118
Function
test_get_rehab_returns_status_ok_with_events
get_rehab unwraps the SDK tuple and copies ``ex_dividend_events`` through.
agent/tests/test_futu_extended_reads.py:103
Function
test_get_reports_not_writable_for_yaml_config
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:280
Function
test_get_reports_runtime_running_from_live_status
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:298
Function
test_get_research_reports_wrapper_matches_tool_contract
()
agent/tests/test_mcp_research_reports_date_window.py:25
Method
test_get_returns_job
(self, tmp_path: Path)
agent/tests/test_scheduled_research_store.py:184
Method
test_get_rows_filters_by_strategy_id_and_regime
(self, tmp_path)
agent/tests/test_strategy_discovery_store.py:142
Method
test_get_rows_sorted_by_strategy_then_regime
(self, tmp_path)
agent/tests/test_strategy_discovery_store.py:157
Function
test_get_run_code_rejects_dot_run_id
()
agent/tests/test_security_auth_api.py:777
Function
test_get_run_pine_rejects_traversal_run_id
()
agent/tests/test_security_auth_api.py:785
Function
test_get_run_pine_rejects_url_encoded_newline_run_id
()
agent/tests/test_security_auth_api.py:792
Function
test_get_run_result_rejects_traversal_run_id
()
agent/tests/test_security_auth_api.py:799
Function
test_get_run_result_surfaces_error
get_run_result / get_swarm_status (_run_to_dict) must expose the error.
agent/tests/test_swarm_error_surfacing.py:70
Function
test_get_sec_filings_wrapper_matches_tool_contract
()
agent/tests/test_mcp_sec_financial_offset_paging.py:30
Method
test_get_strategy_evidence_forwards_strategy_id
(self, fake_facade)
agent/tests/test_strategy_discovery_tools.py:213
Method
test_get_strategy_evidence_rejects_non_string_strategy_id
( self, fake_facade )
agent/tests/test_strategy_discovery_tools.py:253
Method
test_get_submissions_builds_padded_url
(self)
agent/tests/test_sec_edgar_client.py:125
Function
test_get_swarm_status_auto_recovers_zombie
End-to-end: query a zombie via MCP and the second call sees terminal status — not just ``running + is_stale=true``. This is the user-visible f
agent/tests/test_swarm_status_hydration.py:670
Function
test_get_swarm_status_redacts_control_character_model_metadata
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:246
Function
test_get_swarm_status_redacts_non_public_llm_model_metadata
( tmp_path, monkeypatch, model, )
agent/tests/test_swarm_status_hydration.py:159
Function
test_get_swarm_status_redacts_non_public_provider_metadata
(tmp_path, monkeypatch, provider)
agent/tests/test_swarm_status_hydration.py:205
Function
test_get_swarm_status_redacts_url_shaped_provider_metadata
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:179
Function
test_get_swarm_status_surfaces_live_progress
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:110
Function
test_get_swarm_status_surfaces_llm_request_metadata
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:131
Method
test_get_unknown_slug_returns_404
(self, client: TestClient)
agent/tests/test_playbooks_surface.py:147
Method
test_get_unsafe_slug_returns_400
(self, client: TestClient)
agent/tests/test_playbooks_surface.py:153
Function
test_get_websocket_token_shaped_non_secrets_stay_in_values
( tmp_path: Path, monkeypatch )
agent/tests/test_channels_config_api.py:1494
Function
test_gh_cli_token_cache_expires_after_sixty_seconds
( no_ambient_credentials, monkeypatch )
agent/tests/test_copilot_provider.py:112
Function
test_gildata_code_cache_honors_runtime_root
(custom_root: Path)
agent/tests/test_runtime_root_cache_report_dirs.py:32
Function
test_gildata_hk_override_is_raw
HKStockDailyQuotes serves raw traded prices (befadj/aftadj closes are separate fields the loader ignores) — measured on 00700.HK.
agent/tests/test_price_caliber.py:172
Function
test_gildata_loader_serves_the_caliber_the_table_claims
()
agent/tests/test_price_caliber.py:531
Function
test_gildata_upgrade_and_feature_isolation
An old token grants none of the four capabilities until individually enabled.
agent/tests/test_settings_api.py:944
Method
test_glm_alias_uses_zhipu_capabilities
(self)
agent/tests/test_llm.py:25
Method
test_glm_model_inference_uses_zhipu
(self, model: str)
agent/tests/test_llm.py:40
Method
test_glm_provider_env_names_use_zhipu_env
(self)
agent/tests/test_llm.py:45
Method
test_global_contract_returns_none_instead_of_a_share
The #1395 regression, asserted on the call path. Sina carries Chinese exchanges only. A global contract must leave the loader empty-h
agent/tests/test_akshare_loader.py:339
Method
test_global_futures_default_to_usd
(self)
agent/tests/test_composite_currency_guard.py:38
Function
test_global_halt_episode_visible_to_broker
(live_root: Path)
agent/tests/test_sweep_latch.py:104
Method
test_global_month_code_form
(self)
agent/tests/test_market_detection.py:361
Method
test_global_scope_needs_no_code
(self)
agent/tests/test_stock_news_tool.py:144
Function
test_global_trip_and_clear
(live_runtime: Path)
agent/tests/test_halt.py:30
Function
test_global_wins_over_broker
(live_runtime: Path)
agent/tests/test_halt.py:61
Method
test_global_with_exchange_suffix
(self)
agent/tests/test_market_detection.py:357
Function
test_goal_cancel_moves_goal_out_of_current_set
CLI users can end an active goal without replacing it.
agent/tests/test_cli_goal.py:126
Function
test_goal_command_appends_evidence_by_criterion_index
Manual CLI evidence can target criteria by 1-based index.
agent/tests/test_cli_goal.py:48
Function
test_goal_command_creates_goal
A bare /goal <objective> starts a research goal for the current session.
agent/tests/test_cli_goal.py:22
Function
test_goal_command_is_registered
The interactive slash router exposes /goal.
agent/tests/test_cli_goal.py:11
Function
test_goal_command_rejects_live_trading_objective
CLI /goal keeps the research-only boundary.
agent/tests/test_cli_goal.py:85
Function
test_goal_continuation_resets_correction_mode_but_not_a_forced_release
( tmp_path: Path, monkeypatch, forbidden )
agent/tests/test_grounding_release.py:883
Function
test_goal_evidence_can_remain_manual_without_tool_call_id
Manual evidence does not acquire an invented tool provenance id.
agent/tests/test_goal_tools.py:249
Function
test_goal_evidence_preserves_exact_tool_call_provenance
Tool-backed goal evidence keeps the exact source call id beside its own evidence id.
agent/tests/test_goal_tools.py:217
Function
test_goal_evidence_rejects_absolute_artifact_path_from_another_run
An absolute artifact_path from a different run must not be recorded under the current run_dir's claimed run_id. The relative-path branch alre
agent/tests/test_goal_tools.py:167
Function
test_goal_evidence_tool_binds_runtime_artifact
Runtime run_dir artifacts become verified goal evidence automatically.
agent/tests/test_goal_tools.py:123
Function
test_goal_evidence_tool_schema_distinguishes_call_and_evidence_ids
The always-visible tool schema tells the model which id belongs in grounding provenance.
agent/tests/test_goal_tools.py:275
Function
test_goal_json_loads_corrupted_returns_default
()
agent/tests/test_json_loads_guard.py:28
Function
test_goal_json_loads_empty_returns_default
()
agent/tests/test_json_loads_guard.py:22
Function
test_goal_json_loads_valid_json
()
agent/tests/test_json_loads_guard.py:17
Function
test_goal_snapshot_caps_evidence_but_reports_total_count
(tmp_path: Path)
agent/tests/test_goal_store.py:530
Function
test_goal_snapshot_includes_claims_criteria_and_evidence
(tmp_path: Path)
agent/tests/test_goal_store.py:478
Function
test_goal_start_persists_session_id_on_plain_context
A ctx without session_id still remembers the session after /goal start.
agent/tests/test_cli_goal.py:112
Function
test_goal_status_tool_can_cancel_current_goal
Agent tools can move a current goal to a terminal status.
agent/tests/test_goal_tools.py:286
Function
test_goal_status_without_session_does_not_create_session
Read-only /goal status should not create a new session.
agent/tests/test_cli_goal.py:99
Function
test_goal_token_budget_stops_current_turn_and_blocks_unfunded_retry
(tmp_path, monkeypatch)
agent/tests/test_llm_cost_accounting.py:168
Function
test_goal_tool_fails_without_a_session_id
Pin the reported symptom: no host session means every goal call errors.
agent/tests/test_cli_session_id.py:49
Function
test_goal_tool_rejects_live_trading_objective
Local agent tools keep the research-only boundary.
agent/tests/test_goal_tools.py:68
Function
test_goal_tool_without_session_returns_validation_error
Goal tools fail cleanly when no session id was injected or supplied.
agent/tests/test_goal_tools.py:58
Function
test_goal_tools_emit_mutation_events
Goal tools notify the host when they mutate session-scoped goal state.
agent/tests/test_goal_tools.py:91
Method
test_gold_pip_is_not_fx_pip
Regression: XAU/USD used to fall through to the 0.0001 FX default, understating the spread by three orders of magnitude.
agent/tests/test_forex_engine.py:325
Method
test_gold_position_under_1000_oz_survives_rounding
Regression: micro-lot rounding at 1,000 units zeroed every realistic gold position (a micro lot of gold is 1 oz, not 1,000).
agent/tests/test_forex_engine.py:349
Method
test_gold_query_keeps_the_real_gold_candidate
The filter must not be one-way: the right instrument survives. Every other case here asserts a rejection, and a filter that dropped e
agent/tests/test_symbol_search_tool.py:1162
Method
test_gold_spread_is_listed
(self)
agent/tests/test_forex_engine.py:336
Function
test_golden_carries_the_frozen_contract_echoes
(market: str)
agent/tests/test_paper_trade_determinism.py:245
Function
test_golden_manifest_covers_exactly_the_three_markets
()
agent/tests/test_paper_trade_determinism.py:233
Function
test_golden_matrix_meets_plan_coverage
()
agent/tests/scheduling/test_triggers_equivalence.py:122
Function
test_golden_sample_strategy_runs_and_wires_reason
()
agent/tests/test_paper_trade_strategy_path.py:175
Function
test_golden_vector_equivalence
(vector)
agent/tests/scheduling/test_triggers_equivalence.py:111
Method
test_governance_fields_round_trip
(self, backend, tmp_path)
agent/tests/test_strategy_store.py:1074
Function
test_gp_clawback_is_zero_when_no_deal_outpaced_the_pooled_entitlement
A single profitable deal: deal-by-deal and pooled totals coincide.
agent/tests/quantlib/test_fundmath.py:1212
Function
test_gp_clawback_refuses_empty_deals
()
agent/tests/quantlib/test_fundmath.py:1236
Function
test_gp_clawback_refuses_out_of_range_tax_rate
()
agent/tests/quantlib/test_fundmath.py:1224
Function
test_gp_clawback_tax_adjustment_scales_down_the_gross_amount
Same scenario, 30% GP tax rate: net clawback = 16 * (1 - 0.30) = 11.2.
agent/tests/quantlib/test_fundmath.py:1187
Method
test_graceful_degradation
If db is corrupted, returns empty not crash.
agent/tests/memory/test_search_index.py:287
← previous
next →
18,901–19,000 of 26,887, ranked by callers