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_bad_split_date_does_not_turn_clock_into_todays_date
(date)
agent/tests/test_generic_split_datetime.py:53
Method
test_badly_named_file_is_rejected_at_load
A file whose stem is not a valid slug fails loudly instead of becoming a catalogue entry that get_playbook can never return.
agent/tests/test_research_playbooks.py:286
Method
test_balance_sheet_rows_balance_and_match_result
(self, workbook_path)
agent/tests/quantlib/valuation/test_artifact.py:788
Function
test_balance_tolerance_is_honored_for_projected_periods
A caller-widened balance_tolerance must apply to every projected period, not just the opening. The rollforwards preserve the residual exactly: ex
agent/tests/quantlib/valuation/test_threestatement.py:377
Method
test_balanced_brackets
(self)
agent/tests/test_cli_interactive.py:349
Method
test_band_bounds_are_on_grid
(self)
agent/tests/test_vietnam_equity_engine.py:61
Method
test_band_check_inactive_without_reference
(self)
agent/tests/test_vietnam_equity_engine.py:242
Method
test_band_is_inactive_without_any_reference
(self)
agent/tests/test_composite_vietnam_rules.py:148
Function
test_banner_renders_large_logo_and_metadata
()
agent/tests/test_cli_ui_redesign.py:95
Function
test_banner_session_probe_follows_home_override
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
agent/tests/test_user_state_paths.py:221
Method
test_baostock_native_passthrough
baostock native format (sh.601398) should pass through unchanged.
agent/tests/test_baostock_loader.py:60
Method
test_baostock_native_sh_format
sh.601398 is the baostock-native format and should be recognized.
agent/tests/test_baostock_loader.py:12
Method
test_baostock_native_sz_format
sz.000001 is the baostock-native format and should be recognized.
agent/tests/test_baostock_loader.py:17
Function
test_baostock_outage_degrades_to_nan
baostock login failure yields NaN frames instead of raising.
agent/tests/factors/test_valuation_baostock_fallback.py:171
Function
test_bar_after_an_exact_zero_is_finite
(delu: pd.Series)
agent/tests/test_nonpositive_returns.py:104
Function
test_bar_epoch_tolerates_naive_and_missing_input
()
agent/tests/test_zerodha_sdk.py:115
Function
test_bar_fingerprint_is_symbol_order_independent_and_deterministic
()
agent/tests/test_paper_trade_5m_session.py:298
Method
test_bar_funding_rate_overrides_fixed_rate
A bar carrying a historical ``funding_rate`` column (USD-M perp data) must be charged at that rate, not the fixed config rate.
agent/tests/test_crypto_engine.py:519
Method
test_bar_generator_used
(self)
agent/tests/test_vnpy_export.py:123
Method
test_bar_returns_skips_a_missing_anchor_instead_of_comparing_none
(self)
agent/tests/test_strategy_discovery_harness.py:596
Method
test_bare_2_with_no_pending_proposal_routes_to_model
No proposal armed → a bare '2' is normal text and goes to the model. Guards against the relay over-reaching: the interception only fires when
agent/tests/test_cli_live.py:831
Method
test_bare_a_share_follows_the_tushare_prefix_rule
(self)
agent/tests/test_correlation.py:137
Method
test_bare_a_share_gets_exchange_suffix
(self)
agent/tests/test_correlation.py:131
Method
test_bare_a_share_tickers_by_digit_length
(self)
agent/tests/test_correlation.py:50
Method
test_bare_attach_warns_about_terminal_picking
( self, fake_mod: _FakeMT5Module, caplog: pytest.LogCaptureFixture )
agent/tests/test_mt5_loader.py:241
Method
test_bare_chinese_futures_is_futures
(self)
agent/tests/test_market_detection.py:399
Method
test_bare_cn_collision_product_still_chinese
(self)
agent/tests/test_market_detection.py:385
Method
test_bare_code_and_days_clamped
(self)
agent/tests/test_margin_trading_tool.py:77
Method
test_bare_code_exchange_inferred
(self)
agent/tests/test_gildata_loader.py:112
Method
test_bare_code_strips_suffix
(self)
agent/tests/test_dragon_tiger_tool.py:93
Method
test_bare_command_does_not_start_a_turn
(self)
agent/tests/test_institutional_commands.py:317
Method
test_bare_command_lists_the_catalogue
( self, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:587
Method
test_bare_connector_defaults_to_status
(self)
agent/tests/test_cli_runtime.py:497
Method
test_bare_digits_get_of_suffix
(self)
agent/tests/test_fund_nav_tool.py:76
Method
test_bare_equity_on_foreign_venue_is_not_us
A bare non-US equity must not be relabelled as a US listing. Before the exchange guard, every bare ``EQUITY`` became ``<SYM>.US``, so
agent/tests/test_symbol_search_tool.py:977
Method
test_bare_fund_on_foreign_venue_stays_native
A bare symbol Yahoo files under a non-US venue keeps its own form.
agent/tests/test_symbol_search_tool.py:971
Method
test_bare_fx_pair_classification_is_case_insensitive
(self)
agent/tests/test_market_detection.py:432
Method
test_bare_fx_pair_classifies_as_forex
(self)
agent/tests/test_market_detection.py:408
Method
test_bare_hk_gets_hk_suffix
(self)
agent/tests/test_correlation.py:157
Method
test_bare_hk_tickers_by_digit_length
(self)
agent/tests/test_correlation.py:39
Function
test_bare_integers_are_not_checked
§3: a plain integer is a count, a window or an index, never a price. Each of these had a mask of its own — a labelled-score mask, a quantity-
agent/tests/test_grounding_figures_contract.py:333
Function
test_bare_issuer_tokens_are_scrubbed_without_a_key_label
A token pasted with no ``key=`` in front of it must still go.
agent/tests/test_redaction_shared.py:512
Function
test_bare_key_is_redacted
(key: str)
agent/tests/test_redaction_cloud_api_keys.py:19
Function
test_bare_link_cannot_climb_out_of_the_skill
``..`` inside a bare link is refused rather than followed. Without this the fallback would widen the boundary the ``skills/`` prefix already
agent/tests/test_read_file_skill_relative.py:110
Function
test_bare_link_does_not_shadow_run_dir
A file the agent wrote into run_dir still wins over the skills tree. The fallback is a last resort, so existing resolution order is unchanged.
agent/tests/test_read_file_skill_relative.py:85
Function
test_bare_link_resolves_to_the_owning_skill
A bare link resolves to the same file as its skill-prefixed form.
agent/tests/test_read_file_skill_relative.py:62
Method
test_bare_lowercase_product
(self)
agent/tests/test_market_detection.py:348
Method
test_bare_name_without_suffix_still_hits_eastmoney
A bare name (no .TO/.V) is NOT fail-fast — venue is ambiguous. This preserves the documented design: bare names like "B2Gold BTO" or
agent/tests/test_symbol_search_tool.py:324
Method
test_bare_non_us_code_is_not_us
(self)
agent/tests/test_futu_loader.py:105
Method
test_bare_or_unknown_spec_uses_default_cadence
(self)
agent/tests/scheduling/test_triggers_equivalence.py:227
Method
test_bare_pick
(self, text: str, expected: int)
agent/tests/test_cli_live.py:478
Function
test_bare_platform_token_is_redacted
(token: str)
agent/tests/test_redaction_platform_tokens.py:18
Method
test_bare_query
(self)
agent/tests/test_stock_news_tool.py:77
Method
test_bare_six_digit_code_resolves_to_an_exchange
(self)
agent/tests/test_etf_holdings_tool.py:357
Method
test_bare_six_digits
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:49
Method
test_bare_slash_lists_them
(self)
agent/tests/test_institutional_commands.py:163
Method
test_bare_subcommand_prints_help_and_signals_usage_error
( self, home: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:549
Function
test_bare_text_reports_no_source_mtime
()
agent/tests/test_extraetf_reader.py:510
Function
test_bare_ticker_is_allowed_whenever_it_names_one_locked_identity
A bare ticker is safe by uniqueness, not by a hand-maintained tool list. Every spelling here is the first example in that tool's own parameter
agent/tests/test_agent_grounding.py:496
Method
test_bare_ticker_is_us
(self)
agent/tests/test_futu_loader.py:102
Function
test_bare_ticker_not_automatically_equivalent_to_market_qualified
Do not infer an identifier alias or an exchange from the same stem.
agent/tests/test_grounding_keyed_metric_paths.py:151
Method
test_bare_ticker_source_and_currency
(self)
agent/tests/test_market_detection.py:200
Function
test_bare_ticker_stays_blocked_when_it_names_more_than_one_identity
Uniqueness is the whole guarantee, so a shared base must not resolve.
agent/tests/test_agent_grounding.py:522
Method
test_bare_ticker_uppercased
(self)
agent/tests/test_fmp_loader.py:66
Method
test_bare_ticker_uppercased
(self)
agent/tests/test_finnhub_loader.py:48
Function
test_bare_token_is_redacted
(token: str)
agent/tests/test_redaction_channel_and_provider_tokens.py:19
Function
test_bare_token_scrub_leaves_ordinary_output_alone
Short sk-prefixed words and usage counters are not credentials.
agent/tests/test_redaction_shared.py:523
Function
test_bare_touch_trips_without_metadata
(live_runtime: Path)
agent/tests/test_halt.py:79
Method
test_bare_uppercase_product
(self)
agent/tests/test_market_detection.py:344
Method
test_bare_us_equity_gets_us_suffix
(self)
agent/tests/test_correlation.py:125
Method
test_bare_us_fund_gets_us_suffix
(self, yahoo_symbol, quote)
agent/tests/test_symbol_search_tool.py:965
Function
test_bare_usd_quote_never_matches_the_joined_pair_regex
(raw: str)
agent/tests/test_agent_grounding.py:632
Method
test_barrier_greeks_far_from_barrier_matches_bs_greeks
(self)
agent/tests/quantlib/test_options.py:562
Method
test_barrier_option_input_validation
(self)
agent/tests/quantlib/test_options.py:574
Method
test_bars_finer_than_declared_switch_as_well
The gate is two-sided: hourly bars declared 1D annualise as 1H.
agent/tests/test_cross_market_annualization.py:383
Function
test_bars_per_year_none_does_not_crash
()
agent/tests/test_options_portfolio_correctness.py:149
Function
test_bars_per_year_none_on_degenerate_span_falls_back_to_default
()
agent/tests/test_options_portfolio_correctness.py:169
Function
test_bars_sorted_unique_and_ohlc_sane
(name: str)
agent/tests/test_paper_trade_fixtures.py:148
Function
test_bars_to_frame_all_malformed_returns_none
()
agent/tests/test_sina_loader.py:133
Function
test_bars_to_frame_clips_to_window
()
agent/tests/test_sina_loader.py:110
Function
test_bars_to_frame_empty_window_returns_none
()
agent/tests/test_sina_loader.py:117
Function
test_bars_to_frame_shape_and_dtypes
()
agent/tests/test_sina_loader.py:98
Function
test_bars_to_frame_skips_malformed_rows
()
agent/tests/test_sina_loader.py:121
Function
test_base_channel_declares_no_connection_test
()
agent/tests/test_dingtalk_connection_test.py:91
Function
test_base_channel_default_returns_unsupported
()
agent/tests/test_dingtalk_connection_test.py:95
Method
test_base_engine_declares_nothing_by_default
(self)
agent/tests/test_china_futures_pricing_assumptions.py:121
Method
test_base_engine_declares_nothing_by_default
(self)
agent/tests/test_global_futures_pricing_assumptions.py:141
Method
test_base_price_from_close_panel_when_no_pre_close
pykrx/Yahoo bars carry OHLCV only — use the prior close panel row.
agent/tests/test_korea_equity_engine.py:182
Method
test_base_url_fallback_chain
base_url should fall back through provider env → OPENAI_BASE_URL → OPENAI_API_BASE.
agent/tests/test_ocr_engine.py:291
Method
test_base_url_falls_back_to_openai_api_base
(self)
agent/tests/test_llm.py:1087
Method
test_base_url_falls_back_to_openai_base_url
(self)
agent/tests/test_llm.py:1080
Method
test_base_url_override_applied
(self, monkeypatch)
agent/tests/test_gildata_loader.py:285
Method
test_base_url_uses_provider_specific_env
(self)
agent/tests/test_llm.py:1071
Method
test_base_usd_pair
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:500
Function
test_basel_cumulative_probability_is_reported_so_the_cut_is_auditable
()
agent/tests/quantlib/test_var_backtest.py:274
Function
test_basel_red_zone_scaling_factor_is_flat_at_four
()
agent/tests/quantlib/test_var_backtest.py:258
Function
test_basel_scaling_factor_withheld_off_the_tabulated_basis
()
agent/tests/quantlib/test_var_backtest.py:263
Function
test_basel_scaling_factors_match_the_1996_table
(violations, factor)
agent/tests/quantlib/test_var_backtest.py:253
Function
test_basel_zones_reproduce_the_official_250_day_table
(violations, zone)
agent/tests/quantlib/test_var_backtest.py:247
Method
test_basic
(self)
agent/tests/test_skills.py:18
← previous
next →
15,301–15,400 of 26,887, ranked by callers