MCPcopy Create free account

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

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

↓ 5 callersMethodmark_running
Mark the attempt as running and record when execution began.
agent/src/session/models.py:307
↓ 5 callersFunctionmerton_asset_solve
Back out asset value and asset volatility from observable equity. Solves the standard pair of equations simultaneously:: E = V*N(d
agent/src/quantlib/credit.py:288
↓ 5 callersFunctionmodified_dietz_return
Compute the day-weighted Modified Dietz return over one period. ``R = (V1 - V0 - F) / (V0 + sum(w_i * F_i))`` with ``w_i = (CD - D_i) / CD``,
agent/src/quantlib/performance.py:621
↓ 5 callersFunctionmoney
(value: number | null | undefined, currency: string = "USD")
frontend/src/pages/Portfolio.tsx:61
↓ 5 callersFunctionmoney_weighted_return
Compute the client's money-weighted return (XIRR) over the window. The client's cash stream is the opening value paid in, every external flow
agent/src/quantlib/performance.py:887
↓ 5 callersFunctionnormalize_kind
Normalize a cash-flow kind label to its canonical snake_case form. Real files spell the same concept as ``"Capital Call"``, ``"capital-call"``,
agent/src/entities/cashflow.py:99
↓ 5 callersFunctionnormalize_symbol
Normalize a symbol to ccxt unified ``BASE/QUOTE`` format.
agent/src/trading/connectors/binance/shaping.py:11
↓ 5 callersFunctionnum
(value: unknown)
frontend/src/components/charts/FactorResearchPanel.tsx:16
↓ 5 callersFunctionnum
(value: unknown)
frontend/src/components/charts/StrategyResearchDashboard.tsx:17
↓ 5 callersMethodon_bar
Per-bar hooks dispatched by market type.
agent/backtest/engines/composite.py:345
↓ 5 callersFunctionpanel
(values, times=None)
agent/tests/quantlib/test_neutralization.py:15
↓ 5 callersFunctionparent_adaptation_blockers
Return stable refusal reasons, or empty when adaptation may proceed. Allowed when at least one row is adequate and not stale. Reasons use ``s
agent/src/strategy_discovery/adaptation.py:16
↓ 5 callersMethodpoll
(self, timeout: float)
agent/src/tools/paper_trade/strategy_process.py:42
↓ 5 callersFunctionpositive_env_float
Read a positive float env var, warning and falling back on invalid values.
agent/backtest/loaders/base.py:365
↓ 5 callersMethodprepare_market_data
Validate or normalize loaded bars before signals see them. Default returns the frames untouched, so every market keeps its loader out
agent/backtest/engines/base.py:604
↓ 5 callersFunctionprobe_token_endpoint
Validate credentials with a standalone token-endpoint request. Uses a fresh ``httpx.AsyncClient`` rather than any channel's shared client, so
agent/src/channels/token_probe.py:70
↓ 5 callersFunctionprovider_diagnostics
Build a redacted provider diagnostic snapshot. Returns: Redacted provider/model/package/env/proxy/capability details.
agent/src/providers/llm.py:1532
↓ 5 callersFunctionpublic_job
Return the user-facing job shape without raw channel destination ids.
agent/src/scheduled_research/service.py:26
↓ 5 callersMethodpublish_outbound
Publish a response from the agent to channels.
agent/src/channels/bus/queue.py:27
↓ 5 callersMethodquery_fundamentals
Query a fundamental table and filter out rows unpublished by ``as_of``. After the PIT cut, rows are deduplicated so that each ``(ts_code,
agent/backtest/loaders/tushare_fundamentals.py:144
↓ 5 callersFunctionread_deck
(tmp_path, monkeypatch, presentation, expected_tokens=())
agent/tests/test_doc_reader_pptx_containers.py:19
↓ 5 callersFunctionread_document
Read any supported document; dispatch by extension. Args: file_path: Absolute path to the file. pages: Only used for PDF — e.g. "
agent/src/tools/doc_reader_tool.py:427
↓ 5 callersFunctionread_pdf
(tmp_path, texts, **kwargs)
agent/tests/test_doc_reader_native_fallback.py:25
↓ 5 callersMethodrebalance
Return value-only allocation changes against one explicitly pinned snapshot.
agent/src/portfolio/service.py:814
↓ 5 callersMethodrecord_bench
Record a bench result, assigning an auto-increment ID. Returns: The assigned result ID.
agent/src/strategy_store/store.py:314
↓ 5 callersMethodrecord_decay_snapshot
Record a decay monitoring snapshot. Returns the snapshot ID.
agent/src/strategy_store/store.py:157
↓ 5 callersMethodrecord_press_and_check_window
Record the current press, return True iff inside the window. Args: window_sec: Two-press window in seconds. Returns:
agent/cli/input.py:181
↓ 5 callersMethodrecover_extensionless_entries
Rename category entries that were written without the ``.md`` suffix. ``route_entry`` documents its second argument as "the .md filename",
agent/src/memory/hierarchy.py:92
↓ 5 callersMethodredirect_handler
(self, authorization_url: str)
agent/src/tools/mcp.py:198
↓ 5 callersMethodregister
(self, check: GroundingCheck)
agent/src/agent/grounding/registry.py:63
↓ 5 callersFunctionregistry_with_reader
()
agent/tests/test_result_artifacts.py:36
↓ 5 callersMethodremove_relations
Delete the .relations.json sidecar if it exists. Args: entry_path: Path to the memory file whose relations to remove.
agent/src/memory/semantic_links.py:360
↓ 5 callersFunctionrender_tool_event
Return a Rich :class:`Text` row describing a single tool call. Args: name: Raw tool name (``get_financials``); pretty-printed in output.
agent/cli/components/tool_event.py:150
↓ 5 callersMethodreplace_rows
Atomically replace ALL evidence rows with ``rows``. With strategy_ids, delete only those complete regime sets and reject rows outside
agent/src/strategy_discovery/evidence_store.py:270
↓ 5 callersFunctionrequire_inputs
Refuse to run unless every required input is present and usable. A key that is absent, ``None``, or an empty string counts as missing. Zero a
agent/src/quantlib/valuation/contracts.py:107
↓ 5 callersFunctionresolve_mcp_server_tool_name_segments
Resolve unique local server-name segments for MCP tool names. The first release keeps MCP tool names ASCII-safe by sanitizing server names. D
agent/src/tools/mcp.py:409
↓ 5 callersMethodresolve_wikilinks
Parse [[6-char-hex-id]] references from body text. Wikilinks provide explicit cross-references between memories. Format: [[abcdef]] w
agent/src/memory/semantic_links.py:321
↓ 5 callersMethodresolved_schedule
Return the effective default schedule (static or lazily derived).
agent/src/scheduling/system_jobs.py:234
↓ 5 callersFunctionroll_effective_spread
Calculate Roll's (1984) effective spread estimator from serial price changes. Roll's model: s = 2 * sqrt(-cov(ΔP_t, ΔP_{t-1})) if cov < 0, else 0
agent/src/quantlib/microstructure.py:26
↓ 5 callersMethodrun_phase
Flatten findings without changing predicate or issue order.
agent/src/agent/grounding/registry.py:92
↓ 5 callersFunctionrunner_arguments
Return the wire arguments for a live-path read, bound to one account. Args: connector: Broker key. operation: Generic operation (
agent/src/trading/service.py:1355
↓ 5 callersFunctionrunner_tool_name
Map a runner operation to a connector-specific remote MCP tool name.
agent/src/trading/service.py:1329
↓ 5 callersFunctionruntime_dir
Return the runtime state directory (``live_root()/runtime``). Returns: The directory path. Not created here; :meth:`JobStore.save` create
agent/src/live/runtime/jobstore.py:69
↓ 5 callersFunctionsafeGet
(key: string)
frontend/src/lib/storage.ts:7
↓ 5 callersFunctionsafe_document_path
Validate a document-reader file path. Args: p: User-supplied document path. `~` expansion is supported. Returns: Absolute re
agent/src/tools/path_utils.py:367
↓ 5 callersFunctionsafe_run_id
Resolve a bare run id to an existing allowed run directory. Args: run_id: Bare run directory name, not a path. Returns: Exis
agent/src/tools/path_utils.py:411
↓ 5 callersMethodsave
Atomically persist the full job set. Write sequence: temp file in same dir -> fsync -> os.replace -> fsync parent dir. A SIGKILL at a
agent/src/scheduled_research/store.py:129
↓ 5 callersFunctionsave_profile
Persist a ShadowProfile to disk as JSON.
agent/src/shadow_account/storage.py:67
↓ 5 callersFunctionsave_proposal
Persist a synthesized proposal so a later commit can re-validate it. Called by the read-only ``propose_mandate_profiles`` tool. Writing a pro
agent/src/live/mandate/commit.py:207
↓ 5 callersMethodsave_settings
(self, payload)
agent/tests/test_portfolio_routes.py:27
↓ 5 callersMethodscan_all
Scan base dir + all category subdirs for *.md files. Skips entries listed in _SKIP_NAMES and the archive/ directory. Includes flat-st
agent/src/memory/hierarchy.py:145
↓ 5 callersFunctionscenario
()
agent/tests/test_channels_attempt_progress.py:39
↓ 5 callersFunctionscenario
()
agent/tests/test_runtime_scheduler.py:111
↓ 5 callersMethodsearch
Search the latest revision of each series with optional provenance filters.
agent/src/research_artifacts/store.py:348
↓ 5 callersMethodselect_account
Scope a connection's reads to one broker account. The caller is responsible for checking the account against the broker's own account
agent/src/trading/connections.py:282
↓ 5 callersFunctionsend_imap_id
Send a best-effort RFC 2971 IMAP ``ID`` command; never raises. NetEase mailboxes (163/126/yeah.net) accept ``LOGIN`` but reject the first ``S
agent/src/channels/utils.py:108
↓ 5 callersFunctionsession_values
The D1 session bar (open/high/low/close/volume) from a raw day frame.
agent/tests/paper_trade_5m_fixtures.py:113
↓ 5 callersFunctionsharpe_ratio
Per-observation Sharpe ratio. Deliberately NOT annualised: every other function in this module pairs the Sharpe with an observation count, an
agent/src/quantlib/multipletesting.py:180
↓ 5 callersMethodshould_compress
Determine if an entry should be compressed and to what level. Args: compression_level: Current level ("raw", "daily", "digest").
agent/src/memory/compression.py:171
↓ 5 callersFunctionsource_interval
Return the bar size to request from a loader when serving ``interval``. Args: interval: The bar size the caller asked for. Returns:
agent/backtest/loaders/base.py:284
↓ 5 callersFunctionsplit_suffix
Split a broker account-type suffix off a normalized token. ``EURUSDM`` → ``("EURUSD", "M")`` when the first six characters form a currency pa
agent/src/trading/connectors/mt5/symbols.py:44
↓ 5 callersMethodstart
Start the background loop. Idempotent. When disabled, this is a no-op. Must be called from the event loop that will own the task.
agent/src/scheduling/kernel.py:200
↓ 5 callersMethodstop
()
desktop/electron/src/backend-manager.ts:162
↓ 5 callersFunctionstop_http_mcp_server
Terminate an HTTP MCP subprocess and wait for clean exit.
agent/tests/mcp_http_test_helpers.py:90
↓ 5 callersFunctionsupervised_pulls
Yield items while the stream can still make progress. Raises :class:`StreamInterrupted` when the idle deadline passes with no chunk, the tota
agent/src/providers/stream_guard.py:131
↓ 5 callersMethodterminate
(self)
agent/tests/test_portfolio_routes.py:150
↓ 5 callersMethodto_dict
(self)
agent/src/pixel_agents/office.py:57
↓ 5 callersMethodto_dict
Return a JSON-compatible representation with explicit evidence gaps.
agent/src/research_artifacts/models.py:38
↓ 5 callersMethodto_sse
Format the event as an SSE text frame. Returns: Text that conforms to the SSE specification.
agent/src/session/events.py:38
↓ 5 callersMethodtokens
Estimate the next request from the last provider input-token count.
agent/src/swarm/context.py:48
↓ 5 callersMethodtrip_halt
(self, by: str, reason: str, broker: str | None = None)
agent/tests/test_runtime_runner.py:138
↓ 5 callersFunctiontry_build_backtest_summary
Best-effort :func:`build_backtest_summary` that never raises. Args: run_dir: Backtest run directory root. ohlcv_paths: Optional p
agent/src/tools/backtest_summary.py:138
↓ 5 callersFunctionts_resi
Latest observation's residual from the same trailing OLS fit.
agent/src/factors/base.py:297
↓ 5 callersFunctiontvpi
Total value to paid-in: realised plus unrealised value per unit drawn. By construction this is ``dpi + rvpi``; the identity is asserted in the
agent/src/quantlib/fundmath.py:770
↓ 5 callersMethodupdate_artifact
Replace an artifact record. Returns updated artifact or None if not found.
agent/src/strategy_store/store.py:107
↓ 5 callersFunctionverify_market_cap
Verify ``market cap = price × shares`` against a reported value. Args: price: Current share price. shares: Total share count.
agent/src/tools/financial_rigor_tool.py:151
↓ 5 callersFunctionverify_tolerance_covers
Return the recorded samples the tolerance does not bound.
agent/backtest/binance_tolerance_calibration.py:145
↓ 5 callersFunctionwait_until
(predicate, timeout=8.0)
agent/tests/test_background_host_lifecycle.py:25
↓ 5 callersFunctionwrite_binance_drift_evidence
Append one strict JSONL record and replace its latest summary.
agent/backtest/binance_shadow_evidence.py:198
↓ 4 callersMethod__init__
(self)
agent/tests/test_plan_rejected.py:301
↓ 4 callersMethod__init__
(self, *, stop_before: bool = False)
agent/tests/test_base_engine.py:559
↓ 4 callersFunction_aapl_endpoint_ledger
A ledger holding two observed AAPL.US closes, 100.0 and 112.4.
agent/tests/test_agent_grounding.py:3113
↓ 4 callersMethod_actual_positions_frame
Materialize recorded post-fill weights as an artifact-ready frame.
agent/backtest/engines/base.py:2184
↓ 4 callersFunction_agent
(llm: _CapturingLLM, run_dir: Path)
agent/tests/test_agent_goal_context.py:48
↓ 4 callersFunction_agent
(tool: BaseTool, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:124
↓ 4 callersFunction_agent_root
Return the agent package root.
agent/src/tools/path_utils.py:103
↓ 4 callersFunction_agent_spec
( *, agent_id: str, tools: list[str], max_iterations: int = 4, )
agent/tests/test_swarm_m4_e2e.py:171
↓ 4 callersFunction_aligned_returns
Build a date-aligned daily-returns frame (one column per code). Mirrors the alignment in ``_rolling_correlation_matrix``: indexes are normali
agent/backtest/regime.py:105
↓ 4 callersFunction_all_engines
Merge built-in + plugins. Plugins override built-ins on name collision.
agent/src/tools/ocr/engine.py:86
↓ 4 callersFunction_all_text
(prs: Presentation)
agent/tests/quantlib/valuation/test_artifact.py:819
↓ 4 callersFunction_answer
(ref)
agent/tests/test_grounding_multi_derived_refs.py:29
↓ 4 callersFunction_artifact_to_dict
Convert a frozen dataclass artifact to a JSON-safe dict.
agent/src/tools/sdm_status_tool.py:33
↓ 4 callersFunction_as_float
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:659
↓ 4 callersFunction_as_float
Coerce ``value`` to a finite float, else ``None`` (quantity may be signed).
agent/src/live/enforcement.py:463
↓ 4 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/okx/sdk.py:650
↓ 4 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:651
↓ 4 callersFunction_assert_row_zscore_properties
(result: pd.DataFrame)
agent/tests/test_get_fundamentals_tool.py:92
↓ 4 callersFunction_assert_whole_call_failure
(outcome, message: str, request)
agent/tests/test_paper_trade_strategy_path.py:129
↓ 4 callersFunction_assumptions
(engine: ChinaFuturesEngine)
agent/tests/test_china_futures_pricing_assumptions.py:42
↓ 4 callersFunction_assumptions
(engine: GlobalFuturesEngine)
agent/tests/test_global_futures_pricing_assumptions.py:47
← previousnext →2,001–2,100 of 26,887, ranked by callers