MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

Functiontest_only_the_order_symbol_is_requested_from_the_5m_leg
()
agent/tests/test_paper_trade_5m_tool.py:260
Functiontest_only_the_readonly_profile_can_back_a_portfolio_connection
()
agent/tests/test_robinhood_portfolio_source.py:99
Functiontest_only_the_short_leg_is_charged
()
agent/tests/test_factor_costs.py:128
Methodtest_only_true_buckets_are_mapped
(self)
agent/tests/test_wallex_loader.py:90
Functiontest_oos_boundary_with_no_usable_alpha_rows_returns_error
( monkeypatch: pytest.MonkeyPatch, boundary: str, )
agent/tests/factors/test_bench_strict.py:320
Functiontest_oos_train_test_split_does_not_double_count_boundary
Regression for A1: ``.loc[:t]`` and ``.loc[t:]`` both inclusive.
agent/tests/factors/test_bench_strict.py:388
Methodtest_open_event_is_unresolved
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:463
Methodtest_open_inside_band_is_fillable
(self)
agent/tests/test_composite_market_rules.py:78
Methodtest_open_mark_liquidation_blocks_same_bar_reopen
(self)
agent/tests/test_crypto_engine.py:654
Methodtest_open_market_trading_above_the_floor_is_not_settled
115 of 400 sampled OPEN markets priced >= 0.99. A price is not a payout.
agent/tests/test_prediction_market_tool.py:367
Methodtest_open_orders_lists_only_active_ones
(self)
agent/tests/test_paper_order_lifecycle.py:211
Functiontest_open_signal_exit_precedes_close_based_liquidation
()
agent/tests/test_execution_causality.py:85
Functiontest_open_trading_day_is_true
(cn_a_client: FakeCalendarClient)
agent/tests/test_paper_trade_calendar.py:54
Methodtest_open_uses_taker
(self)
agent/tests/test_crypto_engine.py:223
Functiontest_openai_base_url_env_overrides_catalog_default
(monkeypatch)
agent/tests/test_llm_provider_defaults.py:168
Methodtest_openai_codex_provider_does_not_map_oauth_token_to_api_key
(self)
agent/tests/test_llm.py:172
Functiontest_openai_compat_agenerate_temperature_self_heals
The async generate path mirrors the sync temperature self-heal.
agent/tests/test_llm.py:645
Functiontest_openai_compat_stream_temperature_self_heals_and_is_remembered
A streaming 400 on `temperature` retries without it; later streams skip it.
agent/tests/test_llm.py:598
Functiontest_openai_compat_temperature_preserved_for_supported_model
Models that accept `temperature` keep it; nothing is remembered.
agent/tests/test_llm.py:560
Functiontest_openai_compat_temperature_self_heal_drops_and_retries
A 400 on `temperature` gets one retry without it, remembered for later calls.
agent/tests/test_llm.py:513
Methodtest_openai_default
(self)
agent/tests/test_llm.py:164
Methodtest_openai_does_not_inject_empty_reasoning_content
Strict Kimi continuation fields must not leak into OpenAI payloads.
agent/tests/test_kimi_reasoning_content.py:671
Methodtest_openai_host_receives_the_field
No override means the request really does reach api.openai.com.
agent/tests/test_llm_reasoning_effort.py:186
Functiontest_openalex_batch_failure_falls_back_to_one_request_per_id
()
agent/tests/test_research_papers_tool.py:626
Functiontest_openalex_carries_the_record_update_stamp
()
agent/tests/test_research_papers_tool.py:644
Functiontest_openalex_mailto_is_env_driven_and_absent_by_default
(monkeypatch)
agent/tests/test_research_papers_tool.py:676
Functiontest_openalex_non_json_body_becomes_an_error_envelope
()
agent/tests/test_research_papers_tool.py:696
Functiontest_openalex_read_batches_ids_into_one_request
()
agent/tests/test_research_papers_tool.py:568
Functiontest_openalex_record_without_an_abstract_extracts_nothing
()
agent/tests/test_research_papers_tool.py:661
Functiontest_openalex_search_reconstructs_the_inverted_abstract
()
agent/tests/test_research_papers_tool.py:540
Functiontest_openalex_splits_work_ids_and_dois_into_separate_batches
()
agent/tests/test_research_papers_tool.py:598
Functiontest_openbb_origin_is_not_trusted_by_default
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_openbb_bridge/test_cors_opt_in.py:17
Methodtest_opencode_providers_use_openai_compatible_env
(self, provider: str)
agent/tests/test_llm.py:80
Functiontest_openrouter_async_stream_ignores_non_ascii_ambient_headers
The async provider path used by API sessions must apply the same isolation.
agent/tests/test_provider_header_isolation.py:126
Methodtest_openrouter_field_name_reasoning_maps_to_reasoning_content
OpenRouter relays Kimi/DeepSeek with delta.reasoning (not reasoning_content). All variants must normalize to additional_kwargs["reasoning_con
agent/tests/test_kimi_reasoning_content.py:412
Functiontest_openrouter_ignores_non_ascii_ambient_openai_headers
OpenRouter must not inherit OpenAI-only headers from the host process.
agent/tests/test_provider_header_isolation.py:44
Methodtest_openrouter_keeps_extra_body_and_no_top_level_field
(self)
agent/tests/test_llm_reasoning_effort.py:577
Functiontest_openrouter_suggests_current_flash_without_switching_default
()
agent/tests/test_llm_provider_defaults.py:229
Methodtest_openrouter_with_deepseek_model_returns_openrouter_key
(self)
agent/tests/test_llm.py:1001
Functiontest_opens_on_negative_price_bar_when_allowed
()
agent/tests/test_nonpositive_prices.py:153
Methodtest_optimize_preserves_sign
Optimizer should preserve signal direction (long/short).
agent/tests/test_mean_variance_optimizer.py:14
Methodtest_optimize_preserves_sign
Optimizer should preserve signal direction (long/short).
agent/tests/test_risk_parity.py:93
Functiontest_optimizer_window_excludes_decision_bar
()
agent/tests/test_optimizer_causality.py:45
Methodtest_option_form_requires_an_assignment
(self)
agent/tests/test_playbooks_surface.py:727
Functiontest_option_order_has_no_supported_order_intent
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:158
Functiontest_option_order_is_pinned_write_even_if_server_marks_it_readonly
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:152
Functiontest_option_order_tool_is_gate_wrapped
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:172
Methodtest_option_type_is_case_insensitive
(self, alias: str)
agent/tests/quantlib/test_options.py:382
Functiontest_optional_arguments_can_be_omitted_and_required_ones_still_arrive
()
agent/tests/test_openai_codex_tool_schema.py:87
Methodtest_optional_int_still_enforces_its_positive_constraint
(self, monkeypatch, value)
agent/tests/test_env_schema.py:259
Functiontest_optional_sinks_skipped_when_absent_backward_compat
Backward compat: write_live_action(event) with no kwargs still works and writes ONLY the ledger (no trace, no callback).
agent/tests/test_audit_redact.py:272
Functiontest_optional_source_never_calls_network_without_token
(client, monkeypatch)
agent/tests/test_shannon_routes.py:89
Functiontest_optional_string_list_is_coerced
run_shadow_backtest.markets as a JSON string must not fail validation.
agent/tests/test_mcp_json_string_args.py:123
Functiontest_optional_tool_is_discovered
(monkeypatch)
agent/tests/test_gildata_fin_query.py:162
Functiontest_options_backtest_cross_market_none_prices_on_causal_cadence
``bars_per_year=None`` must reach pricing too, not just the metrics.
agent/tests/test_options_hv_bars_per_year.py:199
Functiontest_options_backtest_prices_the_leg_on_the_run_cadence
End to end: a 365-bar run must fill at the 365-annualised vol. This is the defect the unit tests above cannot catch on their own -- the facto
agent/tests/test_options_hv_bars_per_year.py:174
Functiontest_options_backtest_writes_run_card
(tmp_path: Path)
agent/tests/test_run_card.py:262
Functiontest_options_engine_no_warnings_yields_empty
End-to-end: options engine without content_filter_warnings produces empty warnings.
agent/tests/test_run_card_content_filter.py:136
Functiontest_options_engine_surfaces_content_filter_warnings
End-to-end: options engine passes config content_filter_warnings to run_card.
agent/tests/test_run_card_content_filter.py:71
Methodtest_options_metrics
(self)
agent/tests/test_cross_market_annualization.py:80
Methodtest_options_metrics_on_the_runs_date_string_index
(self)
agent/tests/test_cross_market_annualization.py:90
Functiontest_options_metrics_see_the_first_bar_loss
()
agent/tests/test_period_returns.py:70
Functiontest_options_pricing_rejects_unusable_spot
A missing/malformed required argument returns an error envelope.
agent/tests/test_tools_type_value_safety.py:206
Methodtest_oracle_final_status_resolves_and_names_the_winner
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:312
Functiontest_orchestrator_catches_exception
()
agent/tests/test_advisory.py:257
Methodtest_order_check_failure_blocks_send
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:683
Methodtest_order_classification_forex_and_cfd
(self)
agent/tests/test_mt5_connector.py:964
Functiontest_order_ops_write_pinned_via_registry
Every broker's order op resolves WRITE through the shared classifier.
agent/tests/test_sdk_connectors.py:1030
Functiontest_order_path_fails_closed_at_the_intent_step
A hand-enabled Scalable order is refused before any remote call. This exercises the gate's no-extractor branch, which had no test before this
agent/tests/test_scalable_connector.py:319
Functiontest_order_path_previews_are_pinned_write
A preview mutates nothing, but it is on the order path — not a read.
agent/tests/test_scalable_connector.py:164
Functiontest_order_placing_tools_are_never_exposed_via_mcp
Order placement / cancellation must never appear on the MCP surface.
agent/tests/test_mcp_new_tools.py:179
Methodtest_order_sizing_does_not_depend_on_symbol_order
(self)
agent/tests/test_china_futures_engine.py:391
Functiontest_order_to_dict_tolerates_empty_string_numerics
``_order_to_dict`` must not crash on empty-string qty/prc fields.
agent/tests/test_shoonya_empty_string_numeric.py:139
Functiontest_order_tools_absent_with_seed_allowlist
The seeded READ-only allowlist keeps WRITE tools out of the registry.
agent/tests/test_readonly_default.py:196
Functiontest_order_tools_appear_gate_wrapped_when_allowlisted
(live_runtime: Path)
agent/tests/test_readonly_default.py:211
Functiontest_order_waits_for_limit_to_reopen
()
agent/tests/test_paper_trade_5m_engine.py:446
Methodtest_orders_floor_to_whole_lots
(self)
agent/tests/test_vietnam_equity_engine.py:70
Functiontest_orders_mode_cn_a_federated_leaves_runtime_root_and_cwd_byte_identical
( controlled_cwd: Path, )
agent/tests/test_paper_trade_purity.py:167
Functiontest_orders_mode_fill_reason_stays_empty
()
agent/tests/test_paper_trade_strategy_path.py:525
Functiontest_orders_mode_multi_day_range_is_invalid_request_material
()
agent/tests/test_paper_trade_validation.py:82
Functiontest_orders_mode_multiday_is_invalid_request
()
agent/tests/test_paper_trade_tool.py:247
Functiontest_orders_mode_never_consults_strategy_universe
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_paper_trade_tool.py:333
Functiontest_orders_mode_reason_is_the_empty_string
()
agent/tests/test_paper_trade_schema.py:272
Functiontest_orders_mode_returns_the_success_document
()
agent/tests/test_paper_trade_tool.py:146
Functiontest_orders_mode_reversed_range_is_also_invalid_request
()
agent/tests/test_paper_trade_validation.py:98
Functiontest_orders_mode_us_leaves_runtime_root_and_cwd_byte_identical
(controlled_cwd: Path)
agent/tests/test_paper_trade_purity.py:149
Functiontest_orders_refused_before_network
(monkeypatch, operation)
agent/tests/test_mstock_connector.py:32
Functiontest_ordinary_activity_size_is_accepted
()
agent/tests/test_msteams_inbound_body_limit.py:22
Functiontest_ordinary_price_rounding_is_unchanged
()
agent/tests/test_technical_indicator_small_price_rounding.py:54
Functiontest_ordinary_research_objectives_are_accepted
(objective: str)
agent/tests/test_goal_policy.py:32
Functiontest_ordinary_text_and_all_sheets_keep_their_contract
(tmp_path, monkeypatch)
agent/tests/test_doc_reader_excel_literal_text.py:52
Functiontest_origin_allowed_matches_allow_list
()
agent/tests/test_mcp_host_origin_guard.py:84
Functiontest_origin_allowed_missing_origin_is_allowed
()
agent/tests/test_mcp_host_origin_guard.py:77
Functiontest_origin_allowed_rejects_foreign_and_unparseable
()
agent/tests/test_mcp_host_origin_guard.py:90
Functiontest_origin_allowed_supports_wildcard
()
agent/tests/test_mcp_host_origin_guard.py:98
Functiontest_origin_format_uses_session_destination
(monkeypatch)
agent/tests/test_scheduled_research_confirmation.py:261
Functiontest_original_keys_are_kept
()
agent/tests/test_futu_position_cost_bases.py:107
Functiontest_original_variant_uses_the_1968_coefficients
()
agent/tests/quantlib/test_credit.py:56
Functiontest_ornstein_uhlenbeck_input_validation
()
agent/tests/quantlib/test_timeseries.py:893
Functiontest_ornstein_uhlenbeck_random_walk_reports_non_reverting
()
agent/tests/quantlib/test_timeseries.py:882
← previousnext →21,801–21,900 of 26,887, ranked by callers