MCPcopy Create free account

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

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

Functiontest_normalize_host_handles_ipv6_forms
()
agent/tests/test_mcp_host_origin_guard.py:64
Functiontest_normalize_host_strips_port_and_lowercases
()
agent/tests/test_mcp_host_origin_guard.py:58
Functiontest_normalize_joined_crypto_pairs
A joined crypto pair (no separator) normalizes to its dashed form.
agent/tests/test_agent_grounding.py:604
Functiontest_normalize_kind_collapses_separators
()
agent/tests/test_entities_spine.py:169
Functiontest_normalize_mcp_tool_schema_collapses_nested_type_list_with_null
type: ["string", "null"] at any nesting level must collapse to type: "string".
agent/tests/test_mcp_client_adapter.py:718
Functiontest_normalize_mcp_tool_schema_collapses_nullable_object
()
agent/tests/test_mcp_client_adapter.py:130
Functiontest_normalize_mcp_tool_schema_preserves_top_level_one_of_branches
()
agent/tests/test_mcp_client_adapter.py:163
Functiontest_normalize_mcp_tool_schema_recovers_from_malformed_properties
A non-dict top-level ``properties`` (malformed remote schema) must still end up with the documented ``properties: {}`` fallback, not no key at all
agent/tests/test_mcp_client_adapter.py:151
Functiontest_normalize_mcp_tool_schema_strips_null_from_any_of_branches
anyOf with a null-only branch should have that branch removed.
agent/tests/test_mcp_client_adapter.py:695
Functiontest_normalize_result_adds_the_quote_view_and_keeps_the_raw_reply
()
agent/tests/test_robinhood_mcp_mapping.py:293
Functiontest_normalize_result_adds_the_view_and_keeps_the_raw_reply
()
agent/tests/test_robinhood_mcp_mapping.py:198
Functiontest_normalize_result_leaves_error_envelopes_and_unmapped_operations_alone
()
agent/tests/test_robinhood_mcp_mapping.py:217
Functiontest_normalize_result_marks_an_unmappable_reply_instead_of_failing_the_read
()
agent/tests/test_robinhood_mcp_mapping.py:209
Functiontest_normalize_side
(raw: str, expected: str)
agent/tests/test_trade_journal.py:106
Functiontest_normalize_side_dividend_tokens
(raw: str)
agent/tests/test_trade_journal.py:131
Functiontest_normalize_side_rejects_missing_or_unknown
(raw: object)
agent/tests/test_trade_journal.py:111
Functiontest_normalize_usage_keeps_cache_details
()
agent/tests/test_anthropic_prompt_cache.py:189
Functiontest_normalize_usage_without_details_is_unchanged
()
agent/tests/test_anthropic_prompt_cache.py:222
Functiontest_normalize_venue_prefixed_symbols
A Futu-style venue prefix normalizes onto the canonical suffix form.
agent/tests/test_agent_grounding.py:3534
Functiontest_normalized_contract
(change, reason)
agent/tests/test_loader_health.py:77
Methodtest_normalizes
(self, raw: str, expected: str)
agent/tests/test_mt5_loader.py:118
Methodtest_normalizes
(self, raw: str, expected: str)
agent/tests/test_mt5_connector.py:242
Methodtest_normalizes_aliases
(self, raw: str, expected: str)
agent/tests/test_nobitex_loader.py:84
Methodtest_normalizes_aliases
(self, raw: str, expected: str)
agent/tests/test_wallex_loader.py:85
Methodtest_normalizes_none_content_on_assistant_messages
LangChain serializes AIMessage(content='', tool_calls=[...]) as content=null; Moonshot kimi-k2.6 rejects that, so we normalize to ''.
agent/tests/test_kimi_reasoning_content.py:509
Methodtest_normalizes_redundant_segments
(self, tmp_path: Path)
agent/tests/test_path_safety.py:42
Functiontest_northbound_passes_through_million_yuan_with_semantics_note
No ×100 rescale: post-2024-08-19 rows are turnover in million CNY (HKEX-verified, issue #1481); a constant factor cannot serve both eras, so v
agent/tests/test_tushare_fallbacks.py:79
Functiontest_not_found_identity_allows_private_company_workflow
A clean multi-source not-found result keeps genuine private research usable.
agent/tests/test_agent_grounding.py:977
Functiontest_not_halted_when_no_sentinel
(live_runtime: Path)
agent/tests/test_halt.py:24
Functiontest_not_ready_materializes_as_in_band_error_envelope
()
agent/tests/test_paper_trade_readiness.py:160
Functiontest_note2_historical_split_in_lookback_never_fires
()
agent/tests/test_paper_trade_corporate_actions.py:360
Functiontest_nothing_is_invented_for_a_paper_that_states_nothing
()
agent/tests/test_research_papers_tool.py:459
Methodtest_nothing_parseable_yields_none
(self)
agent/tests/test_strategy_discovery_decay.py:77
Functiontest_nothing_resolved_is_an_error_envelope
A fetch where no symbol returned data must not read as success. ``{"_unresolved": [...]}`` alone classified as a successful call, so the loop
agent/tests/test_get_market_data_unresolved.py:99
Functiontest_nothing_to_do_does_not_latch_and_rechecks
(live_root: Path)
agent/tests/test_sweep_latch.py:211
Functiontest_notice_content_never_echoes_config_values
Planbook test 5: the notice is a fixed string — no config value appears.
agent/tests/test_channel_reset_notice.py:270
Methodtest_notification_is_delivered_once_across_repeated_drains
(self)
agent/tests/test_background_scope_isolation.py:172
Methodtest_notional_below_min_volume_errors
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:708
Functiontest_notional_exceeding_full_depth_on_both_sides_reports_partial_both_ways
Symmetric to the buy-side depth-exceeded case, but exercised on sell too.
agent/tests/test_orderbook_depth_tool.py:312
Methodtest_notional_guard_blocks_before_sdk
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:695
Methodtest_notional_over_symbol_max_volume_errors
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:728
Functiontest_notional_quantity_bypass_is_closed
H3: an order carrying a tiny notional but a huge quantity is enforced on the quantity-implied notional, so it is NOT waved through.
agent/tests/test_mandate_enforcement.py:618
Methodtest_notional_sizing_floors_to_volume_step
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:702
Functiontest_novita_capabilities_use_generic_openai_path
Novita AI rides the plain OpenAI-compatible path with no capability flags.
agent/tests/test_provider_diagnostics.py:82
Functiontest_now_ms_is_utc_epoch_ms
()
agent/tests/test_runtime_triggers.py:341
Functiontest_npv_at_the_solved_rate_is_zero
()
agent/tests/quantlib/test_fundmath.py:112
Functiontest_null_and_non_numeric_trade_pnl_handled_safely
Trades containing pnl: None or non-numeric strings must not raise TypeError.
agent/tests/test_options_portfolio_correctness.py:124
Functiontest_null_patterns_means_all
(run_dir: Path)
agent/tests/test_pattern_tool_argument_coercion.py:57
Functiontest_null_window_uses_default
(run_dir: Path)
agent/tests/test_pattern_tool_argument_coercion.py:32
Functiontest_nullable_title_is_a_valid_result
(adapter)
agent/tests/test_parallel_search.py:232
Functiontest_number_gaps_and_counter_width_do_not_overwrite_history
(tmp_path, number)
agent/tests/test_governance_rotation_boundaries.py:17
Functiontest_numbers_reads_each_localized_number_as_one_figure
( text: str, expected: list[str] )
agent/tests/test_grounding_numeric_locale_rounding.py:83
Functiontest_numeric_coercion
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:360
Functiontest_numeric_gate_validates_derived_formula_and_provenance
A derived entry level must calculate correctly from observed evidence.
agent/tests/test_agent_grounding.py:1240
Methodtest_numeric_id_uses_path_lookup
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:601
Methodtest_numeric_pick_calls_commit_not_model
(self)
agent/tests/test_cli_live.py:518
Functiontest_numeric_string_window_is_accepted
(run_dir: Path)
agent/tests/test_pattern_tool_argument_coercion.py:38
Methodtest_numeric_strings_are_accepted_not_rejected
LLM tool calls routinely send "10" for an integer field.
agent/tests/test_prediction_market_tool.py:262
Functiontest_numerically_equal_direction_is_accepted
1.0 and True equal 1, so the membership test accepts them; that is intended.
agent/tests/quantlib/test_impact.py:166
Methodtest_numpy_scalars_from_public_validators_are_strict_json
( self, tmp_path: Path )
agent/tests/test_validation.py:390
Functiontest_nvidia_build_passes_only_capability_headers
NVIDIA's preset must reach ChatOpenAI without secret duplication.
agent/tests/test_provider_diagnostics.py:209
Functiontest_nvidia_is_available_in_both_cli_onboarding_surfaces
()
agent/tests/test_llm_provider_defaults.py:115
Functiontest_nvidia_provider_uses_bearer_auth_with_compatibility_user_agent
NVIDIA needs a provider UA preset, not a duplicate secret header.
agent/tests/test_provider_diagnostics.py:198
Functiontest_oauth_config_round_trip_snake_and_camel
()
agent/tests/test_mcp_oauth_schema.py:49
Functiontest_oauth_requires_https
()
agent/tests/test_mcp_oauth_schema.py:148
Functiontest_object_positions_get_the_same_sign
()
agent/tests/test_alpaca_position_sign.py:48
Functiontest_observed_passes_on_evidence_and_fails_off_it
(tmp_path: Path)
agent/tests/test_grounding_figures_contract.py:411
Functiontest_observed_sums_and_declared_multipliers_still_derive
( tmp_path: Path, prose: str, row: str, parameter: str | None )
agent/tests/test_grounding_role_hardening.py:244
Functiontest_observed_with_a_ref_is_scoped_to_that_call
A ref is the tightest scoping there is, and it cuts both ways.
agent/tests/test_grounding_figures_contract.py:424
Methodtest_odd_lot_volume_keeps_fractional_lots
(self)
agent/tests/test_baostock_loader.py:135
Methodtest_of_suffix_uppercased
(self)
agent/tests/test_fund_nav_tool.py:79
Methodtest_off_grid_base_price_is_rounded_up
Adjusted (Naver-rebased) closes need not sit on a tick.
agent/tests/test_korea_equity_engine.py:202
Functiontest_off_mask_zero_target_keeps_position_open
()
agent/tests/test_rebalance_mask.py:92
Functiontest_offline_contract_agrees_with_health_lane
(fault)
agent/tests/test_loader_contract.py:65
Functiontest_offline_run_fetches_the_declared_benchmark_through_its_own_loader
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_offline_benchmark.py:124
Functiontest_offset_paging_walk_is_lossless
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:134
Functiontest_offset_past_end_returns_empty_page
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:154
Functiontest_offsetless_frontmatter_timestamp_is_read_as_utc
Writers stamp ``time.gmtime()`` with no offset; reading it back must not shift it by the host's UTC offset.
agent/tests/test_persistent_memory.py:668
Methodtest_ohlc_are_scaled_by_the_same_ratio
(self)
agent/tests/test_alpha_bench_qfq.py:72
Functiontest_ohlcv_code_maps_to_artifacts_file
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:477
Methodtest_ohlcv_columns
(self)
agent/tests/test_futu_loader.py:143
Functiontest_ohlcv_glob_ignores_other_artifacts
(summary_run_dir)
agent/tests/test_backtest_summary.py:401
Functiontest_ohlcv_glob_maps_every_code
(summary_run_dir)
agent/tests/test_backtest_summary.py:374
Functiontest_ohlcv_map_is_empty_without_files
(summary_run_dir)
agent/tests/test_backtest_summary.py:391
Functiontest_ohlcv_paths_skip_external_symlinks_and_directories
(summary_run_dir, tmp_path)
agent/tests/test_backtest_summary.py:490
Methodtest_ok_envelope_and_alpha_first_ordering
(self, tmp_path)
agent/tests/test_strategy_discovery_facade.py:209
Functiontest_ok_false_tool_envelope_is_failure
Business failures must not be recorded as successful tool calls (#886).
agent/tests/test_agent_grounding.py:192
Methodtest_ok_with_duration
(self)
agent/tests/test_cli_interactive.py:578
Functiontest_okx_account_details_are_adapted_to_spot_positions
()
agent/tests/test_portfolio_compatibility.py:79
Functiontest_okx_classification
()
agent/tests/test_sdk_connectors.py:587
Functiontest_okx_flag_mapping
()
agent/tests/test_sdk_connectors.py:573
Functiontest_okx_history_maps_candles_and_period
(monkeypatch)
agent/tests/test_sdk_connectors.py:1124
Functiontest_okx_invalid_profile_rejected
()
agent/tests/test_sdk_connectors.py:1007
Methodtest_okx_loader_validates_dates
OKX loader should raise on reversed dates before fetching.
agent/tests/test_engine_robustness.py:531
Functiontest_okx_order_result_rejects_failed_scode
()
agent/tests/test_sdk_order_gate.py:1001
Functiontest_okx_positions_business_error_returns_error_envelope
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:89
Functiontest_okx_positions_success_stays_ok
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:98
Functiontest_okx_redacts_secrets
()
agent/tests/test_sdk_connectors.py:579
Functiontest_okx_service_unconfigured
(monkeypatch, tmp_path)
agent/tests/test_sdk_connectors.py:593
Functiontest_okx_session_empty_without_proxy
(monkeypatch)
agent/tests/test_okx_loader_bounded.py:213
← previousnext →21,601–21,700 of 26,887, ranked by callers