MCPcopy Create free account

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

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

↓ 16 callersMethodappend_evidence
Append traceable evidence after stale-goal validation. Args: session_id: Owning session id. goal_id: Goal being mutat
agent/src/goal/store.py:603
↓ 16 callersFunctionbond_price
Present value of a bullet bond settling on a coupon date. The result is a *clean* price: settlement is assumed to sit on a coupon date so no
agent/src/quantlib/fixedincome.py:277
↓ 16 callersFunctionbuild_run_manifest
Build a :class:`RunManifest` from raw run composition data. Args: run_id: Run/session identifier (provenance only, not hashed). t
agent/src/governance/manifest.py:359
↓ 16 callersMethodcalc_commission_for_symbol
Symbol-aware commission calculation. Args: symbol: Futures code. size: Number of contracts. price: Execut
agent/backtest/engines/china_futures.py:288
↓ 16 callersMethodcooling
(self, scope, source)
agent/src/data_gateway/routing.py:42
↓ 16 callersMethodcreate
Enqueue a bounded public universe; return immediately with its job id.
agent/src/data_gateway/scans.py:36
↓ 16 callersMethoddone
(self)
agent/tests/test_api_live_runtime.py:256
↓ 16 callersMethoddrain_notifications
Return this owner's queued notifications, oldest first. Notifications belonging to other owners stay queued for them; draining one se
agent/src/tools/background_tools.py:589
↓ 16 callersFunctioneffective_bars_per_year
Bars per elapsed calendar year observed on ``index``. The cross-market annualisation convention. A basket that spans markets has no single pe
agent/backtest/metrics.py:215
↓ 16 callersMethodflush
(self)
agent/src/tools/_sec_filing_text.py:92
↓ 16 callersMethodfocus
()
frontend/src/components/chat/Composer.tsx:60
↓ 16 callersMethodformat_assistant_tool_calls
Format an assistant tool_calls message, preserving thinking text. Args: tool_calls: Provider tool-call objects whose arguments wi
agent/src/product/context.py:312
↓ 16 callersFunctionget_default_registry
Return a process-wide cached ``Registry`` for the bundled zoo. Thread-safe. First call builds and caches; subsequent calls return the same in
agent/src/factors/registry.py:470
↓ 16 callersFunctionget_media_dir
Return a media directory for *channel_name* under the VT uploads root. Inbound media must land inside ``~/.vibe-trading/uploads`` — one of the
agent/src/channels/utils.py:27
↓ 16 callersMethodget_messages
Return display messages derived from the session thread. Args: session_id: Session ID. limit: Number of newest messag
agent/src/session/store.py:177
↓ 16 callersMethodget_messages
(self, *args, **kwargs)
agent/tests/test_channels_attempt_progress.py:35
↓ 16 callersFunctionhalt_flag_set
Return whether live trading is halted — a pure filesystem check. This is the authoritative kill-switch check the enforcement gate calls before
agent/src/live/halt.py:135
↓ 16 callersFunctionload_config
Load Futu settings from ``~/.vibe-trading/futu.json``.
agent/src/trading/connectors/futu/sdk.py:203
↓ 16 callersFunctionload_playbook_file
Parse one playbook markdown file. Args: path: Path to a ``.md`` playbook file. Returns: The parsed :class:`ResearchPlaybook`
agent/src/scheduled_research/playbooks.py:275
↓ 16 callersFunctionload_preset
Load a YAML preset by name (user directory first, then bundled). Args: name: Preset name without the .yaml extension. Returns:
agent/src/swarm/presets.py:63
↓ 16 callersFunctionmake_client
Build the REST client for a config (tests may override via ``set_client_factory``).
agent/src/trading/connectors/etoro/client.py:356
↓ 16 callersMethodprocess
Prepare and execute a provider tool batch, recording results in the conversation. Args: tool_calls: Raw tool calls from the model
agent/src/product/tool_execution.py:108
↓ 16 callersMethodrun
(self, prompt: str, session_id: str, **kwargs: Any)
agent/tests/test_cli_conversation.py:166
↓ 16 callersFunctionrun_backtest
Run backtest: validate config.json + signal_engine.py, invoke built-in engine. Args: run_dir: Path to the run directory. Returns:
agent/src/tools/backtest_tool.py:195
↓ 16 callersFunctionrun_shadow_backtest
Drive a multi-market backtest from a ShadowProfile. Markets are backtested per settlement currency: the composite engine refuses a mixed-curr
agent/src/shadow_account/backtester.py:164
↓ 16 callersFunctionscenario
()
agent/tests/test_vibe_trading_sdk.py:178
↓ 16 callersFunctionscenario
()
agent/tests/test_channels_runtime.py:304
↓ 16 callersFunctiontime_weighted_return
Chain-link the true time-weighted return across a valuation series. Each interval's return removes that interval's external flow before divid
agent/src/quantlib/performance.py:512
↓ 16 callersFunctionts_argmax
Rolling argmax (0-based index into the window), warmup → NaN. Uses ``bottleneck.move_argmax`` when available (~350x faster). Correction: ``bn
agent/src/factors/base.py:334
↓ 15 callersFunction_bar
(open_price: float, **extra: float)
agent/tests/test_taiwan_equity_engine.py:38
↓ 15 callersFunction_baseline_peer
A self-consistent, LTM-ready peer for tests that are not about the big hand-computed fixture (EV bridge signs, exclusion, warnings, ...).
agent/tests/quantlib/valuation/test_comps.py:78
↓ 15 callersFunction_block
Render a figures block, which every draft with a role needs.
agent/tests/test_grounding_diagnostics.py:137
↓ 15 callersFunction_body
Build a minimal FMP historical-price-full body.
agent/tests/test_fmp_loader.py:17
↓ 15 callersFunction_call
(call_id, name, **arguments)
agent/tests/test_swarm_produced_file_handoff.py:41
↓ 15 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:36
↓ 15 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:52
↓ 15 callersFunction_create_memory_file
Helper to create a memory file with extended frontmatter.
agent/tests/test_memory_gc.py:29
↓ 15 callersFunction_df
(records: list[TradeRecord])
agent/tests/test_trade_journal.py:60
↓ 15 callersFunction_event
A gamma event wrapping the supplied markets.
agent/tests/test_prediction_market_tool.py:116
↓ 15 callersFunction_intent
(notional=500.0, qty=None, asset=AssetClass.US_EQUITY)
agent/tests/test_sdk_order_gate.py:136
↓ 15 callersFunction_make_store
Construct EvidenceStore tolerantly across positional/keyword db path.
agent/tests/test_strategy_discovery_store.py:36
↓ 15 callersFunction_ok
(**fields: Any)
agent/tests/test_mcp_result_dedup.py:106
↓ 15 callersFunction_rec
(dt: str, symbol: str, side: str, qty: float, price: float, fee: float = 0.0)
agent/tests/test_trade_journal.py:46
↓ 15 callersFunction_resolver_payload
( symbol: str = "562500.SS", *, candidates: list[dict[str, Any]] | None = None, query: str = "
agent/tests/test_agent_grounding.py:41
↓ 15 callersMethod_run_sync
Run _sync_provider_env with a clean env and return relevant keys.
agent/tests/test_llm.py:140
↓ 15 callersFunction_stub_panel
(monkeypatch: pytest.MonkeyPatch, n_rows: int = 80, n_cols: int = 8)
agent/tests/factors/test_bench_strict.py:222
↓ 15 callersFunction_two_action_series
Raw closes with two 2-per-share dividends at bar 3 and bar 6. Trend rises 1 per bar; each ex-date drops the price by the dividend (2), and th
agent/tests/test_additive_conversion.py:33
↓ 15 callersFunction_unsupported
Return a standard unsupported-capability payload.
agent/src/trading/service.py:1711
↓ 15 callersFunction_write
(directory: Path, slug: str, text: str)
agent/tests/test_research_playbooks.py:54
↓ 15 callersFunctionbuild_backtest_summary
Build the structured summary dict for a finished backtest run. Reads ``run_card.json`` (schema 1.0: ``card["backtest"]`` carries codes/dates/
agent/src/tools/backtest_summary.py:71
↓ 15 callersFunctionbuild_run_from_preset
Create a pending swarm run from a preset and user variables. Args: preset_name: Name of the preset to load. user_vars: User-provi
agent/src/swarm/presets.py:257
↓ 15 callersMethodclose
Close transient cards on completion, timeout or cancellation. `resuming=True` only when the wait was abandoned (timeout or cancellati
agent/src/channels/attempt_progress.py:101
↓ 15 callersFunctiondeclared_parameter
Show a parameter to the reader and declare the same value and label.
agent/tests/grounding_parameter_helpers.py:4
↓ 15 callersFunctiondeliver_tool_result
Keep a large result in full, with a bounded valid JSON receipt. Args: result: Complete tool result. Credentials are scrubbed before savin
agent/src/product/result_artifacts.py:242
↓ 15 callersFunctiondispatch
Dispatch ``alpha <sub>`` to the matching handler. Returns the exit code; ``cli.py`` propagates it via ``_coerce_exit_code``.
agent/src/factors/cli_handlers.py:1185
↓ 15 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/sentiment_tool.py:141
↓ 15 callersFunctionexisting_session
Return (service, session) or raise 404.
agent/src/api/session_http.py:46
↓ 15 callersFunctionfcff_bridge
Build the EBIT -> FCFF bridge for every projection year. Args: ebit: EBIT forecast, one entry per projection year, oldest first.
agent/src/quantlib/valuation/dcf.py:578
↓ 15 callersFunctionfetch
(*args)
tools/gateway_soak_history.py:46
↓ 15 callersFunctionfit_records
Serialize the largest whole-record page of ``records[offset:]`` that fits. Args: records: All available records, newest first by the call
agent/src/tools/_result_paging.py:44
↓ 15 callersMethodget
(self, order_id: str)
agent/src/tools/paper_trade/order_lifecycle.py:139
↓ 15 callersFunctionimplied_volatility
Invert Black-Scholes for volatility, Newton first then bisection. Seeds with the Brenner-Subrahmanyam at-the-money approximation ``sigma_0 =
agent/src/quantlib/options.py:396
↓ 15 callersFunctionimplied_volatility_surface
Build a bounded strike-by-expiry grid from observed implied volatilities. This is a display and exploratory-analysis grid, not an arbitrage-free
agent/src/quantlib/volatility.py:322
↓ 15 callersMethodindex_session
(self, session_id: str, title: str)
agent/tests/test_cli_conversation.py:45
↓ 15 callersMethodload
Load all persisted jobs. Returns: A dict mapping job id to job. Empty when the store has never been written.
agent/src/scheduled_research/store.py:104
↓ 15 callersMethodload
Load the persisted jobs. A missing store (never written) is the *only* clean empty result. A store that exists but fails to parse is
agent/src/live/runtime/jobstore.py:105
↓ 15 callersMethodnew_session
(self, title: str = "cli")
agent/tests/test_cli_conversation.py:161
↓ 15 callersMethodreconcile_run
Hydrate a run and recover its terminal status when possible. Args: run: The SwarmRun loaded from run.json. write: Whe
agent/src/swarm/store.py:430
↓ 15 callersMethodrefresh
Read every enabled source once and persist an immutable snapshot. A source that fails contributes nothing: no positions, no combined
agent/src/portfolio/service.py:303
↓ 15 callersMethodrender
(self)
agent/tests/test_cli_conversation.py:267
↓ 15 callersFunctionresponse
(raw)
agent/tests/test_alpha_bench_nifty100.py:40
↓ 15 callersMethodsave
Validate and atomically persist settings with owner-only permissions. Args: settings: Settings object or raw dict to validate and
agent/src/portfolio/config.py:290
↓ 15 callersFunctionsqrt_impact
Apply square-root market impact, the best empirically supported form. Impact is ``eta * volatility * sqrt(volume_traded / adv)``. Marginal impact
agent/src/quantlib/impact.py:248
↓ 15 callersFunctionthrottled_get
GET ``url`` after waiting out the per-host minimum interval. Args: url: Fully-qualified request URL. host_key: Throttle/session b
agent/backtest/loaders/_http.py:161
↓ 14 callersFunction_assert_strict_json
(payload: dict)
agent/tests/test_risk_xray.py:28
↓ 14 callersFunction_build_args
Build a Namespace pre-populated with sane defaults that ``_registry`` and handlers expect to read.
agent/tests/test_cli_hypothesis.py:47
↓ 14 callersFunction_call
(path: Path, pages: str = "")
agent/tests/test_doc_reader.py:18
↓ 14 callersFunction_cfg
()
agent/tests/test_zerodha_sdk.py:94
↓ 14 callersFunction_close
Close an OpenD context, swallowing teardown errors.
agent/src/trading/connectors/futu/sdk.py:1118
↓ 14 callersFunction_closes
(series_map: dict[str, list[float]], start: str = "2026-01-01")
agent/tests/test_risk_xray.py:22
↓ 14 callersFunction_compute_rsi
Relative Strength Index (Wilder smoothing) over *period* bars. Delegates to :func:`src.shadow_account.indicators.compute_rsi` so tool and str
agent/src/tools/technical_indicator_tool.py:177
↓ 14 callersFunction_compute_with_fixture_windows
Shared call shape: fixture-engineered windows + pinned today.
agent/tests/test_strategy_discovery_harness.py:390
↓ 14 callersFunction_config
(**values)
agent/tests/test_openalgo_connector.py:59
↓ 14 callersFunction_daily
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_5m_engine.py:99
↓ 14 callersFunction_fetch
Run the tool against a mocked companyfacts payload and return its periods.
agent/tests/test_sec_period_frames.py:47
↓ 14 callersFunction_generate_signals
Render + load + execute a SignalEngine against a data_map.
agent/tests/test_shadow_account.py:2239
↓ 14 callersFunction_infer_currency
Infer quote currency without performing an implicit conversion.
agent/src/product/identity/normalize.py:195
↓ 14 callersFunction_make_bar
Build a minimal bar Series for testing.
agent/tests/test_china_a_engine.py:31
↓ 14 callersFunction_make_dag_run
A three-task DAG: t-a and t-b (layer 1), t-c consuming both (layer 2).
agent/tests/test_swarm_replay.py:33
↓ 14 callersFunction_microcompact
Layer 1: prune old tool results, keeping the most recent N intact.
agent/src/session/compaction_ops.py:109
↓ 14 callersMethod_microcompact_and_unblock
Run layer-1 microcompact and re-open lost readonly call identities.
agent/src/session/compaction.py:232
↓ 14 callersFunction_paper_cfg
()
agent/tests/test_alpaca_tap_routing.py:23
↓ 14 callersMethod_rule_for
Get the sub-engine that provides rules for this symbol.
agent/backtest/engines/composite.py:221
↓ 14 callersFunction_service
(tmp_path: Path, monkeypatch, registry_factory, llm)
agent/tests/test_session_conversation_kernel.py:150
↓ 14 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_tools.py:46
↓ 14 callersMethodappend_event
Append an event to events.jsonl. Args: run_id: ID of the run whose journal is updated. event: Event to append.
agent/src/swarm/store.py:271
↓ 14 callersMethodbegin
Atomically reserve a due decision, or return None between decisions. Raises: DecisionBudgetError: If a limit or an unfinished pri
agent/src/live/runtime/decision_budget.py:138
↓ 14 callersFunctionbuild_swarm_registry
Build a per-worker registry that merges local + remote MCP tools. Swarm workers receive a strict whitelist (``agent_spec.tools``). Broker mut
agent/src/tools/__init__.py:417
↓ 14 callersFunctioncall
(name: str, call_id: str = "c1", **arguments: Any)
agent/tests/test_spawn_agent_tool.py:65
↓ 14 callersFunctioncanonicalize
Return the JCS canonical form of a JSON-native value. Accepts exactly the JSON type lattice: ``None``, ``bool``, ``int``, ``float``, ``str``,
agent/src/tools/paper_trade/state_hash.py:141
← previousnext →501–600 of 30,405, ranked by callers