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_cli_confirmation_displays_format_and_legacy_relay_preserves_it
(monkeypatch)
agent/tests/test_scheduled_research_confirmation.py:297
Function
test_cli_confirmation_shows_protection_choice
(enabled, label)
agent/tests/test_pdf_protection_surfaces.py:113
Function
test_cli_connector_check_passes_account_to_backend
()
agent/tests/test_ibkr_local.py:221
Function
test_cli_connector_routes_to_handler
()
agent/tests/test_ibkr_local.py:206
Function
test_cli_create_normal_id_still_persists_playbook_job
(home: Path)
agent/tests/scheduling/test_system_job_protection.py:586
Function
test_cli_create_rejects_system_id_and_store_untouched
(home: Path)
agent/tests/scheduling/test_system_job_protection.py:559
Function
test_cli_create_rejects_unsafe_id_and_store_untouched
(home: Path)
agent/tests/scheduling/test_system_job_protection.py:575
Function
test_cli_creates_protected_pdf_job
(tmp_path, monkeypatch, capsys, email_target)
agent/tests/test_pdf_protection_surfaces.py:57
Function
test_cli_custom_commands_are_registered
()
agent/tests/test_custom_provider_routes.py:282
Function
test_cli_exit_codes_distinguish_failures_from_invalid_input
( harness_case: HarnessCase, artifact_dir: Path, tmp_path: Path, )
agent/tests/harness_eval/test_runner.py:280
Function
test_cli_horizon_default_reaches_legacy_runner_as_one
( capsys, monkeypatch: pytest.MonkeyPatch, _reg, _no_report )
agent/tests/test_alpha_bench_horizon.py:321
Function
test_cli_horizon_reaches_legacy_runner
( capsys, monkeypatch: pytest.MonkeyPatch, _reg, _no_report )
agent/tests/test_alpha_bench_horizon.py:302
Function
test_cli_horizon_reaches_strict_runner
( capsys, monkeypatch: pytest.MonkeyPatch, _reg, _no_report )
agent/tests/test_alpha_bench_horizon.py:340
Function
test_cli_main_runs_migration
( monkeypatch: pytest.MonkeyPatch, record_migration: list[int] )
agent/tests/test_state_migration_wiring.py:19
Function
test_cli_onboarding_surfaces_agree
()
agent/tests/test_opencode_provider.py:100
Function
test_cli_persists_email_format
(cli_store, configured_destinations, fmt)
agent/tests/test_playbooks_surface.py:785
Function
test_cli_protection_refuses_missing_password
(monkeypatch, email_target)
agent/tests/test_pdf_protection_surfaces.py:83
Function
test_cli_reads_use_named_vault_connection_and_render_raw_books
(monkeypatch, capsys)
agent/tests/test_mstock_connector.py:130
Method
test_cli_reexports_legacy_helpers
(self)
agent/tests/test_cli_interactive.py:623
Function
test_cli_rejects_horizon_above_cap_with_usage_exit_code
(capsys, _reg)
agent/tests/test_alpha_bench_horizon.py:462
Function
test_cli_rejects_horizon_below_one_with_usage_exit_code
( capsys, monkeypatch: pytest.MonkeyPatch, _reg )
agent/tests/test_alpha_bench_horizon.py:360
Function
test_cli_rejects_nonemail_format_without_persisting
(cli_store, configured_destinations, ref)
agent/tests/test_playbooks_surface.py:795
Function
test_cli_reports_missing_artifact
(tmp_path, capsys)
agent/tests/test_cli_research_artifact.py:96
Function
test_cli_save_search_show_and_revision_round_trip
(tmp_path, capsys)
agent/tests/test_cli_research_artifact.py:23
Function
test_cli_storage_option_and_errors
(tmp_path, placement, capsys)
agent/tests/test_pixel_office.py:89
Method
test_client_factory_bypasses_cache
When client_factory is provided, cache is not used.
agent/tests/test_mcp_specs_cache.py:331
Method
test_client_factory_does_not_write_cache
When client_factory is provided, results are not stored in cache.
agent/tests/test_mcp_specs_cache.py:349
Function
test_client_level_default_suppresses_everyone_and_roles
()
agent/tests/test_discord_allowed_mentions.py:29
Function
test_client_order_id_is_deterministic_for_idempotency
Same order content -> same client_order_id (so an approval-race retry is deduplicated by the broker); a changed field -> a different id (so a genu
agent/tests/test_alpaca_tap_routing.py:101
Method
test_clip_and_redistribute_pro_rata
(self)
agent/tests/test_constraints.py:26
Method
test_clips_to_inclusive_window
(self)
agent/tests/test_yahoo_loader.py:211
Function
test_clob_id_exception_only_accepts_decimal_uint256
(value: str)
agent/tests/test_redaction_shared.py:592
Method
test_clob_token_id_skips_resolution
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:894
Method
test_clob_winner_flag_is_the_strongest_evidence
The venue's own settlement flag, taken over price and oracle status.
agent/tests/test_prediction_market_tool.py:769
Method
test_clob_winner_flag_outranks_the_closed_flag
A winner can be flagged while `closed` is still false; trust the flag.
agent/tests/test_prediction_market_tool.py:793
Method
test_close_allowed
(self)
agent/tests/test_global_futures_engine.py:113
Method
test_close_allowed
(self)
agent/tests/test_crypto_engine.py:193
Method
test_close_allowed
(self)
agent/tests/test_forex_engine.py:104
Method
test_close_allowed_when_no_position
(self)
agent/tests/test_china_a_engine.py:71
Method
test_close_and_reopen
Data persists across close/reopen.
agent/tests/memory/test_search_index.py:267
Method
test_close_ffill_bfill
Missing close prices should be forward/backward filled.
agent/tests/test_base_engine.py:833
Function
test_close_is_judged_on_the_price_actually_booked
A close is booked with the opposite of the position direction. Testing the raw open would approve a fill whose booked sell price, after slipp
agent/tests/test_price_limit_lookahead.py:162
Function
test_close_keeps_langchain_cached_transport_open_for_a_sibling_adapter
Two default-transport adapters share LangChain's cached httpx clients. Closing the wrapper around one of them must leave the other usable: the
agent/tests/test_chat_llm_lifecycle.py:109
Function
test_close_leaves_borrowed_langchain_clients_open
A short-lived wrapper must not close LangChain's shared clients.
agent/tests/test_chat_llm_lifecycle.py:32
Method
test_close_matrix_values
Close matrix values match source data after alignment and ffill.
agent/tests/test_signal_alignment_perf.py:320
Method
test_close_nonexistent_position_noop
(self)
agent/tests/test_base_engine.py:911
Function
test_close_only_bar_keeps_legacy_behavior
Without high/low, close-only bars mark at the close as before.
agent/tests/test_market_hooks_liquidation.py:70
Function
test_close_position_refuses_missing_instrument_id
()
agent/tests/test_etoro_connector.py:710
Function
test_close_position_uses_market_close_path
(monkeypatch)
agent/tests/test_etoro_connector.py:667
Function
test_close_qty_exceeding_open_clamps_to_lot
(tmp_path: Path)
agent/tests/test_options_partial_close.py:112
Function
test_close_releases_only_explicitly_owned_clients
Proxy-free clients created by Vibe remain instance-owned.
agent/tests/test_chat_llm_lifecycle.py:49
Method
test_close_same_day_allowed
T+0: can close positions opened today.
agent/tests/test_china_futures_engine.py:100
Function
test_close_schedules_owned_async_client_inside_running_loop
The synchronous compatibility API must consume async close methods.
agent/tests/test_chat_llm_lifecycle.py:64
Method
test_close_to_quit
(self)
agent/tests/test_cli_interactive.py:472
Method
test_close_uses_maker
(self)
agent/tests/test_crypto_engine.py:229
Method
test_close_volume_capped_at_position
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:806
Function
test_close_waits_for_native_search_cursor
(tmp_path: Path)
agent/tests/test_session_search_concurrent_consumers.py:118
Method
test_closed_and_ongoing_episodes
(self)
agent/tests/test_regime.py:116
Function
test_closed_connection_returns_none_instead_of_spinning
()
agent/tests/test_baostock_socket_deadline.py:73
Method
test_closed_event_alone_is_not_resolved
The bug this suite exists for: `closed` used to mean `resolved`.
agent/tests/test_prediction_market_tool.py:419
Method
test_closed_event_with_no_markets_is_pending
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:432
Method
test_closed_filter_discloses_it_cannot_select_on_settlement
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:574
Method
test_closed_time_is_surfaced
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:699
Method
test_closed_without_evidence_is_not_called_resolved
The live 2020 case: closed for years, outcome recorded nowhere.
agent/tests/test_prediction_market_tool.py:302
Function
test_closing_a_short_is_judged_as_a_buy_after_slippage
Covering a short is booked as a buy, so slippage pushes it UP.
agent/tests/test_price_limit_lookahead.py:178
Function
test_closing_auction_window_label_is_excluded_and_reported
()
agent/tests/test_paper_trade_5m_session.py:182
Function
test_closing_dsml_tags_alone_are_tool_call_syntax
A DeepSeek draft once ended in closing tags only, inside its figures block; the opening-tag pattern missed them and the gate got three unreadable
agent/tests/test_agent_loop_dsml_tool_calls.py:189
Method
test_closing_fence_at_eof_without_trailing_newline
(self)
agent/tests/test_skills.py:69
Function
test_cluster_to_rule_skips_all_nan_price_feature
When a promoted price feature is all-NaN in the cluster, it is skipped.
agent/tests/test_shadow_account.py:2409
Function
test_clustering_is_invisible_to_kupiec_which_is_why_both_tests_exist
()
agent/tests/quantlib/test_var_backtest.py:166
Function
test_cmd_continue_derives_an_id_for_a_plain_run
(sessions_dir, tmp_path, monkeypatch)
agent/tests/test_cli_session_id.py:139
Function
test_cmd_continue_reuses_one_session_across_continuations
Goals must accumulate across continuations, so the id has to be stable.
agent/tests/test_cli_session_id.py:118
Method
test_cmd_init_ollama_skips_api_key
(self, tmp_path: Path)
agent/tests/test_cli_init.py:89
Method
test_cmd_init_openai_codex_uses_supported_default_and_oauth
(self, tmp_path: Path)
agent/tests/test_cli_init.py:118
Method
test_cmd_init_writes_agent_env_for_openrouter
(self, tmp_path: Path)
agent/tests/test_cli_init.py:64
Function
test_cmd_run_injects_a_nonempty_session_id
(sessions_dir, monkeypatch)
agent/tests/test_cli_session_id.py:55
Function
test_cmd_session_chat_passes_the_session_it_was_given
The id was already in scope as a parameter and simply was not forwarded.
agent/tests/test_cli_session_id.py:153
Method
test_cmd_wrappers_propagate_package_monkeypatch
Patching ``cli.RUNS_DIR`` must reach ``_legacy`` before any cmd_* runs. Regression for the partial-sync trap: before this wrapper, only
agent/tests/test_cli_interactive.py:269
Function
test_cn_a_avg_cost_is_the_fee_exclusive_weighted_average
()
agent/tests/test_paper_trade_golden_cn_a.py:170
Function
test_cn_a_buy_golden_fee_hand_computed_to_the_cent
()
agent/tests/test_paper_trade_golden_cn_a.py:105
Function
test_cn_a_commission_minimum_dominates_small_orders
()
agent/tests/test_paper_trade_golden_cn_a.py:158
Function
test_cn_a_golden_embeds_hand_computed_cents_and_merged_provenance
()
agent/tests/test_paper_trade_determinism.py:267
Function
test_cn_a_multiday_loop_skips_closed_days_and_resets_t_plus_1
()
agent/tests/test_paper_trade_rejections.py:325
Function
test_cn_a_sell_golden_fee_hand_computed_to_the_cent
()
agent/tests/test_paper_trade_golden_cn_a.py:135
Function
test_cn_a_session_outside_cn_a_is_in_band_invalid_request
(market: str)
agent/tests/test_paper_trade_v12_schema.py:234
Function
test_cn_a_without_an_injected_calendar_client_fails_loud
()
agent/tests/test_paper_trade_validation.py:119
Method
test_cny_mixed_with_usd_is_refused
(self)
agent/tests/test_composite_currency_guard.py:68
Method
test_code_lookup_uses_the_single_quote_endpoint
(self)
agent/tests/test_etf_holdings_tool.py:976
Function
test_codegen_and_extractor_share_price_feature_names
codegen must read the same price-feature names the extractor writes. Both now source ``PRICE_FEATURES`` from ``models`` instead of repeating a
agent/tests/test_shadow_account.py:1558
Function
test_codes_outside_hong_kong_are_not_classified
()
agent/tests/test_hk_counter_currency.py:48
Function
test_codex_400_is_non_retryable_via_codex_stream_error
Deterministic codex 400 is non-retryable through CodexStreamError.
agent/tests/test_openai_codex.py:556
Function
test_codex_500_is_retryable_via_codex_stream_error
Transient codex 500 stays retryable.
agent/tests/test_openai_codex.py:567
Function
test_codex_base_url_is_restricted_to_chatgpt_endpoint
()
agent/tests/test_openai_codex.py:65
Function
test_codex_body_strips_provider_prefix_and_converts_tools
()
agent/tests/test_openai_codex.py:84
Function
test_codex_message_accumulation_preserves_final_usage
()
agent/tests/test_openai_codex_usage.py:80
Function
test_codex_message_accumulation_preserves_response_model
()
agent/tests/test_openai_codex_usage.py:97
Function
test_codex_model_discovery_uses_fixed_oauth_catalog_not_form_url
( client: TestClient, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_settings_api.py:911
Function
test_codex_models_offered_are_ones_the_codex_backend_publishes
Every Codex model we default to or suggest is in the published list. ``openai-codex/gpt-5.4`` was the default and the Codex backend answers it
agent/tests/test_llm_provider_defaults.py:206
Function
test_codex_provider_accepts_announced_extended_efforts
()
agent/tests/test_codex_model_discovery.py:140
Function
test_codex_storage_is_vibe_owned_and_never_imports_codex_cli
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, )
agent/tests/test_openai_codex.py:113
← previous
next →
16,101–16,200 of 26,887, ranked by callers