MCPcopy Create free account

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

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

↓ 10 callersFunction_shapes
(text: str)
agent/tests/test_grounding_shape_hardening.py:75
↓ 10 callersFunction_store
(tmp_path: Path)
agent/tests/scheduling/test_internal_dispatch.py:33
↓ 10 callersFunction_store_bytes
(store: ScheduledResearchJobStore)
agent/tests/scheduling/test_system_job_protection.py:120
↓ 10 callersFunction_turn
( runs: Path, name: str, session: str | None = SESSION, subs=("a", "b"), **kwargs )
agent/tests/test_backtest_runs_tool.py:40
↓ 10 callersMethod_unblock_lost_readonly_results
Recover only lost exact queries; context loss cannot replay writes.
agent/src/agent/tool_lifecycle.py:761
↓ 10 callersFunction_us_engine
(**overrides)
agent/tests/test_global_equity_engine.py:28
↓ 10 callersFunction_validate
(tmp_path: Path, prose: str, *rows: str)
agent/tests/test_grounding_indexed_field_refs.py:42
↓ 10 callersFunction_values
(result)
agent/tests/test_grounding_shape_hardening.py:79
↓ 10 callersFunction_write_config
(run_dir: Path, codes: List[str], benchmark: Any = None)
agent/tests/test_attribution_api.py:80
↓ 10 callersMethod_write_run_manifest
Record what methodology produced this run, beside its trace. Answers "under what system prompt, which skills, and which tool set was
agent/src/agent/loop.py:305
↓ 10 callersMethodadvance
Match completed daily bars and atomically commit, refusing stale callers. Args: account_id: Saved account identifier.
agent/src/tools/paper_trade/accounts.py:176
↓ 10 callersFunctionassert_system_messages_only_lead
Assert no captured message list has a system role after index 0. Args: history: One message list per LLM call, in call order.
agent/tests/message_roles_helpers.py:17
↓ 10 callersFunctionassess_readiness
Target-day readiness on the merged frame (AM-9), never on a leg alone. Ready when ANY served symbol carries the target-day bar (a zero-bar symbol
agent/src/tools/paper_trade/data_readiness.py:55
↓ 10 callersFunctionborrow_cost
Cost of borrowing the short leg for one period. Only negative weights are charged: a long position borrows nothing. The charge is the absolut
agent/backtest/factor_costs.py:231
↓ 10 callersMethodbuild_system_prompt
Build system prompt. Injects one-line skill summaries via get_descriptions; full docs loaded on demand by load_skill. PersistentMemor
agent/src/agent/context.py:313
↓ 10 callersFunctioncalc_turnover_series
Per-bar weight-implied portfolio turnover from a position frame. Turnover for a bar is ``0.5 * sum_i |w_{t,i} - w_{t-1,i}|``, so a full rotat
agent/backtest/metrics.py:454
↓ 10 callersMethodcall_tool
Call a remote MCP tool.
agent/src/tools/mcp.py:277
↓ 10 callersMethodcall_tool
( self, remote_name: str, arguments: dict, *, local_name: str | None = None )
agent/tests/test_advisory.py:56
↓ 10 callersMethodcancel
Cancel one task by its tracked process group. Args: task_id: Identifier returned by :meth:`run`. Returns: JS
agent/src/tools/background_tools.py:412
↓ 10 callersFunctionclear_halt
Clear a tripped kill switch by deleting its sentinel. Clearing is a privileged surface action (never an agent tool). Clearing the global swit
agent/src/live/halt.py:111
↓ 10 callersFunctioncompute
(**kwargs)
agent/tests/test_system_routes.py:231
↓ 10 callersFunctioncompute_edge_density
Reduce rolling correlation matrices to an edge-density series. Edge density is the fraction of distinct asset pairs whose rolling |correlatio
agent/backtest/regime.py:24
↓ 10 callersFunctioneffective_fee_model
Return the fee parameters actually in effect for this run (R7-3 echo). Per-key merge of the caller-provided overrides over the market defaults:
agent/src/tools/paper_trade/state_hash.py:247
↓ 10 callersFunctionemit_progress
Publish a structured progress event from a tool. Silently no-ops when called outside an active tool context (e.g. during unit tests that invo
agent/src/agent/progress.py:89
↓ 10 callersMethodevaluate_decay
Evaluate a single set of metrics and return the decay signal. Uses the WORST signal across all provided metrics. For factors: uses ic
agent/src/strategy_store/decay.py:88
↓ 10 callersFunctionexpected_maximum_sharpe
Sharpe the best of ``n_trials`` reaches by luck alone. From the expected maximum of ``N`` independent Gaussians:: E[max] ~ std * [ (1 -
agent/src/quantlib/multipletesting.py:292
↓ 10 callersFunctionextract_order_intent
Parse Robinhood ``place_equity_order`` kwargs into a normalized :class:`OrderIntent`. Returns ``None`` (→ DENY) whenever the tool is not a recogn
agent/src/trading/connectors/robinhood/extractor.py:63
↓ 10 callersMethodfetch
(self, codes, start_date, end_date, *, interval="1D")
agent/src/tools/paper_trade/raw_loader.py:11
↓ 10 callersFunctionfetch_market_data_json
Fetch market data and return strict JSON. When no requested symbol returned data the envelope says so with ``status: error``: a bare ``{"_unr
agent/src/market_data.py:555
↓ 10 callersMethodget_session
Read a session. Args: session_id: Session ID. Returns: The Session instance, or None when it does not exist.
agent/src/session/store.py:83
↓ 10 callersMethodhas_bar
(self, day: str)
agent/src/tools/paper_trade/data.py:353
↓ 10 callersMethodindex_session
Upsert a session record. Args: session_id: Session ID. title: Session title. ts: Session start time as a
agent/src/session/search.py:243
↓ 10 callersFunctionis_trading_day
Whether ``date`` (YYYY-MM-DD) is a trading day of ``market``. cn_a: CH ``trade_calendar`` truth. hk/us: raises NotImplementedError (AM-6 zer
agent/src/tools/paper_trade/calendar.py:244
↓ 10 callersFunctionlist_presets
Return summary info for all available presets, sorted by name. User presets (``~/.vibe-trading/swarm/presets/``) are listed alongside the bun
agent/src/swarm/presets.py:111
↓ 10 callersFunctionload_config
Load Binance settings from ``~/.vibe-trading/binance.json``.
agent/src/trading/connectors/binance/sdk.py:186
↓ 10 callersFunctionload_config
Load Alpaca settings from ``~/.vibe-trading/alpaca.json``.
agent/src/trading/connectors/alpaca/sdk.py:163
↓ 10 callersFunctionload_config
()
agent/src/trading/connectors/zerodha/sdk.py:154
↓ 10 callersFunctionmain
CLI entrypoint returning a process exit code. Behaviour: * Interactive entry (no subcommand, or ``chat`` + TTY): show banner, run onbo
agent/cli/main.py:1469
↓ 10 callersFunctionnormalize_position
Convert a connector position row to the portfolio wire shape. Args: broker: The connector key, used only to select a dedicated payload
agent/src/portfolio/normalization.py:56
↓ 10 callersFunctionnormalize_required_text
Strip and validate a required text field. Args: value: User supplied text. field_name: Field name for the error message. Ret
agent/src/goal/policy.py:41
↓ 10 callersMethodobserve
()
frontend/src/tests/setup.ts:11
↓ 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 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 callersFunctionrefresh_source_order_overrides
Apply ``MARKET_DATA_ORDER_*`` env values onto :data:`FALLBACK_CHAINS`. Snapshot-gated: when the relevant env vars are unchanged since the last
agent/backtest/loaders/registry.py:533
↓ 10 callersMethodrequest_cancel
Ask to cancel by order id. A terminal order (``held``/``canceled``/``rejected``) cannot be canceled — the refusal is an error, not a
agent/src/tools/paper_trade/order_lifecycle.py:179
↓ 10 callersMethodreset
()
frontend/src/hooks/__tests__/useSSE.test.ts:39
↓ 10 callersMethodrun_loop
(self, jobs=None)
agent/tests/test_api_live_runtime.py:368
↓ 10 callersFunctionsafe_filename
Replace unsafe path characters with underscores.
agent/src/channels/utils.py:103
↓ 10 callersFunctionsafe_path
Resolve `p` under `workdir` and ensure it stays inside. Args: p: User-supplied path (relative or absolute). ``~`` expansion is
agent/src/tools/path_utils.py:73
↓ 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 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 callersFunctionswarm_runs_root
Single source of truth for where swarm runs are persisted. The swarm store (mcp_server) and the run-dir sandbox allow-list (src.tools.path_ut
agent/src/swarm/store.py:68
↓ 10 callersMethodsweep_deliveries
Deliver every briefing whose run has reached a terminal state. Idempotent and restart-safe: the outbox row is the only source of trut
agent/src/scheduled_research/executor.py:567
↓ 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_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 callersMethodto_openai_schema
Convert to OpenAI function calling format.
agent/src/agent/tools.py:56
↓ 10 callersFunctionts_cov
Rolling sample covariance per column, min_periods=n.
agent/src/factors/base.py:252
↓ 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_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:146
↓ 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
↓ 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:51
↓ 9 callersFunction_build_agent
Build an AgentLoop with a real (but empty) registry and a stub LLM.
agent/tests/test_agent_loop_terminal_state.py:139
↓ 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
(stream: _SilentStream)
agent/tests/test_chat_stream_interruption.py:80
↓ 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:2210
↓ 9 callersFunction_codes
(outcome)
agent/tests/test_paper_trade_corporate_actions.py:102
↓ 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_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:331
↓ 9 callersFunction_fills
(outcome)
agent/tests/test_paper_trade_5m_limit_price.py:202
↓ 9 callersFunction_frame
(rows: list[tuple[str, float, float]])
agent/tests/test_paper_trade_corporate_actions.py:77
↓ 9 callersFunction_frame
(seed=1)
agent/tests/test_analysis_reliability.py:18
↓ 9 callersFunction_get_scheduled_research_store
Return the singleton ScheduledResearchJobStore, creating it on first call.
agent/src/api/scheduled_routes.py:48
↓ 9 callersFunction_history
A synthetic daily history of `n_days` consecutive calendar days.
agent/tests/test_tencent_loader.py:140
↓ 9 callersFunction_hk_engine
(**overrides)
agent/tests/test_global_equity_engine.py:34
↓ 9 callersFunction_host
Return the ``api_server`` module for late-access attribute reads. Tests monkeypatch ``ENV_PATH``, ``ENV_EXAMPLE_PATH``, ``_baostock_supported``
agent/src/api/settings_routes.py:220
↓ 9 callersFunction_ibkr_config
Build an IBKR local config from a trading profile and call overrides.
agent/src/trading/service.py:1452
↓ 9 callersFunction_infer_venue
Infer a coarse venue from a project symbol.
agent/src/agent/grounding/identity.py:241
↓ 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_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_long_call_body
(**over: Any)
agent/tests/test_options_routes.py:38
↓ 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:21
↓ 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
← previousnext →801–900 of 26,887, ranked by callers