MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 10 callersMethodobserve
()
frontend/src/tests/setup.ts:11
↓ 10 callersFunctionpersist_calculation_result
Keep a JSON observation addressable by calculation tools and file readers. Args: result: Full JSON object as text, before any presentatio
agent/src/product/result_artifacts.py:17
↓ 10 callersFunctionpreferred_return_amount
Preferred return owed to LPs, accrued per contribution from its own date. Accruing each draw separately matters: a fund that called half its capi
agent/src/quantlib/fundmath.py:922
↓ 10 callersFunctionprobabilistic_sharpe_ratio
Confidence that a strategy's true Sharpe exceeds a benchmark. ``PSR = Z[ (SR - SR*) * sqrt(T - 1) / sqrt(1 - g3*SR + (g4 - 1)/4 * SR^2) ]``
agent/src/quantlib/multipletesting.py:217
↓ 10 callersMethodprune
Reclaim expired entries and enforce disk and memory budgets.
agent/src/data_gateway/cache.py:101
↓ 10 callersFunctionquantize_money
Quantize to 2dp ROUND_HALF_UP — the frozen money discipline (VD-9).
agent/src/tools/paper_trade/rules.py:97
↓ 10 callersFunctionrandom_walk
Generate a driftless random walk (a unit-root, non-stationary series). Args: n: Number of observations. seed: Seed for the random
agent/tests/quantlib/test_timeseries.py:68
↓ 10 callersFunctionread
Acquire an existing reader using the shared bounded queues and cache. Args: gateway: Process-wide gateway; no additional pool or cache is
agent/src/data_gateway/reads.py:50
↓ 10 callersFunctionrender_risk_xray_markdown
Render an x-ray report as a compact Markdown summary.
agent/backtest/risk_xray.py:470
↓ 10 callersFunctionroster
An invented 100-row roster, never an assertion of historical membership.
agent/tests/test_alpha_bench_nifty100.py:28
↓ 10 callersMethodrun_loop
(self, jobs=None)
agent/tests/test_api_live_runtime.py:373
↓ 10 callersFunctionsanitize_session_overrides
Strip operator-only keys from API-caller-supplied session overrides. ``mcpServers`` / ``mcp_servers`` define subprocess ``command``/``args``/``en
agent/src/config/loader.py:107
↓ 10 callersFunctionscenario
()
agent/tests/test_session_conversation_kernel.py:243
↓ 10 callersFunctionservice
(*, progress: bool = False)
agent/src/api/portfolio_routes.py:142
↓ 10 callersFunctionsigned_power
``sign(df) * |df|**p`` — preserves sign; never produces complex output.
agent/src/factors/base.py:416
↓ 10 callersFunctionstandardise_exposures
Turn a raw characteristic into a cross-sectional exposure. Winsorises both tails, then subtracts a cap-weighted mean and divides by an equal-
agent/src/quantlib/factormodel.py:240
↓ 10 callersMethodstart_run
Start a swarm run in a background thread. Args: preset_name: YAML preset name to execute. user_vars: User-provided va
agent/src/swarm/runtime.py:388
↓ 10 callersFunctionstrip_local_prefix
Return the instrument symbol behind a ``local:`` routing prefix. ``local:AAPL.US`` asks for the user's own ``AAPL.US`` dataset. The prefix ch
agent/backtest/engines/_market_hooks.py:428
↓ 10 callersFunctionterminal_value
Compute both terminal-value estimates and cross-validate them. Args: final_year_fcff: ``FCFF_n``, the last explicit forecast year's free
agent/src/quantlib/valuation/dcf.py:718
↓ 10 callersMethodto_dict
Serialize the session to a dictionary. Returns: Session fields with the status value and serialized owner, if present.
agent/src/session/models.py:124
↓ 10 callersMethodto_job
Build a schedulable job from this playbook. The result is ready for ``ScheduledResearchJobStore.upsert`` and mirrors what ``POST /sch
agent/src/scheduled_research/playbooks.py:142
↓ 10 callersFunctionuse_provider
Select claude-cli as the configured provider without reading any ``.env``. Args: monkeypatch: Fixture used to set the provider environmen
agent/tests/claude_cli_helpers.py:191
↓ 10 callersFunctionvalidate
Check every session/bar, exposing any excluded non-trading close points. Args: rows: Unsampled records with trade_date or time, ordered a
agent/src/data_gateway/calendars.py:40
↓ 10 callersFunctionvalidate_generated
Static-check a generated signal_engine source. Checks: 1. ``ast.parse`` succeeds. 2. Module defines ``class SignalEngine``.
agent/src/shadow_account/codegen.py:204
↓ 10 callersFunctionvalidate_url_target
Validate a URL is safe to fetch: scheme, hostname, and resolved IPs. ``allow_loopback`` is intentionally narrow: it only permits literal loop
agent/src/channels/utils.py:147
↓ 10 callersFunctionvalidate_validation_status_transition
Guard the model-validation state machine. The only hard rule: a model cannot be marked ``APPROVED`` unless it is already ``VALIDATED`` (re-ap
agent/src/strategy_store/models.py:217
↓ 10 callersFunctionvar_backtest
Run every test in this module over one return/VaR pair. Args: returns: Realised returns, signed, in chronological order. var: VaR
agent/src/quantlib/var_backtest.py:618
↓ 10 callersFunctionwrite_run_manifest
Record the prompt hash, tool catalog and package versions for reproducibility. A manifest write failure is logged and the run continues. Arg
agent/src/product/artifacts.py:318
↓ 9 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/longbridge/sdk.py:792
↓ 9 callersFunction_assert_host
Fail closed when the resolved host does not match the declared environment. The host is the authoritative discriminator: testnet keys cannot reac
agent/src/trading/connectors/binance/sdk.py:844
↓ 9 callersFunction_bar
(close: float, high: float | None = None, low: float | None = None)
agent/tests/test_market_hooks_liquidation.py:27
↓ 9 callersFunction_bar
(open_: float, close: float, base_field: str = "pre_close")
agent/tests/test_price_limit_lookahead.py:44
↓ 9 callersFunction_bounded_send_msg
baostock's send_msg with a whole-message deadline and EOF detection. Byte-compatible with baostock 0.9.3 on a healthy server. Returns None on
agent/backtest/loaders/baostock_loader.py:107
↓ 9 callersMethod_calc_equity
Total equity = free cash + sum(margin + unrealised) per position. Uses vectorized numpy path when _calc_pnl/_calc_margin are not over
agent/backtest/engines/base.py:1642
↓ 9 callersFunction_call
(obj: Any, name: str, *args: Any, **kwargs: Any)
agent/src/trading/connectors/longbridge/sdk.py:943
↓ 9 callersFunction_check
(intent: OrderIntent, mandate: Mandate, *, positions=None, daily_count=0)
agent/tests/test_mandate_enforcement.py:172
↓ 9 callersFunction_client
()
agent/tests/test_alpha_compare_api.py:28
↓ 9 callersMethod_close_position
Close position, record trade, return capital.
agent/backtest/engines/base.py:2321
↓ 9 callersFunction_codes
(outcome)
agent/tests/test_paper_trade_corporate_actions.py:102
↓ 9 callersFunction_codes
(result: ValidationResult)
agent/tests/test_grounding_diagnostics.py:129
↓ 9 callersFunction_create_test_database
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:76
↓ 9 callersFunction_curve
(values)
agent/tests/test_period_returns.py:21
↓ 9 callersFunction_detect_source
Infer legacy source name from symbol (back-compat for metrics/engine). Args: code: Ticker / symbol string. Returns: Source n
agent/backtest/runner.py:942
↓ 9 callersFunction_df
(rows: list[tuple])
agent/tests/test_trade_journal_fifo.py:16
↓ 9 callersFunction_fact_row
( end: str, filed: str, value: float, *, form: str = "10-Q", start: str | None = None,
agent/tests/test_fundamentals_pit.py:37
↓ 9 callersFunction_facts
(concept_rows: dict[str, list[dict[str, object]]])
agent/tests/test_fundamentals_pit.py:26
↓ 9 callersMethod_fetch_minutes
Intraday bars via stk_mins. Args: codes: Stock codes. start_date: Start date (YYYY-MM-DD). end_date: End
agent/backtest/loaders/tushare.py:367
↓ 9 callersFunction_fills
(outcome)
agent/tests/test_paper_trade_5m_partial_fills.py:217
↓ 9 callersFunction_fills
(outcome)
agent/tests/test_paper_trade_5m_limit_price.py:202
↓ 9 callersFunction_flat_5m
(day: str, price: float)
agent/tests/test_paper_trade_5m_engine.py:87
↓ 9 callersFunction_frame
(rows: list[tuple[str, float, float]])
agent/tests/test_paper_trade_corporate_actions.py:77
↓ 9 callersFunction_frame
Build an OHLCV frame from (open, high, low, close, volume) rows.
agent/tests/test_ohlc_validation.py:19
↓ 9 callersFunction_frame
(seed=1)
agent/tests/test_analysis_reliability.py:18
↓ 9 callersMethod_get_conn
Get or create SQLite connection with WAL mode.
agent/src/memory/search_index.py:243
↓ 9 callersFunction_get_scheduled_research_store
Return the singleton ScheduledResearchJobStore, creating it on first call.
agent/src/api/scheduled_routes.py:48
↓ 9 callersFunction_hk_engine
(**overrides)
agent/tests/test_global_equity_engine.py:34
↓ 9 callersFunction_ibkr_config
Build an IBKR local config from a trading profile and call overrides.
agent/src/trading/service.py:1448
↓ 9 callersFunction_inject_mock_transport
Route the probe's fresh ``httpx.AsyncClient`` through a MockTransport. The probe owns its client, so the only seam is the client class itself. Th
agent/tests/test_discord_connection_test.py:47
↓ 9 callersFunction_inject_mock_transport
Route the probe's fresh ``httpx.AsyncClient`` through a MockTransport. The probe owns its client, so the only seam is the client class itself. Th
agent/tests/test_dingtalk_connection_test.py:55
↓ 9 callersFunction_install_strategy
(name: str, source: str)
agent/tests/paper_trade_5m_fixtures.py:324
↓ 9 callersFunction_intent
(**overrides: Any)
agent/tests/test_mandate_enforcement.py:160
↓ 9 callersFunction_job
(jid: str = "j1", next_run_at: int = 1000, schedule: str = "interval:60000")
agent/tests/test_runtime_jobstore.py:37
↓ 9 callersFunction_loopback_client
TestClient whose peer host ('testclient') is treated as loopback.
agent/tests/test_auth_precedence.py:23
↓ 9 callersFunction_make_agent_config
Build an AgentConfig from a plain server-name → config-dict map.
agent/tests/test_registry_mcp_integration.py:25
↓ 9 callersFunction_make_bar
( close: float = 5000.0, pre_close: float | None = None, pct_chg: float | None = None, open_:
agent/tests/test_global_futures_engine.py:33
↓ 9 callersFunction_make_channel
Build a DingTalk channel that has NOT been started (no ``self._http``).
agent/tests/test_dingtalk_connection_test.py:44
↓ 9 callersFunction_make_run
(run_id: str, status: RunStatus)
agent/tests/test_swarm_retry.py:22
↓ 9 callersFunction_make_specs
Build a list of fake MCPRemoteToolSpec for testing.
agent/tests/test_mcp_specs_cache.py:80
↓ 9 callersFunction_mapping
(value: Mapping[str, pd.DataFrame], name: str)
agent/src/quantlib/neutralization.py:77
↓ 9 callersFunction_monkeypatch_upgrade_env
Point PyPI + install-kind detection at deterministic fakes.
agent/tests/test_cli_update.py:59
↓ 9 callersFunction_normalize_llm_usage
Normalize provider-reported usage metadata without estimating tokens.
agent/src/product/usage.py:27
↓ 9 callersFunction_ns
(**overrides)
agent/tests/test_alpha_bench_strict_cli.py:13
↓ 9 callersFunction_observed
(outcome)
agent/tests/test_paper_trade_5m_limit_price.py:213
↓ 9 callersMethod_on_message
Parse inbound message, download attachments, and publish to the bus.
agent/src/channels/qq.py:531
↓ 9 callersFunction_parse_pages
Parse '1-10' / '5' / '1,3,5-8' into zero-based indices.
agent/src/tools/doc_reader_tool.py:107
↓ 9 callersFunction_parse_period
Return (start_date, end_date) as YYYY-MM-DD strings.
agent/src/tools/alpha_bench_tool.py:106
↓ 9 callersFunction_patch_kite
(monkeypatch, fake: Any)
agent/tests/test_zerodha_sdk.py:88
↓ 9 callersFunction_probe_entry
(tmp_path: Path, body: str)
agent/tests/test_runner_env.py:394
↓ 9 callersFunction_profile
Build a minimal ShadowProfile for scanner tests.
agent/tests/test_shadow_scanner.py:14
↓ 9 callersFunction_read_timeout
()
agent/backtest/loaders/baostock_loader.py:94
↓ 9 callersFunction_readers
Build the three injected READ callables from fabricated snapshots.
agent/tests/test_runtime_reconcile.py:37
↓ 9 callersFunction_registry
()
agent/tests/test_tool_output_dir_write_roots.py:55
↓ 9 callersFunction_replay
Serve fixture ``bodies[endpoint]`` for each POST /api/v1/<endpoint>.
agent/tests/test_openalgo_connector.py:74
↓ 9 callersFunction_request
(market: str, cash: float, positions: list[dict], orders: list[dict], day: str)
agent/tests/test_paper_trade_corporate_actions.py:94
↓ 9 callersFunction_request
(**kwargs)
agent/tests/test_openbb_bridge/test_context_injector.py:80
↓ 9 callersFunction_reset_crumb
Clear the process-wide crumb cache so each test handshakes fresh.
agent/tests/test_yahoo_client.py:43
↓ 9 callersFunction_row
(side="buy", quantity=1, price=100, symbol="AAPL", day=1, fee=1)
agent/tests/test_trade_journal_invalid_quantity.py:17
↓ 9 callersFunction_rule_with_rsi
( rsi_min: float, rsi_max: float, hour_min: int = 0, hour_max: int = 23, )
agent/tests/test_shadow_account.py:2259
↓ 9 callersFunction_run
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, llm: Any, max_iterations: int = 5, )
agent/tests/test_agent_loop_content_filter.py:86
↓ 9 callersFunction_run
(**kwargs: Any)
agent/tests/test_financial_rigor_tool.py:289
↓ 9 callersFunction_run
(capsys: pytest.CaptureFixture[str], args: argparse.Namespace)
agent/tests/factors/test_alpha_compare.py:172
↓ 9 callersMethod_run
(self, query, yahoo_hits, eastmoney_rows=None)
agent/tests/test_symbol_search_tool.py:1158
↓ 9 callersFunction_seed
(directory: Path, filename: str = "record.json")
agent/tests/test_state_migration.py:10
↓ 9 callersFunction_seed_original_run
Persist a failed/cancelled run: t-a completed (with an artifact), t-b failed, t-c blocked.
agent/tests/test_swarm_replay.py:63
↓ 9 callersFunction_shapes
(text: str)
agent/tests/test_grounding_shape_hardening.py:79
↓ 9 callersFunction_sizes
(state)
agent/tests/test_base_engine.py:115
↓ 9 callersFunction_strategy_payload
(path: str, **overrides: Any)
agent/tests/paper_trade_5m_fixtures.py:317
↓ 9 callersFunction_to_futu_symbol
Convert project symbol to Futu OpenAPI format. Examples: 700.HK -> HK.00700 5.HK -> HK.00005 000001.SZ -> SZ.0000
agent/backtest/loaders/futu.py:41
↓ 9 callersFunction_tool_call
(call_id: str, tool_name: str, **arguments: Any)
agent/tests/test_agent_grounding.py:167
↓ 9 callersFunction_trading_dates
(count: int, start: str = "2024-01-01")
agent/tests/test_attribution_api.py:41
← previousnext →1,001–1,100 of 30,405, ranked by callers