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_market_data_provenance_exposes_declared_volume_unit
Serving loaders declare per-market volume units (#1062).
agent/tests/test_market_data_tool.py:101
Function
test_market_data_provenance_uses_per_symbol_currency_conversion
Conversion provenance follows the frame, not the ``.L`` suffix.
agent/tests/test_market_data_tool.py:137
Function
test_market_data_provenance_volume_unit_follows_serving_loader
After fallback, the unit comes from the loader that actually served.
agent/tests/test_market_data_tool.py:192
Function
test_market_data_source_count_matches_loader_registry
()
agent/tests/test_distribution_skill_manifest.py:104
Function
test_market_data_tool_accepts_every_registered_source
Every source in the loader registry must pass MarketDataTool validation. Regression (#1185): the source allow-list was a hardcoded subset that
agent/tests/test_market_data_tool.py:374
Function
test_market_data_tool_accepts_minute_intervals
30m' is documented-valid; '30M' must normalize to it, not to '30M'. Regression: plain .upper() turned valid minute intervals ('1m', '5m', '15
agent/tests/test_market_data_tool.py:446
Function
test_market_data_tool_asks_only_a_us_equity_for_its_suffix
Bare ``AAPL`` returns empty frames from the US loaders, so auto asks for ``AAPL.US``; a futures code or a joined crypto pair has the same shape an
agent/tests/test_market_data_tool.py:502
Function
test_market_data_tool_clamps_negative_max_rows_to_default_cap
Negative max_rows is invalid but must never be unbounded (P07 G3ii): it is clamped to the default cap before fetching, same as cap_rows.
agent/tests/test_market_data_tool.py:431
Function
test_market_data_tool_exposes_longbridge_source
()
agent/tests/test_market_data_tool.py:14
Function
test_market_data_tool_normalizes_interval_case
1d' is accepted but normalized to canonical '1D' before fetch.
agent/tests/test_market_data_tool.py:413
Function
test_market_data_tool_rejects_blank_code
()
agent/tests/test_market_data_tool.py:314
Function
test_market_data_tool_rejects_compact_date_form
fromisoformat accepts YYYYMMDD on 3.11+; loaders do not. Reject it.
agent/tests/test_market_data_tool.py:358
Function
test_market_data_tool_rejects_empty_codes
()
agent/tests/test_market_data_tool.py:307
Function
test_market_data_tool_rejects_garbage_interval
()
agent/tests/test_market_data_tool.py:404
Function
test_market_data_tool_rejects_inverted_date_range
()
agent/tests/test_market_data_tool.py:342
Function
test_market_data_tool_rejects_malformed_dates
()
agent/tests/test_market_data_tool.py:335
Function
test_market_data_tool_rejects_missing_start_date
()
agent/tests/test_market_data_tool.py:328
Function
test_market_data_tool_rejects_non_int_max_rows
()
agent/tests/test_market_data_tool.py:424
Function
test_market_data_tool_rejects_non_list_codes
()
agent/tests/test_market_data_tool.py:321
Function
test_market_data_tool_rejects_unknown_source
()
agent/tests/test_market_data_tool.py:366
Function
test_market_data_tool_rejects_whitespace_only_code
()
agent/tests/test_market_data_tool.py:349
Function
test_market_data_tool_serves_month_and_week_spellings
1M' is one month and '1m' one minute; neither folds onto the other (#1480), and weekly/monthly bars reach the fetch as 1W / 1M (#1479).
agent/tests/test_market_data_tool.py:468
Function
test_market_data_type_accepts_names_codes_and_blanks
Tier may be given as its TWS name or code; blank falls back to the free tier.
agent/tests/test_ibkr_local.py:544
Function
test_market_factor_is_always_present_as_the_intercept
()
agent/tests/quantlib/test_factormodel.py:226
Function
test_market_factory_binds_to_subclass
The deferred factory must retain normal classmethod inheritance.
agent/tests/test_runtime_triggers.py:225
Function
test_market_fallback_uses_the_indicative_table
()
agent/tests/test_factor_costs.py:168
Function
test_market_field_default_and_factory_are_both_intact
Pin the mechanism, not just the observable effect. The recorded field default is what ``@dataclass`` wrote into ``__init__``; asserting on it
agent/tests/test_runtime_triggers.py:202
Method
test_market_fills_use_execution_open_and_taker_rate
(self)
agent/tests/test_crypto_engine.py:590
Function
test_market_gate_open_when_any_market_trigger_is_open
()
agent/tests/test_runtime_runner.py:662
Method
test_market_id_resolves_to_first_outcome_token
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:858
Function
test_market_is_open_wrapper_delegates_to_pure_core
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_runtime_triggers.py:323
Function
test_market_mismatch_between_data_and_request_fails_loud
()
agent/tests/test_paper_trade_validation.py:126
Function
test_market_missing_labels_is_an_error
()
agent/tests/quantlib/test_eventstudy.py:493
Function
test_market_model_recovers_known_alpha_and_beta
()
agent/tests/quantlib/test_eventstudy.py:35
Function
test_market_order_ignores_the_limit_path
()
agent/tests/test_limit_price_notional.py:59
Method
test_market_order_must_not_carry_a_price
(self)
agent/tests/test_paper_order_lifecycle.py:52
Function
test_market_order_without_limit_fills_regardless_of_direction
()
agent/tests/test_paper_trade_limits.py:135
Method
test_market_override_is_case_insensitive
(self, value)
agent/tests/test_etf_holdings_tool.py:1118
Function
test_market_risk_frame_allows_no_bracket_schedule
A -PERP fetch without a bracket artifact still yields a usable frame for execution/mark/funding-only consumers — schedule is optional.
agent/tests/test_perpetual_risk.py:207
Function
test_market_rules_follow_the_bare_symbol
(code: str, market: str)
agent/tests/test_local_prefix_routing.py:88
Function
test_market_sell_fills_at_the_first_continuous_bar
()
agent/tests/test_paper_trade_5m_engine.py:223
Method
test_market_sell_priced_at_bid
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:661
Function
test_market_sensitive_skill_waits_for_prior_identity_batch
Workflow selection cannot race the resolver in the same assistant turn.
agent/tests/test_agent_grounding.py:435
Function
test_market_trigger_rejects_unknown_market
()
agent/tests/test_runtime_triggers.py:158
Function
test_market_trigger_skips_tick_when_market_closed
()
agent/tests/test_runtime_runner.py:632
Function
test_market_trigger_ticks_when_market_open
()
agent/tests/test_runtime_runner.py:647
Function
test_market_trigger_without_market_raises
()
agent/tests/test_runtime_triggers.py:163
Function
test_market_watch_cadence_defaults_when_nonpositive
()
agent/tests/test_runtime_runner.py:479
Function
test_market_watch_cadence_is_operator_configurable
()
agent/tests/test_runtime_runner.py:451
Method
test_market_without_tokens_is_reported
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:979
Function
test_marketable_limit_inside_the_band_still_fills
()
agent/tests/test_paper_trade_limits.py:159
Function
test_markov_expected_durations_track_the_true_segment_lengths
()
agent/tests/quantlib/test_timeseries.py:780
Function
test_markov_identifies_the_regime_the_series_ends_in
()
agent/tests/quantlib/test_timeseries.py:789
Function
test_markov_raises_an_actionable_error_when_statsmodels_is_absent
()
agent/tests/quantlib/test_timeseries.py:832
Function
test_markov_regime_recovers_known_volatilities
()
agent/tests/quantlib/test_timeseries.py:730
Function
test_markov_regimes_are_ordered_calmest_first_regardless_of_fit_order
()
agent/tests/quantlib/test_timeseries.py:740
Function
test_markov_rejects_a_series_too_short_to_mean_anything
()
agent/tests/quantlib/test_timeseries.py:827
Function
test_markov_rejects_a_single_regime
()
agent/tests/quantlib/test_timeseries.py:820
Function
test_markov_smoothed_probabilities_are_a_distribution_on_the_input_index
()
agent/tests/quantlib/test_timeseries.py:799
Function
test_markov_smoothed_probabilities_track_the_true_state
()
agent/tests/quantlib/test_timeseries.py:810
Function
test_markov_transition_matrix_is_row_stochastic
()
agent/tests/quantlib/test_timeseries.py:757
Function
test_markov_transition_rows_read_from_today_to_tomorrow
()
agent/tests/quantlib/test_timeseries.py:767
Function
test_mask_false_bar_keeps_position_quantity_unchanged
()
agent/tests/test_rebalance_mask.py:61
Function
test_mask_is_rejected_with_hold_mode
()
agent/tests/test_rebalance_mask.py:114
Function
test_mask_true_bar_partially_resizes_same_direction_position
()
agent/tests/test_rebalance_mask.py:70
Function
test_mask_true_zero_target_explicitly_exits_position
()
agent/tests/test_rebalance_mask.py:81
Function
test_mask_without_trading_date_intersection_is_rejected
()
agent/tests/test_rebalance_mask.py:156
Method
test_match_commands_surfaces_in_typeahead
The completer ranks via match_commands — the connector group must appear.
agent/tests/test_cli_runtime.py:419
Method
test_match_commands_surfaces_them
(self)
agent/tests/test_institutional_commands.py:158
Method
test_match_prefix
(self)
agent/tests/test_cli_interactive.py:48
Method
test_match_returns_empty_for_non_slash
(self)
agent/tests/test_cli_interactive.py:61
Method
test_match_subsequence
(self)
agent/tests/test_cli_interactive.py:54
Function
test_matched_order_and_position
Recorded order still open + recorded position unchanged == all matched.
agent/tests/test_runtime_reconcile.py:103
Method
test_matches_cadence_rejects_year_to_date_at_both_cadences
(self)
agent/tests/test_sec_period_frames.py:100
Method
test_matches_polyfit
(self, random_df, n)
agent/tests/test_factor_operators.py:286
Function
test_matches_the_published_excel_xirr_example
Microsoft's documented XIRR worked example returns 0.373362535.
agent/tests/quantlib/test_fundmath.py:157
Method
test_matches_utc_midnight
(self)
agent/tests/test_yahoo_loader.py:183
Method
test_matching_declaration_keeps_the_per_source_table
A correctly served run keeps the trading-day table it always had, rather than drifting to a count measured off its own window.
agent/tests/test_cross_market_annualization.py:154
Method
test_matching_demo_account_passes
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:479
Function
test_matching_header_is_trusted_regardless_of_position
A forged header above the real one must not shadow it -- the real provider's header is found by identity, not by being first. This is the case
agent/tests/test_email_authentication_results.py:86
Method
test_matching_is_case_insensitive
(self)
agent/tests/quantlib/test_options.py:430
Function
test_matching_isolated_snapshot_compares_position_collateral
()
agent/tests/test_binance_account_reconciliation.py:213
Function
test_matching_nonfinite_weights_do_not_bypass_weight_sum_guard
(bad: float)
agent/tests/quantlib/test_attribution_nonfinite.py:12
Function
test_matching_snapshot_completes_comparison_without_validation_claim
()
agent/tests/test_binance_account_reconciliation.py:188
Function
test_matrix_and_regime_use_same_snapshot_and_surface_coverage
(monkeypatch)
agent/tests/test_analysis_reliability.py:67
Method
test_matrix_is_symmetric
(self)
agent/tests/test_correlation.py:259
Function
test_max_boundary_history_response_stays_parseable_after_agent_truncation
200 rows x 50 stocks is the widest request the schema allows.
agent/tests/test_taiwan_stock_data_tool.py:669
Function
test_max_drawdown_counts_the_drop_from_initial_cash
()
agent/tests/test_options_portfolio_correctness.py:268
Function
test_max_drawdown_drops_nan_and_keeps_the_surviving_index_labels
()
agent/tests/quantlib/test_risk.py:294
Function
test_max_drawdown_falls_back_to_observed_peak_without_valid_initial_cash
()
agent/tests/test_options_portfolio_correctness.py:294
Function
test_max_drawdown_finds_the_hand_built_peak_trough_and_recovery
()
agent/tests/quantlib/test_risk.py:236
Function
test_max_drawdown_is_reported_as_a_positive_fraction
()
agent/tests/quantlib/test_risk.py:159
Method
test_max_drawdown_negative
(self)
agent/tests/test_metrics.py:372
Function
test_max_drawdown_of_a_monotonically_rising_curve_is_zero
()
agent/tests/quantlib/test_risk.py:276
Function
test_max_drawdown_on_hand_built_curve
()
agent/tests/test_risk_xray.py:118
Function
test_max_drawdown_picks_the_deepest_of_two_drawdowns
()
agent/tests/quantlib/test_risk.py:266
Function
test_max_drawdown_recovery_needs_the_peak_value_not_a_partial_bounce
()
agent/tests/quantlib/test_risk.py:255
Function
test_max_drawdown_rejects_an_all_nan_series
()
agent/tests/quantlib/test_risk.py:318
Function
test_max_drawdown_rejects_non_positive_equity
()
agent/tests/quantlib/test_risk.py:323
Function
test_max_drawdown_seeds_initial_cash_on_a_single_bar
()
agent/tests/test_options_portfolio_correctness.py:278
← previous
next →
20,601–20,700 of 26,887, ranked by callers