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
↓ 5 callers
Method
mark_running
Mark the attempt as running and record when execution began.
agent/src/session/models.py:307
↓ 5 callers
Function
merton_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 callers
Function
modified_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 callers
Function
money
(value: number | null | undefined, currency: string = "USD")
frontend/src/pages/Portfolio.tsx:61
↓ 5 callers
Function
money_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 callers
Function
normalize_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 callers
Function
normalize_symbol
Normalize a symbol to ccxt unified ``BASE/QUOTE`` format.
agent/src/trading/connectors/binance/shaping.py:11
↓ 5 callers
Function
num
(value: unknown)
frontend/src/components/charts/FactorResearchPanel.tsx:16
↓ 5 callers
Function
num
(value: unknown)
frontend/src/components/charts/StrategyResearchDashboard.tsx:17
↓ 5 callers
Method
on_bar
Per-bar hooks dispatched by market type.
agent/backtest/engines/composite.py:345
↓ 5 callers
Function
panel
(values, times=None)
agent/tests/quantlib/test_neutralization.py:15
↓ 5 callers
Function
parent_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 callers
Method
poll
(self, timeout: float)
agent/src/tools/paper_trade/strategy_process.py:42
↓ 5 callers
Function
positive_env_float
Read a positive float env var, warning and falling back on invalid values.
agent/backtest/loaders/base.py:365
↓ 5 callers
Method
prepare_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 callers
Function
probe_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 callers
Function
provider_diagnostics
Build a redacted provider diagnostic snapshot. Returns: Redacted provider/model/package/env/proxy/capability details.
agent/src/providers/llm.py:1532
↓ 5 callers
Function
public_job
Return the user-facing job shape without raw channel destination ids.
agent/src/scheduled_research/service.py:26
↓ 5 callers
Method
publish_outbound
Publish a response from the agent to channels.
agent/src/channels/bus/queue.py:27
↓ 5 callers
Method
query_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 callers
Function
read_deck
(tmp_path, monkeypatch, presentation, expected_tokens=())
agent/tests/test_doc_reader_pptx_containers.py:19
↓ 5 callers
Function
read_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 callers
Function
read_pdf
(tmp_path, texts, **kwargs)
agent/tests/test_doc_reader_native_fallback.py:25
↓ 5 callers
Method
rebalance
Return value-only allocation changes against one explicitly pinned snapshot.
agent/src/portfolio/service.py:814
↓ 5 callers
Method
record_bench
Record a bench result, assigning an auto-increment ID. Returns: The assigned result ID.
agent/src/strategy_store/store.py:314
↓ 5 callers
Method
record_decay_snapshot
Record a decay monitoring snapshot. Returns the snapshot ID.
agent/src/strategy_store/store.py:157
↓ 5 callers
Method
record_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 callers
Method
recover_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 callers
Method
redirect_handler
(self, authorization_url: str)
agent/src/tools/mcp.py:198
↓ 5 callers
Method
register
(self, check: GroundingCheck)
agent/src/agent/grounding/registry.py:63
↓ 5 callers
Function
registry_with_reader
()
agent/tests/test_result_artifacts.py:36
↓ 5 callers
Method
remove_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 callers
Function
render_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 callers
Method
replace_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 callers
Function
require_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 callers
Function
resolve_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 callers
Method
resolve_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 callers
Method
resolved_schedule
Return the effective default schedule (static or lazily derived).
agent/src/scheduling/system_jobs.py:234
↓ 5 callers
Function
roll_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 callers
Method
run_phase
Flatten findings without changing predicate or issue order.
agent/src/agent/grounding/registry.py:92
↓ 5 callers
Function
runner_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 callers
Function
runner_tool_name
Map a runner operation to a connector-specific remote MCP tool name.
agent/src/trading/service.py:1329
↓ 5 callers
Function
runtime_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 callers
Function
safeGet
(key: string)
frontend/src/lib/storage.ts:7
↓ 5 callers
Function
safe_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 callers
Function
safe_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 callers
Method
save
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 callers
Function
save_profile
Persist a ShadowProfile to disk as JSON.
agent/src/shadow_account/storage.py:67
↓ 5 callers
Function
save_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 callers
Method
save_settings
(self, payload)
agent/tests/test_portfolio_routes.py:27
↓ 5 callers
Method
scan_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 callers
Function
scenario
()
agent/tests/test_channels_attempt_progress.py:39
↓ 5 callers
Function
scenario
()
agent/tests/test_runtime_scheduler.py:111
↓ 5 callers
Method
search
Search the latest revision of each series with optional provenance filters.
agent/src/research_artifacts/store.py:348
↓ 5 callers
Method
select_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 callers
Function
send_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 callers
Function
session_values
The D1 session bar (open/high/low/close/volume) from a raw day frame.
agent/tests/paper_trade_5m_fixtures.py:113
↓ 5 callers
Function
sharpe_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 callers
Method
should_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 callers
Function
source_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 callers
Function
split_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 callers
Method
start
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 callers
Method
stop
()
desktop/electron/src/backend-manager.ts:162
↓ 5 callers
Function
stop_http_mcp_server
Terminate an HTTP MCP subprocess and wait for clean exit.
agent/tests/mcp_http_test_helpers.py:90
↓ 5 callers
Function
supervised_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 callers
Method
terminate
(self)
agent/tests/test_portfolio_routes.py:150
↓ 5 callers
Method
to_dict
(self)
agent/src/pixel_agents/office.py:57
↓ 5 callers
Method
to_dict
Return a JSON-compatible representation with explicit evidence gaps.
agent/src/research_artifacts/models.py:38
↓ 5 callers
Method
to_sse
Format the event as an SSE text frame. Returns: Text that conforms to the SSE specification.
agent/src/session/events.py:38
↓ 5 callers
Method
tokens
Estimate the next request from the last provider input-token count.
agent/src/swarm/context.py:48
↓ 5 callers
Method
trip_halt
(self, by: str, reason: str, broker: str | None = None)
agent/tests/test_runtime_runner.py:138
↓ 5 callers
Function
try_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 callers
Function
ts_resi
Latest observation's residual from the same trailing OLS fit.
agent/src/factors/base.py:297
↓ 5 callers
Function
tvpi
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 callers
Method
update_artifact
Replace an artifact record. Returns updated artifact or None if not found.
agent/src/strategy_store/store.py:107
↓ 5 callers
Function
verify_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 callers
Function
verify_tolerance_covers
Return the recorded samples the tolerance does not bound.
agent/backtest/binance_tolerance_calibration.py:145
↓ 5 callers
Function
wait_until
(predicate, timeout=8.0)
agent/tests/test_background_host_lifecycle.py:25
↓ 5 callers
Function
write_binance_drift_evidence
Append one strict JSONL record and replace its latest summary.
agent/backtest/binance_shadow_evidence.py:198
↓ 4 callers
Method
__init__
(self)
agent/tests/test_plan_rejected.py:301
↓ 4 callers
Method
__init__
(self, *, stop_before: bool = False)
agent/tests/test_base_engine.py:559
↓ 4 callers
Function
_aapl_endpoint_ledger
A ledger holding two observed AAPL.US closes, 100.0 and 112.4.
agent/tests/test_agent_grounding.py:3113
↓ 4 callers
Method
_actual_positions_frame
Materialize recorded post-fill weights as an artifact-ready frame.
agent/backtest/engines/base.py:2184
↓ 4 callers
Function
_agent
(llm: _CapturingLLM, run_dir: Path)
agent/tests/test_agent_goal_context.py:48
↓ 4 callers
Function
_agent
(tool: BaseTool, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:124
↓ 4 callers
Function
_agent_root
Return the agent package root.
agent/src/tools/path_utils.py:103
↓ 4 callers
Function
_agent_spec
( *, agent_id: str, tools: list[str], max_iterations: int = 4, )
agent/tests/test_swarm_m4_e2e.py:171
↓ 4 callers
Function
_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 callers
Function
_all_engines
Merge built-in + plugins. Plugins override built-ins on name collision.
agent/src/tools/ocr/engine.py:86
↓ 4 callers
Function
_all_text
(prs: Presentation)
agent/tests/quantlib/valuation/test_artifact.py:819
↓ 4 callers
Function
_answer
(ref)
agent/tests/test_grounding_multi_derived_refs.py:29
↓ 4 callers
Function
_artifact_to_dict
Convert a frozen dataclass artifact to a JSON-safe dict.
agent/src/tools/sdm_status_tool.py:33
↓ 4 callers
Function
_as_float
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:659
↓ 4 callers
Function
_as_float
Coerce ``value`` to a finite float, else ``None`` (quantity may be signed).
agent/src/live/enforcement.py:463
↓ 4 callers
Function
_as_iter
(value: Any)
agent/src/trading/connectors/okx/sdk.py:650
↓ 4 callers
Function
_as_list
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:651
↓ 4 callers
Function
_assert_row_zscore_properties
(result: pd.DataFrame)
agent/tests/test_get_fundamentals_tool.py:92
↓ 4 callers
Function
_assert_whole_call_failure
(outcome, message: str, request)
agent/tests/test_paper_trade_strategy_path.py:129
↓ 4 callers
Function
_assumptions
(engine: ChinaFuturesEngine)
agent/tests/test_china_futures_pricing_assumptions.py:42
↓ 4 callers
Function
_assumptions
(engine: GlobalFuturesEngine)
agent/tests/test_global_futures_pricing_assumptions.py:47
← previous
next →
2,001–2,100 of 26,887, ranked by callers