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_failed_source_is_excluded_from_totals_and_reports_its_last_success
A source that fails contributes nothing; only its last-healthy time survives.
agent/tests/test_portfolio_service.py:391
Method
test_failed_state_is_exit_nonzero
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:170
Function
test_failed_stream_usage_is_counted_before_retry
(tmp_path, monkeypatch, recover)
agent/tests/test_llm_cost_accounting.py:284
Function
test_failed_stream_usage_survives_retry_and_worker_failure
Paid partial calls stay in totals, even if no deliverable is released.
agent/tests/test_swarm_worker_stream_retry.py:198
Function
test_failed_stream_without_usage_is_counted_not_announced
(tmp_path, monkeypatch)
agent/tests/test_llm_cost_accounting.py:307
Function
test_failed_summary_without_timeout_reports_unknown_usage
(tmp_path, monkeypatch)
agent/tests/test_llm_cost_accounting.py:106
Function
test_failed_upstream_blocks_downstream
When task-risk FAILS, task-pm MUST be blocked, not started.
agent/tests/test_swarm_dag_gating.py:77
Function
test_failed_worker_waits_before_each_retry_and_reports_delay
( tmp_path: Path, )
agent/tests/test_swarm_worker_retry_backoff.py:87
Function
test_failed_write_preserves_the_previous_partial
(fake_home, monkeypatch)
agent/tests/test_onboard_partial_env.py:58
Method
test_failing_market_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:832
Method
test_fails_when_frontend_dir_missing
(self, tmp_path: Path, capsys)
agent/tests/test_cli_setup_dev.py:93
Method
test_fails_when_node_missing
(self, tmp_path: Path, capsys)
agent/tests/test_cli_setup_dev.py:72
Method
test_fails_when_npm_missing
(self, tmp_path: Path, capsys)
agent/tests/test_cli_setup_dev.py:83
Function
test_failure_block_threshold_is_two_sided
Both sides of the gate, so a future change cannot quietly move it.
agent/tests/test_agent_loop_no_progress.py:224
Function
test_failure_does_not_save_or_consume_revision
(service)
agent/tests/test_paper_accounts.py:115
Method
test_failure_json_error
(self)
agent/tests/test_loop_helpers.py:384
Function
test_failure_keeps_original_source_candidates
(recall, monkeypatch)
agent/tests/test_gildata_identity.py:61
Function
test_failure_reports_carry_a_closed_vocabulary_code
( monkeypatch, cfg, kwargs, expected_code )
agent/tests/test_futu_check_status_envelope.py:56
Function
test_failures_and_invalid_artifacts_are_not_collapsed
( harness_case: HarnessCase, artifact_dir: Path, )
agent/tests/harness_eval/test_runner.py:39
Method
test_fake_loader_satisfies_protocol
(self)
agent/tests/test_registry.py:183
Method
test_fallback_and_fts_agree_on_short_token_query
(self, tmp_path, monkeypatch, fts_db)
agent/tests/memory/test_tier2_integration.py:282
Function
test_fallback_chains_are_written_in_the_order_the_loader_walks
The bullet list is the order ``source: "auto"`` tries sources in. Crypto read okx · ccxt · binance and forex mt5 · yfinance · akshare for mon
agent/tests/test_readme_counts.py:713
Function
test_fallback_derives_types_and_secret_flags
Adapters without hand-written hints derive metadata from default_config().
agent/tests/test_channel_config_meta.py:720
Method
test_fallback_finds_short_token_entry
(self, tmp_path, monkeypatch)
agent/tests/memory/test_tier2_integration.py:267
Function
test_fallback_key_is_stable_and_0600
(tmp_path, no_api_key)
agent/tests/test_alpha_bench_cache.py:67
Method
test_fallback_on_missing_symbol
(self)
agent/tests/test_base_engine.py:964
Method
test_fallback_on_missing_timestamp
(self)
agent/tests/test_base_engine.py:969
Method
test_fallback_on_nan
(self)
agent/tests/test_base_engine.py:974
Method
test_fallback_only
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_env_schema.py:559
Method
test_fallback_path
Fallback (bottleneck disabled) still works correctly.
agent/tests/test_factor_operators.py:135
Method
test_fallback_path
(self, random_df)
agent/tests/test_factor_operators.py:184
Method
test_fallback_path
(self, random_df)
agent/tests/test_factor_operators.py:220
Method
test_fallback_path
(self, random_df)
agent/tests/test_factor_operators.py:269
Function
test_fallback_rejects_a_candidate_outside_price_tolerance
(monkeypatch)
agent/tests/quantlib/test_options_iv_price_tolerance.py:39
Function
test_fallback_single_symbol_download_uses_inclusive_end_date
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_yfinance_crypto.py:106
Method
test_fallback_to_openai_api_key
When provider env is unset, fall back to OPENAI_API_KEY.
agent/tests/test_ocr_engine.py:252
Method
test_falls_back_to_a_stable_per_chat_id_when_no_stream_id_injected
(self)
agent/tests/test_wecom_stream_id_continuity.py:67
Method
test_falls_back_to_base_when_list_empty
(self, monkeypatch)
agent/tests/test_tickerall_loader.py:159
Method
test_falls_back_to_filing_order_when_periods_unknown
(self)
agent/tests/test_etf_holdings_tool.py:391
Method
test_falls_back_to_printing_when_context_cannot_queue
( self, capsys: pytest.CaptureFixture[str] )
agent/tests/test_institutional_commands.py:273
Method
test_falls_back_when_unavailable
(self)
agent/tests/test_registry.py:454
Method
test_falls_through_to_next_loader_when_first_returns_empty
(self, monkeypatch)
agent/tests/test_correlation.py:181
Method
test_false_for_everything_else
(self, token: str)
agent/tests/test_mt5_connector.py:321
Method
test_false_on_darwin
(self)
agent/tests/test_cli_setup_dev.py:28
Method
test_false_on_linux
(self)
agent/tests/test_cli_setup_dev.py:24
Function
test_false_values
(value)
agent/tests/test_tool_boolean_arguments.py:12
Method
test_false_when_connection_raises
(self, monkeypatch)
agent/tests/test_futu_loader.py:209
Method
test_false_when_host_missing
(self, monkeypatch)
agent/tests/test_futu_loader.py:179
Method
test_false_when_port_missing
(self, monkeypatch)
agent/tests/test_futu_loader.py:188
Method
test_falsy
(self, value: str)
agent/tests/test_env_schema.py:504
Function
test_falsy_non_dict_fee_model_is_malformed_not_absent
(falsy)
agent/tests/test_paper_trade_schema.py:415
Method
test_falsy_strings
(self, value: str)
agent/tests/test_env_schema.py:530
Function
test_fastmcp_url_cache_keys_are_filesystem_safe
FastMCP OAuth keys include the raw MCP URL and must stay cache-local.
agent/tests/test_oauth_token_cache.py:81
Function
test_fastmcp_wrapped_results_keep_unwrapped_data_shape
Keep FastMCP's primitive unwrapping across supported versions.
agent/tests/test_mcp_client_adapter.py:451
Function
test_fcf_yield_subtracts_capex_from_cfo
()
agent/tests/factors/test_fundamental_expansion_price_samples.py:124
Method
test_fcff_bridge_cells_match_result
(self, workbook_path)
agent/tests/quantlib/valuation/test_artifact.py:611
Function
test_fcff_bridge_refuses_non_finite_forecast_entries
()
agent/tests/quantlib/valuation/test_dcf.py:1073
Function
test_fcff_bridge_rejects_empty_forecast
()
agent/tests/quantlib/valuation/test_dcf.py:895
Function
test_fcff_bridge_rejects_mismatched_lengths
()
agent/tests/quantlib/valuation/test_dcf.py:902
Function
test_fcff_bridge_rejects_tax_rate_outside_unit_interval
()
agent/tests/quantlib/valuation/test_dcf.py:913
Method
test_fear_greed_empty_data
(self)
agent/tests/test_sentiment_tool.py:139
Method
test_fear_greed_failure
(self)
agent/tests/test_sentiment_tool.py:132
Method
test_fear_greed_malformed_json
(self)
agent/tests/test_sentiment_tool.py:146
Method
test_fear_greed_missing_value
(self)
agent/tests/test_sentiment_tool.py:153
Method
test_fear_greed_success
(self)
agent/tests/test_sentiment_tool.py:121
Function
test_feasible_single_asset_fast_path_is_unchanged
(caps: dict)
agent/tests/test_turnover_single_asset_caps.py:50
Function
test_feature_badges_state_the_real_counts
Each <sub> badge must carry the count the code ships.
agent/tests/test_readme_counts.py:353
Function
test_feature_flag_can_restore_previous_resolution_behavior
(tmp_path: Path)
agent/tests/test_grounding_resolution_context.py:301
Method
test_fee_keys_reach_the_engine
(self)
agent/tests/test_yfinance_crypto_routing.py:35
Function
test_fee_model_override_flows_through_to_the_effective_values
()
agent/tests/test_paper_trade_golden_cn_a.py:231
Function
test_feed_specs_from_config_parses_and_validates
()
agent/tests/test_rsshub_events_provider.py:204
Function
test_feed_specs_from_config_rejects_bad
(bad: list)
agent/tests/test_rsshub_events_provider.py:234
Function
test_feedback_lists_each_candidate_once_and_within_the_cap
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:137
Function
test_feedspec_rejects_unknown_code_style
()
agent/tests/test_rsshub_events_provider.py:184
Function
test_feishu_field_hints_exact_snapshot
Feishu hints match the frozen contract, with ``enabled`` excluded.
agent/tests/test_channel_config_meta.py:180
Function
test_feishu_pristine_form_roundtrip_validates_for_typed_fields
Same roundtrip for Feishu's typed fields (Literal domain/group_policy, ``None``-default done_emoji, bools) through the ``tenant_access_token`` pro
agent/tests/test_channels_config_api.py:376
Function
test_feishu_secrets_are_masked_and_behavior_values_stay_visible
All three Feishu credential fields mask; behavior fields stay in values.
agent/tests/test_channel_config_meta.py:903
Method
test_feller_condition
(self)
agent/tests/quantlib/test_volatility.py:14
Function
test_feller_rejects_nonfinite_inputs
(field)
agent/tests/test_heston_finite_inputs_regressions.py:50
Method
test_fenced_hashes_do_not_become_sections
(self)
agent/tests/test_agent_output_discipline.py:919
Function
test_fetch_admits_a_byma_or_tsx_line_only_in_its_markets_currency
BYMA and the TSX each list USD lines beside their ARS / CAD pools. Yahoo declared USD for GGALD.BA (4.20) and DLR-U.TO (10.16) on 2026-09-24,
agent/tests/test_yfinance_uk_scale.py:176
Function
test_fetch_admits_a_line_only_in_its_markets_currency
ar_equity is one ARS pool and ca_equity one CAD pool; both venues list USD lines.
agent/tests/test_yahoo_loader.py:430
Method
test_fetch_annotates_relevance_with_stock_name
(self, fsp, monkeypatch)
agent/tests/test_fetch_sina_penalties.py:341
Function
test_fetch_auto_falls_back_only_for_missing_symbols
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:271
Function
test_fetch_auto_full_batch_never_touches_the_next_source
When the chain head serves everything, the walk stops as before.
agent/tests/test_market_data.py:839
Function
test_fetch_auto_groups_by_detected_source
()
agent/tests/test_market_data.py:345
Function
test_fetch_auto_hk_akshare_reachable_within_default_budget
akshare (Eastmoney-backed HK daily) must be reachable within the default ``max_fallback_attempts`` when every earlier HK source is down.
agent/tests/test_market_data.py:394
Function
test_fetch_auto_hk_walks_hk_chain_not_us_chain
HK symbols must degrade through the hk_equity chain, not the US one. A source-name-only chain lookup would match HK's yahoo membership against
agent/tests/test_market_data.py:364
Function
test_fetch_auto_india_walks_india_chain
India symbols must degrade through the india_equity chain (chain selection is market-aware for every market, not just HK).
agent/tests/test_market_data.py:420
Function
test_fetch_auto_partial_batch_retries_missing_symbols_down_chain
One 404 out of five must not strand the rest in _unresolved. yahoo serves four of five US symbols and omits the fifth; the chain walk must ke
agent/tests/test_market_data.py:794
Function
test_fetch_auto_respects_source_order_override_head
auto mode starts at the override's head (tushare), not the default's.
agent/tests/test_market_data.py:651
Function
test_fetch_auto_restores_original_crypto_symbol
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:245
Function
test_fetch_auto_us_still_walks_us_chain
US routing is unchanged by the market-aware chain selection.
agent/tests/test_market_data.py:445
Function
test_fetch_broker_ceilings_derives_from_account
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:1059
Function
test_fetch_broker_ceilings_falls_back_to_none
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:1079
Function
test_fetch_canadian_aliases_sibling_already_resolved
When both venues are requested and only the sibling resolves, the missing one is aliased to the resolved sibling's bars with no extra fetch.
agent/tests/test_market_data.py:559
Function
test_fetch_canadian_to_falls_back_to_v_sibling
Reverse direction: a .TO symbol whose only live venue is .V.
agent/tests/test_market_data.py:541
Function
test_fetch_canadian_v_falls_back_to_to_sibling
HIVE.V 404s (listing moved to TSX) -> HIVE.TO served under HIVE.V.
agent/tests/test_market_data.py:523
Function
test_fetch_candles_returns_none_when_both_endpoints_fail
(monkeypatch)
agent/tests/test_okx_loader_bounded.py:142
Function
test_fetch_candles_tries_history_then_recent
When prefer_history=True and history fails, candles endpoint is tried.
agent/tests/test_okx_loader_bounded.py:119
← previous
next →
18,201–18,300 of 26,887, ranked by callers