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_concurrent_expired_credential_reads_share_one_refresh
(no_ambient_credentials, monkeypatch)
agent/tests/test_copilot_provider.py:160
Function
test_concurrent_instances_append_a_single_serial_revision_chain
( tmp_path, monkeypatch )
agent/tests/test_research_artifact_store.py:168
Function
test_concurrent_latch_updates_both_episodes_recorded
( live_root: Path, )
agent/tests/test_sweep_latch.py:481
Function
test_concurrent_match_commits_only_once
(service)
agent/tests/test_paper_accounts.py:166
Function
test_concurrent_orders_share_one_daily_cap_permit
Two callers racing a cap of one must make only one broker call.
agent/tests/test_sdk_order_gate.py:880
Function
test_concurrent_portfolio_reconnect_returns_conflict
(monkeypatch)
agent/tests/test_portfolio_routes.py:124
Function
test_concurrent_process_like_managers_do_not_lose_updates
(tmp_path)
agent/tests/test_pixel_office.py:55
Function
test_concurrent_puts_serialize_per_channel
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:990
Function
test_concurrent_reloads_of_one_channel_leave_one_adapter_running
Two reloads racing on one channel each stopped the adapter they saw and started their own, so one replacement ran outside the manager.
agent/tests/test_channel_manager_reload.py:399
Method
test_concurrent_reset_and_read
Interleaved reset + read must not raise.
agent/tests/test_env_schema.py:460
Function
test_concurrent_saves_use_distinct_temporary_files
(live_runtime, monkeypatch)
agent/tests/test_runtime_jobstore.py:83
Function
test_concurrent_start_while_stopping_does_not_orphan_the_loop
Regression: the old unconditional ``self._task = None`` at the tail of stop() nulled a NEW loop task installed by a start() that landed in the
agent/tests/scheduling/test_kernel_sleep_hint.py:194
Function
test_concurrent_stops_do_not_cancel_teardown_twice
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:592
Function
test_concurrent_stops_wait_for_cleanup_without_recancelling
()
agent/tests/scheduling/test_kernel_concurrent_stop.py:7
Function
test_concurrent_stores_writing_same_run_do_not_crash_or_clobber
mcp_server._get_swarm_store() builds a fresh SwarmStore per tool call, so two pollers of the same run each hold their own _write_lock. A shared
agent/tests/test_swarm_store_atomic_write.py:128
Function
test_concurrent_task_stores_saving_one_task_do_not_crash
The TaskStore sibling of the SwarmStore race (#1536): two workers writing the same task file each used ``task-<id>.tmp``, so one rename could cons
agent/tests/test_swarm_store_atomic_write.py:166
Function
test_concurrent_writes_to_different_channels_both_survive
Two threads patching different channels at once must not lose a patch. The barrier forces both readers to overlap when the write lock is absent;
agent/tests/test_config_writer.py:132
Method
test_condition_id_routes_to_clob
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:742
Function
test_conditional_coverage_catches_a_model_that_only_fails_on_timing
()
agent/tests/quantlib/test_var_backtest.py:230
Function
test_conditional_coverage_is_exactly_the_sum_of_its_components
()
agent/tests/quantlib/test_var_backtest.py:213
Function
test_conditional_coverage_passes_a_correctly_calibrated_model
()
agent/tests/quantlib/test_var_backtest.py:223
Function
test_conditional_entry_both_rsi_and_return_must_pass
Both RSI and prior-return conditions must pass (AND logic).
agent/tests/test_shadow_account.py:2346
Function
test_conditional_entry_emits_signal_when_rsi_in_range
RSI in [25, 45] → signal fires.
agent/tests/test_shadow_account.py:2188
Function
test_conditional_entry_falls_back_to_time_only_when_no_price_keys
Rule without price conditions uses time-window-only entry.
agent/tests/test_shadow_account.py:2296
Function
test_conditional_entry_holds_for_full_duration
Once entered, signal persists for hold_days bars.
agent/tests/test_shadow_account.py:2242
Function
test_conditional_entry_no_reentry_while_holding
remaining_hold > 0 must prevent re-entry during a hold.
agent/tests/test_shadow_account.py:2268
Function
test_conditional_entry_only_prior_return_condition
Rule with only prior_5d_return (no RSI) gates on return alone.
agent/tests/test_shadow_account.py:2378
Function
test_conditional_entry_prior_return_gates_entry
Prior return outside bounds → no entry.
agent/tests/test_shadow_account.py:2315
Function
test_conditional_entry_respects_hour_window
Entry only allowed when bar hour is in [9, 11]; outside → zero.
agent/tests/test_shadow_account.py:2223
Function
test_conditional_entry_rsi_nan_bars_are_skipped
Bars where RSI is NaN (warmup) are skipped, then entry fires after warmup.
agent/tests/test_shadow_account.py:2438
Function
test_conditional_entry_skips_when_rsi_out_of_range
RSI strictly below min → no entry. Use a steep uptrend to push RSI high.
agent/tests/test_shadow_account.py:2205
Function
test_confidence_must_be_a_strict_probability
(fn, confidence)
agent/tests/quantlib/test_risk.py:209
Function
test_config_defaults_to_paper_port
()
agent/tests/test_ibkr_local.py:110
Method
test_config_file_feeds_initialize
( self, fake_mod: _FakeMT5Module, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_mt5_loader.py:221
Method
test_config_file_skipped
(self)
tools/test_ci_env_var_gate.py:144
Function
test_config_formats
(tmp_path: Path, ext: str)
agent/tests/test_doc_reader.py:38
Function
test_config_hash_is_deterministic_independent_of_key_order
(tmp_path: Path)
agent/tests/test_run_card.py:16
Method
test_config_order_applies
(self)
agent/tests/test_constraints.py:152
Method
test_config_records_provenance_but_never_overwrites_the_caller
(self)
agent/tests/test_research_playbooks.py:383
Method
test_config_visitor_clean
(self)
tools/test_ci_env_var_gate.py:150
Method
test_configurable_lag_still_counts_from_newest
(self)
agent/tests/test_vietnam_equity_engine.py:201
Function
test_configuration_problems_are_reported_together
()
agent/tests/test_argentina_equity_engine.py:83
Method
test_configured_allowed_run_root_is_accepted
( self, isolated_home: Path, monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
agent/tests/test_strategy_discovery_refresh.py:277
Function
test_configured_api_key_accepts_bearer_for_sensitive_reads
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:158
Function
test_configured_api_key_required_for_sensitive_reads
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:138
Function
test_configured_api_key_required_for_session_event_stream
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:529
Function
test_configured_api_key_takes_priority
(tmp_path, monkeypatch)
agent/tests/test_alpha_bench_cache.py:80
Function
test_configured_delivery_keeps_raw_provider_target_out_of_public_payload
( monkeypatch, )
agent/tests/test_scheduled_research_confirmation.py:87
Method
test_configured_fundamental_enrichment_failure_is_not_silent
Explicit statement-field requests should fail rather than degrade silently.
agent/tests/test_engine_robustness.py:305
Method
test_configured_import_root_file_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:53
Function
test_configured_iqs_keeps_priority
(monkeypatch, adapter, _offline_sources)
agent/tests/test_parallel_search.py:118
Method
test_configured_key_rejects_uncredentialed_requests
( self, method: str, path: str, rest_store: ScheduledResearchJobStore,
agent/tests/test_playbooks_surface.py:350
Method
test_configured_leverage_is_not_reported_as_assumed
(self)
agent/tests/test_global_futures_pricing_assumptions.py:108
Method
test_configured_run_id_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:174
Method
test_configured_run_root_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:125
Method
test_confirmation_declined_keeps_entry
(self, tmp_path: Path, capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_memory.py:189
Function
test_conflict_credentials_never_call_require_longbridge
is_available and fetch both exit before calling _require_longbridge.
agent/tests/test_longbridge_loader.py:397
Function
test_conflicting_exact_recall_matches_do_not_pick_first
(tmp_path, monkeypatch)
agent/tests/test_gildata_boundaries.py:33
Method
test_conflicting_identity_offers_no_recovery
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:167
Function
test_connect_failure_degrades_to_none
(monkeypatch)
agent/tests/test_baostock_socket_deadline.py:113
Function
test_connection
Validate the email credentials with standalone IMAP + SMTP probes. Uses fresh ``imaplib`` / ``smtplib`` connections rather than the channel's
agent/src/channels/email_probe.py:166
Function
test_connection
Validate the Slack credentials with a standalone two-leg probe. Uses fresh ``httpx.AsyncClient`` requests rather than the channel's ``slack_s
agent/src/channels/slack_probe.py:50
Function
test_connection
Validate the QQ credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than the channel's shared client (whic
agent/src/channels/qq_probe.py:29
Function
test_connection
Validate the Discord bot token with a standalone REST probe. Uses a fresh ``httpx.AsyncClient`` request rather than the channel's ``discord.p
agent/src/channels/discord_probe.py:51
Function
test_connection
Validate the Feishu/Lark credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than any lark SDK client (which
agent/src/channels/feishu_probe.py:35
Function
test_connection
Validate the DingTalk credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than the channel's shared client
agent/src/channels/dingtalk_probe.py:38
Function
test_connection
Validate the WebSocket channel's local configuration. Runs the SSL-material and TCP-bind checks in a worker thread (both are blocking) and ne
agent/src/channels/websocket_probe.py:147
Method
test_connection
Validate the DingTalk credentials with a standalone token request. Delegates to :func:`src.channels.dingtalk_probe.test_connection`; see
agent/src/channels/dingtalk.py:323
Method
test_connection
Validate the email credentials with a standalone IMAP + SMTP probe. Delegates to :func:`src.channels.email_probe.test_connection`; see
agent/src/channels/email.py:257
Method
test_connection
Validate the Feishu credentials with a standalone token request. Delegates to :func:`src.channels.feishu_probe.test_connection`; see
agent/src/channels/feishu.py:867
Method
test_connection
Probe this channel's credentials without starting it. Default implementation reports ``unsupported``; adapters that can validate cred
agent/src/channels/base.py:77
Method
test_connection
Validate the Slack credentials with a standalone two-leg probe. Delegates to :func:`src.channels.slack_probe.test_connection`; see th
agent/src/channels/slack.py:162
Method
test_connection
Validate the Discord bot token with a standalone REST probe. Delegates to :func:`src.channels.discord_probe.test_connection`; see tha
agent/src/channels/discord.py:481
Method
test_connection
Validate the WebSocket local configuration with a standalone probe. Delegates to :func:`src.channels.websocket_probe.test_connection`; see
agent/src/channels/websocket.py:370
Function
test_connection_error_fails_closed
(tap_env, monkeypatch)
agent/tests/test_tap_forward.py:73
Function
test_connection_list_isolates_invalid_gateway_config
(ibkr_endpoint_client, tmp_path, connector, filename)
agent/tests/test_connection_routes.py:304
Function
test_connection_modules_import_without_keyring_installed
Connection metadata must stay importable on a base install. Runs in a child process because re-importing these modules in the test process wo
agent/tests/test_local_connections_hardening.py:171
Function
test_connection_registry_never_serializes_credentials
(tmp_path)
agent/tests/test_local_connections.py:28
Function
test_connection_registry_normalizes_ids_before_duplicate_checks
(tmp_path)
agent/tests/test_local_connections.py:45
Function
test_connection_registry_rejects_control_characters_in_labels
(tmp_path)
agent/tests/test_local_connections.py:58
Function
test_connection_routes_create_list_and_check_without_returning_secrets
( tmp_path, monkeypatch, )
agent/tests/test_connection_routes.py:78
Function
test_connection_routes_reject_credentials_not_declared_by_profile
(tmp_path, monkeypatch)
agent/tests/test_connection_routes.py:133
Function
test_connection_scoped_overrides_obey_the_connector_allowlist
A vault-backed call must not widen what a caller may override. Every SDK connector narrows overrides on purpose: OKX and Binance both exclude
agent/tests/test_local_connections.py:245
Function
test_connection_test_keeps_echoed_url_credentials
(tmp_path, monkeypatch)
agent/tests/test_channels_config_api.py:669
Function
test_connector_account_renders_balances_table
(capsys)
agent/tests/test_cli_connector_renderers.py:57
Function
test_connector_account_renders_ccxt_asset_balances
#1539: Binance spot rows are asset/free/used/total, not Longbridge's keys.
agent/tests/test_cli_connector_renderers.py:81
Function
test_connector_account_renders_direct_sdk_account_mapping
(capsys)
agent/tests/test_cli_connector_renderers.py:180
Function
test_connector_account_renders_futu_assets
#1539: Futu's accinfo_query rows arrive as ``assets``, not ``balances``.
agent/tests/test_cli_connector_renderers.py:112
Function
test_connector_account_renders_trading212_cash_and_metadata
#1539: Trading 212 splits the account into ``cash`` and ``metadata`` mappings.
agent/tests/test_cli_connector_renderers.py:146
Function
test_connector_account_still_handles_ibkr_summary
(capsys)
agent/tests/test_cli_connector_renderers.py:165
Method
test_connector_bridges_to_dispatch_connector
(self)
agent/tests/test_cli_runtime.py:488
Function
test_connector_check_uses_sdk_diagnostics_without_oauth_rows
(capsys)
agent/tests/test_cli_connector_renderers.py:210
Function
test_connector_observation_normalizer_fails_closed
( observation: dict[str, object], )
agent/tests/test_binance_account_reconciliation.py:181
Function
test_connector_observation_normalizes_into_frozen_snapshot
()
agent/tests/test_binance_account_reconciliation.py:121
Function
test_connector_orders_keeps_class_b_ticker_intact
(capsys)
agent/tests/test_cli_connector_renderers.py:293
Function
test_connector_orders_renders_flat_broker_sdk_row
(capsys)
agent/tests/test_cli_connector_renderers.py:262
Function
test_connector_orders_still_renders_the_nested_ibkr_row
(capsys)
agent/tests/test_cli_connector_renderers.py:317
Function
test_connector_path_resolves_longbridge_credentials_from_dotenv
Credentials living only in the ``.env`` file resolve after a dispatch.
agent/tests/test_cli_connector_env.py:49
Function
test_connector_place_order_rejects_bad_side
(connector)
agent/tests/test_sdk_order_gate.py:982
Function
test_connector_place_order_rejects_both_qty_and_notional
(connector)
agent/tests/test_sdk_order_gate.py:992
← previous
next →
16,401–16,500 of 26,887, ranked by callers