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_plain_numbers_are_unchanged
(raw: str, expected: float)
agent/tests/test_trade_journal_parser_accounting_negatives.py:31
Function
test_plain_percentage_never_borrows_bare_cited_value
(value)
agent/tests/test_grounding_percentage_points.py:178
Function
test_plain_ref_fields_keep_the_fraction_reading
(tmp_path: Path)
agent/tests/test_grounding_unit_and_scanner_gaps.py:252
Function
test_plain_runner_emits_research_contract
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_research_contract_integration.py:92
Function
test_plain_text
(tmp_path: Path, ext: str)
agent/tests/test_doc_reader.py:27
Function
test_plain_tickers_unchanged
()
agent/tests/test_yfinance_symbol_map.py:17
Function
test_plaintext_result_secret_reaches_neither_trace_nor_preview
A non-JSON tool result used to be persisted and streamed verbatim.
agent/tests/test_redaction_shared.py:441
Function
test_plan_level_alone_reaches_a_valid_answer
A proposed level passes inside the observed range, or with a derivation. This replaces the prospective-level mask, which exempted any number a
agent/tests/test_agent_grounding.py:1810
Function
test_plan_level_mask_does_not_shield_a_wrong_quote_end_to_end
The end-to-end gate still rejects a fabricated quote beside a plan level.
agent/tests/test_agent_grounding.py:1798
Function
test_plan_only_is_rejected
()
agent/tests/test_swarm_output_contract.py:63
Function
test_platform_token_inside_url_userinfo_is_redacted
(token: str)
agent/tests/test_redaction_platform_tokens.py:26
Function
test_playbook_rest_persists_email_format
(client, rest_store, configured_destinations, fmt)
agent/tests/test_playbooks_surface.py:804
Function
test_playbook_rest_rejects_nonemail_format
(client, rest_store, configured_destinations, ref)
agent/tests/test_playbooks_surface.py:814
Function
test_playbook_route_creates_playbook_sourced_job
( client: TestClient, store: ScheduledResearchJobStore )
agent/tests/scheduling/test_system_job_protection.py:350
Function
test_playbook_route_rejects_system_id_with_400
( client: TestClient, store: ScheduledResearchJobStore )
agent/tests/scheduling/test_system_job_protection.py:335
Method
test_plugin_overrides_builtin
A plugin with the same name as a builtin should override it.
agent/tests/test_ocr_engine.py:170
Function
test_pme_plus_refuses_a_missing_index_date
()
agent/tests/quantlib/test_fundmath.py:915
Function
test_pme_plus_refuses_no_contributions
()
agent/tests/quantlib/test_fundmath.py:909
Function
test_pme_plus_refuses_no_distributions
()
agent/tests/quantlib/test_fundmath.py:901
Function
test_pme_plus_scales_distributions_to_match_actual_nav
No NAV (fully realised): lambda = FV(contrib)/FV(dist) = 1500/2000 = 0.75. Scaled series: -1000 @ 2019-01-01, +1500 @ 2020-01-01 -> IRR = 0.5.
agent/tests/quantlib/test_fundmath.py:863
Function
test_pme_plus_with_a_terminal_nav
+600 realised, +700 NAV, both dated 2020-01-01. lambda = (FV(contrib) - FV(NAV)) / FV(dist) = (1500 - 700) / 600 = 4/3. Scaled distribution =
agent/tests/quantlib/test_fundmath.py:879
Function
test_pnl_ratio_never_divides_different_currencies
()
agent/tests/test_trade_journal_currency_pools.py:156
Function
test_point_in_time_filter_excludes_future_items
()
agent/tests/test_rsshub_events_provider.py:107
Method
test_points_are_ordered_oldest_first
(self)
agent/tests/test_sec_period_frames.py:249
Function
test_points_do_not_round_bare_declarations_or_accept_wrong_values
()
agent/tests/test_grounding_percentage_points.py:184
Function
test_policy_off_passes_bash_through_unchanged
(fake_cli, monkeypatch)
agent/tests/test_claude_cli_tool_policy.py:197
Function
test_pool_refcount_disconnects_on_last_release
disconnect() is called only when refcount reaches zero.
agent/tests/test_ibkr_local.py:321
Function
test_pool_release_idempotent_no_connection
Calling release on an empty pool is a no-op.
agent/tests/test_ibkr_local.py:346
Method
test_pop_in_settings_routes_no_warning
(self)
tools/test_ci_env_var_gate.py:190
Method
test_pop_outside_settings_routes
(self)
tools/test_ci_env_var_gate.py:181
Function
test_portfolio_displays_average_purchase_cost_not_diluted_cost
()
agent/tests/test_futu_position_cost_bases.py:146
Function
test_portfolio_exposure_is_the_weighted_sum
()
agent/tests/quantlib/test_factormodel.py:313
Function
test_portfolio_identical_to_benchmark_produces_zero_effects
A portfolio equal to the benchmark earns zero allocation, selection and interaction.
agent/tests/quantlib/test_attribution.py:131
Method
test_portfolio_metrics
(self)
agent/tests/test_cross_market_annualization.py:116
Function
test_portfolio_routes_are_readonly_and_return_expected_shapes
(monkeypatch)
agent/tests/test_portfolio_routes.py:46
Function
test_portfolio_settings_reject_trade_profiles
()
agent/tests/test_portfolio_config.py:50
Function
test_portfolio_settings_round_trip_without_credentials
(tmp_path)
agent/tests/test_portfolio_config.py:19
Function
test_portfolio_summary_allows_omitted_buying_power
()
agent/tests/test_robinhood_mcp_mapping.py:81
Function
test_portfolio_summary_keeps_finite_buying_power
(value)
agent/tests/test_robinhood_mcp_mapping.py:98
Function
test_portfolio_summary_preserves_unknown_buying_power
(buying_power)
agent/tests/test_robinhood_mcp_mapping.py:71
Function
test_portfolio_summary_reads_the_nested_data_object
()
agent/tests/test_robinhood_mcp_mapping.py:25
Function
test_portfolio_summary_refuses_a_missing_or_unreadable_total
(override: dict, message: str)
agent/tests/test_robinhood_mcp_mapping.py:46
Function
test_portfolio_summary_rejects_an_unmapped_buying_power_shape
(buying_power)
agent/tests/test_robinhood_mcp_mapping.py:62
Function
test_portfolio_summary_rejects_invalid_nested_buying_power
(value)
agent/tests/test_robinhood_mcp_mapping.py:89
Method
test_portfolio_total_matches_the_cover_page
Aggregated positions must reconcile to the filer's own reported total.
agent/tests/test_institutional_holdings_tool.py:535
Function
test_portfolio_transfer_signs_accept_holder_perspective
(kind, amount)
agent/tests/test_entities_spine.py:142
Function
test_portfolio_transfer_signs_follow_holder_perspective
(kind, amount, direction)
agent/tests/test_entities_spine.py:136
Method
test_position_adjustment_accepts_rebalance_and_rejects_unknown_mode
(self)
agent/tests/test_engine_robustness.py:346
Function
test_position_adjustment_rejects_unknown_mode
()
agent/tests/test_base_engine.py:119
Method
test_position_market_value_none_when_unpriceable
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:556
Method
test_position_matrix_shift
position[t] = signal[t-1] — next-bar-open semantics.
agent/tests/test_signal_alignment_perf.py:336
Function
test_position_rejects_invalid_quantity
(quantity: float)
agent/tests/test_perpetual_risk.py:167
Function
test_position_rows_map_symbol_quantity_and_cost
()
agent/tests/test_robinhood_mcp_mapping.py:105
Function
test_position_rows_refuse_what_is_not_a_whole_account
(envelope: dict, message: str)
agent/tests/test_robinhood_mcp_mapping.py:152
Method
test_position_size_is_forwarded
(self, runs_root: Path)
agent/tests/test_strategy_discovery_refresh.py:153
Method
test_position_size_is_resolved_per_regime_not_blended_across_run
( self, tmp_path )
agent/tests/test_strategy_discovery_harness.py:564
Method
test_position_ticket_closed_with_opposite_deal
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:787
Function
test_position_uses_signed_quantity_and_never_stores_mark_price
()
agent/tests/test_perpetual_risk.py:150
Function
test_positions_across_pages_become_one_whole_account
(tmp_path, broker: _Broker)
agent/tests/test_robinhood_portfolio_source.py:228
Function
test_positions_are_priced_through_get_equity_quotes
(tmp_path, broker: _Broker)
agent/tests/test_robinhood_portfolio_source.py:128
Function
test_positions_are_serialized
(fake_ib_async)
agent/tests/test_ibkr_local.py:126
Function
test_positions_artifact_reports_fills_not_blocked_targets
(tmp_path)
agent/tests/test_base_engine.py:645
Method
test_positions_carry_usd_market_value
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:539
Method
test_positions_do_not_change_existing_metrics
(self)
agent/tests/test_metrics.py:598
Function
test_positions_mixed_empty_and_valid_values
A mix of empty and valid fields must parse correctly.
agent/tests/test_shoonya_empty_string_numeric.py:158
Method
test_positions_normalized
Sum of abs(weights) should be <= 1.0 per row.
agent/tests/test_base_engine.py:806
Function
test_positions_only_5m_step_issues_no_5m_fetch_and_advances_nav
()
agent/tests/test_paper_trade_5m_tool.py:239
Function
test_positions_sectors_cache_hit_makes_zero_network_calls
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:177
Function
test_positions_sectors_corrupt_cache_recomputes
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:218
Function
test_positions_sectors_happy_path
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:98
Function
test_positions_sectors_refresh_bypasses_cache
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:202
Function
test_positions_tool_returns_json
(fake_ib_async)
agent/tests/test_ibkr_local.py:165
Method
test_positive_drift_mostly_positive
Equity with positive drift should have high prob_positive.
agent/tests/test_validation.py:164
Function
test_positive_frames_are_bit_identical_to_pct_change
()
agent/tests/test_nonpositive_returns.py:59
Function
test_positive_limit_is_accepted
()
agent/tests/test_cli_limit_validation.py:28
Function
test_positive_price_keeps_its_upside
()
agent/tests/test_financial_rigor_three_scenario_undefined_upside.py:28
Function
test_positive_series_are_bit_identical_to_pct_change
Equities and crypto must be untouched — not close, identical.
agent/tests/test_nonpositive_returns.py:50
Method
test_posix_does_not_pin_packages
On POSIX, npm's local PATH magic makes ``npm run build`` work without explicit package pinning. Keep it that way.
agent/tests/test_cli_setup_dev.py:58
Function
test_posix_oserror_is_not_treated_transient
POSIX no-op guard: a plain OSError (no winerror) is never transient, so off-Windows the retry loop runs exactly once — no behavior change.
agent/tests/test_swarm_store_atomic_write.py:199
Method
test_posix_uses_npm_run_build
(self)
agent/tests/test_cli_setup_dev.py:53
Function
test_post_cannot_forge_system_id_and_existing_row_untouched
( client: TestClient, store: ScheduledResearchJobStore )
agent/tests/scheduling/test_system_job_protection.py:292
Function
test_post_email_test_empty_config_reports_missing_credentials
( tmp_path: Path, monkeypatch )
agent/tests/test_channels_config_api.py:1349
Function
test_post_event_only_window_is_allowed
()
agent/tests/quantlib/test_eventstudy.py:499
Function
test_post_event_window_fits_on_rows_before_the_event
(shocked_frame, event_window)
agent/tests/quantlib/test_eventstudy_post_event_window.py:24
Function
test_post_ignores_source_type_and_executor_kind_escalation
( client: TestClient, store: ScheduledResearchJobStore )
agent/tests/scheduling/test_system_job_protection.py:311
Function
test_post_slack_test_runs_two_leg_probe_not_unsupported
Slack's Test route runs the two-leg probe (auth.test then apps.connections.open) instead of short-circuiting ``unsupported``.
agent/tests/test_channels_config_api.py:1301
Function
test_post_test_honors_pending_secret_clear
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:1156
Function
test_post_test_non_object_json_200_returns_envelope_not_500
A token endpoint answering 200 with non-object JSON must not 500. Regression for the shared probe's ``.get`` on a non-dict body: the ``/test`
agent/tests/test_channels_config_api.py:1099
Function
test_post_test_rejects_unknown_config_keys
POST /test shares PUT's unknown-key rejection instead of silently dropping the keys through pydantic ``extra="ignore"`` into the probe.
agent/tests/test_channels_config_api.py:1130
Function
test_post_test_reports_invalid_credentials
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:1075
Function
test_post_test_unsupported_channel_short_circuits
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:1181
Function
test_post_test_uses_unsaved_creds_and_never_writes
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:1019
Function
test_post_test_without_body_uses_saved_config
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:1051
Function
test_post_websocket_test_returns_probe_code_not_unsupported
( tmp_path: Path, monkeypatch )
agent/tests/test_channels_config_api.py:1284
Function
test_pptx_slides
(tmp_path: Path)
agent/tests/test_doc_reader.py:140
Method
test_pre_2023_filing_is_thousands
(self)
agent/tests/test_institutional_holdings_tool.py:334
Function
test_pre_event_windows_keep_their_estimation_sample
(shocked_frame)
agent/tests/quantlib/test_eventstudy_post_event_window.py:38
Method
test_pre_existing_aliases_untouched
(self)
agent/tests/test_institutional_commands.py:125
Method
test_pre_existing_commands_survive
Appending must not displace or rewrite the base registry.
agent/tests/test_institutional_commands.py:69
Function
test_pre_existing_world_readable_partial_is_tightened
(fake_home)
agent/tests/test_onboard_partial_env.py:46
← previous
next →
22,301–22,400 of 26,887, ranked by callers