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
↓ 4 callers
Function
default_goal_criteria
Return the default research goal acceptance checklist.
agent/src/goal/context.py:18
↓ 4 callers
Method
delete
Delete a connection and any secrets stored for it. Args: connection_id: Identifier of the connection to remove. Raises:
agent/src/trading/connections.py:302
↓ 4 callers
Method
describe_table
Return schema metadata for a supported table.
agent/backtest/loaders/tushare_fundamentals.py:137
↓ 4 callers
Function
detect_format
Detect broker format by column-name signature. Args: df: Raw DataFrame from load_dataframe. Returns: Format identifier; "unk
agent/src/tools/trade_journal_parsers.py:173
↓ 4 callers
Function
diff_artifacts
Diff two artifacts of the same model: which fields changed, by how much. Args: baseline: The "before" artifact. updated: The "aft
agent/src/quantlib/valuation/artifact.py:964
↓ 4 callers
Method
disconnect
()
agent/src/channels/mochat.py:425
↓ 4 callers
Function
dpi
Distributions to paid-in: realised cash returned per unit drawn. Args: series: The cash flows. contribution_kinds: Kind labels co
agent/src/quantlib/fundmath.py:717
↓ 4 callers
Function
dv01
Cash value of one basis point on a stated par position. Args: face: Par/redemption amount the quoted price is per, conventionally 100.
agent/src/quantlib/fixedincome.py:521
↓ 4 callers
Function
email_pdf_password_configured
Return whether the active Email channel has a private PDF password. Returns: Password presence only, preferring the running adapter confi
agent/src/scheduled_research/service.py:80
↓ 4 callers
Function
ensure_supported_currencies
Validate currency identity separately from current FX availability. A real ISO-4217 currency is valid portfolio metadata even when the current
agent/src/portfolio/compatibility.py:213
↓ 4 callers
Function
envelope
Wrap a broker ``data`` object the way the MCP adapter returns it.
agent/tests/robinhood_mcp_helpers.py:33
↓ 4 callers
Function
equity_bridge
Bridge enterprise value to equity value and value per share. Args: enterprise_value: EV entering the bridge. total_debt: Non-nega
agent/src/quantlib/valuation/dcf.py:995
↓ 4 callers
Function
error_outcome
( error: EngineError, account_state: AccountState, market_data: data.MarketDataResult, market:
agent/src/tools/paper_trade/engine.py:525
↓ 4 callers
Function
evaluate_isolated
( account: AccountState, frames: dict[str, MarketRiskFrame], price_field: str = "adverse", )
agent/backtest/perpetual_risk.py:357
↓ 4 callers
Method
event
Build an event trigger driven by a pure predicate. Args: predicate: A callable taking the runner-supplied event-state mapping
agent/src/live/runtime/triggers.py:216
↓ 4 callers
Method
execute
Execute a memory action. Args: **kwargs: Must include action; other params depend on action. Returns: JSON r
agent/src/tools/remember_tool.py:80
↓ 4 callers
Function
export_summary_deck
Export a one-slide valuation summary: conclusion, assumptions, sensitivity, gaps. Works for any ``model_name``. The same provenance footer requir
agent/src/quantlib/valuation/artifact.py:1566
↓ 4 callers
Function
factor_return_attribution
Split a portfolio return into factor contributions plus a specific residual. Args: portfolio_exposures: Portfolio exposure per factor.
agent/src/quantlib/factormodel.py:561
↓ 4 callers
Method
fee
Total fee for one fill, quantized to 2dp ROUND_HALF_UP.
agent/src/tools/paper_trade/rules.py:168
↓ 4 callers
Method
fetch
Fetch OHLCV history from LongPort OpenAPI. Args: codes: Project symbols such as ``AAPL``, ``AAPL.US``, ``700.HK``,
agent/backtest/loaders/longbridge.py:256
↓ 4 callers
Function
fetch_data_map
Fetch and sanitize bars through the canonical loader registry. This is the shared entry point for backtest execution and reconstruction consu
agent/backtest/runner.py:2017
↓ 4 callers
Function
fit_garch
Fit a GARCH(1,1) model and forecast forward volatility. Model: ``r_t = μ + ε_t`` with ``σ²_t = ω + α·ε²_{t-1} + β·σ²_{t-1}``. ``α + β`` is vo
agent/src/quantlib/timeseries.py:423
↓ 4 callers
Function
frame_caliber
Caliber of one served frame, honoring what the loader actually served. A loader that converted its series (e.g. the additive-to-multiplicative
agent/backtest/loaders/registry.py:363
↓ 4 callers
Function
from_usd
Convert a USD value into currency, failing closed on a rate gap.
agent/src/portfolio/fx.py:51
↓ 4 callers
Function
gaussian_copula_cdf
Evaluate bivariate Gaussian copula CDF.
agent/src/quantlib/copula.py:191
↓ 4 callers
Method
generate
(self, data_map)
agent/tests/test_run_card.py:284
↓ 4 callers
Method
get
(self, name)
agent/tests/test_readonly_replay_after_microcompact.py:40
↓ 4 callers
Function
getPnlColors
()
frontend/src/lib/pnl-colors.ts:33
↓ 4 callers
Method
get_artifact
Return a single artifact by ID, or ``None``.
agent/src/strategy_store/store.py:221
↓ 4 callers
Method
get_goal_snapshot
(self, _goal_id)
agent/tests/test_grounding_release.py:892
↓ 4 callers
Method
get_positions
(self)
agent/tests/test_position_read_error_envelope.py:82
↓ 4 callers
Method
get_rehab
(self, code)
agent/tests/test_futu_extended_reads.py:49
↓ 4 callers
Method
get_relation_path
Return the .relations.json path for a given memory file. The sidecar file is placed in the same directory as the memory file, named a
agent/src/memory/semantic_links.py:346
↓ 4 callers
Function
get_runtime_subdir
Return a runtime subdirectory for *name* under the VT data dir.
agent/src/channels/utils.py:39
↓ 4 callers
Method
get_token_path
(self)
agent/src/providers/openai_codex.py:112
↓ 4 callers
Function
granger_test
Test whether ``x`` Granger-causes ``y``. Granger causality is predictive, not structural: it asks only whether past ``x`` improves the foreca
agent/src/quantlib/timeseries.py:379
↓ 4 callers
Function
has_cached_oauth_token
Return whether a cached OAuth token already exists for a live channel. FastMCP's OAuth provider persists tokens through the same :func:`~src.
agent/src/live/registry.py:122
↓ 4 callers
Method
has_session_bar
(self, day: str)
agent/src/tools/paper_trade/data.py:356
↓ 4 callers
Function
head_and_shoulders
Detect head-and-shoulders top pattern. Args: close: Closing price series. window: Peak/valley detection window. Returns:
agent/src/tools/pattern_tool.py:169
↓ 4 callers
Function
heuristic_limit_prices
Derive (up_limit, down_limit) from the board ratio and previous close. Ratio source: ``china_a._price_limit`` (main board 10%, ChiNext/STAR 2
agent/src/tools/paper_trade/limits_cn_a.py:111
↓ 4 callers
Method
history
Return the value series built only from complete snapshots. Incomplete snapshots are excluded because a source that failed contribute
agent/src/portfolio/service.py:694
↓ 4 callers
Method
history
Return snapshot totals over time, oldest first. Args: limit: Maximum number of snapshots to read, clamped to 1..2000.
agent/src/portfolio/store.py:143
↓ 4 callers
Method
initialize
(self, *args: Any, **kwargs: Any)
agent/tests/test_mt5_connector.py:141
↓ 4 callers
Method
interval_ms
Return the recurrence interval in ms, or ``None`` for one-shot jobs. Delegates to the shared trigger grammar (:func:`src.scheduling.t
agent/src/live/runtime/scheduler.py:98
↓ 4 callers
Method
is_available
Return True if the LongPort SDK is installed and credentials exist. Availability checks are side-effect free: they validate configured
agent/backtest/loaders/longbridge.py:242
↓ 4 callers
Method
is_blocked
Whether this exact call failed often enough to refuse a repeat. Args: key: Canonical call identity (name, serialized arguments).
agent/src/agent/tool_progress.py:128
↓ 4 callers
Function
is_due
Return whether *job* should fire at ``now_ms``. Cancelled and failed jobs are terminal and never re-dispatched; a failed job in particular ke
agent/src/scheduled_research/executor.py:108
↓ 4 callers
Function
is_interval_schedule
Return whether *schedule* is the interval-milliseconds form. The one place that answers "interval or cron?", so callers that treat the two fo
agent/src/scheduling/triggers.py:113
↓ 4 callers
Function
is_paper_account
Return whether an account number is a Tiger paper account (17 digits).
agent/src/trading/connectors/tiger/sdk.py:56
↓ 4 callers
Function
is_quality_enabled
Check if quality scoring is enabled via VT_MEMORY_QUALITY env var.
agent/src/memory/lifecycle.py:35
↓ 4 callers
Function
is_safe_job_id
Whether *job_id* is authorable through user-facing surfaces. The single shape predicate behind every create/mutate guard; never raises, non-s
agent/src/scheduling/system_jobs.py:143
↓ 4 callers
Function
kmv_distance_to_default
KMV's linear distance to default, ``(V - DP) / (V * sigma_V)``. This is the form the skill documents for KMV and is *not* the same quantity a
agent/src/quantlib/credit.py:484
↓ 4 callers
Method
list
(self)
agent/src/tools/paper_trade/accounts.py:147
↓ 4 callers
Method
list_agents
(self)
agent/src/pixel_agents/office.py:212
↓ 4 callers
Method
list_artifacts
(self, **kwargs)
agent/tests/test_strategy_discovery_facade.py:141
↓ 4 callers
Function
list_internal
Return every registered key, sorted.
agent/src/scheduling/registry.py:129
↓ 4 callers
Function
live_broker_key_for_entry
Resolve the canonical broker key for a config entry. Args: server_key: The MCP server key from config. server: The server config
agent/src/config/schema.py:110
↓ 4 callers
Function
live_broker_key_for_url
Resolve a live broker key from an MCP server URL host. Args: url: The MCP server ``url`` from config. Returns: The canonical
agent/src/config/schema.py:91
↓ 4 callers
Function
loadChartSymbol
( symbol: string, requestedRunId = runId, generation = runGenerationRef.current, )
frontend/src/pages/RunDetail.tsx:253
↓ 4 callers
Function
load_industry_frame_with_coverage
Load PIT industry labels as a wide frame plus a coverage fraction. Args: symbols: Panel symbols; only names present in the membership dat
agent/backtest/loaders/industry_loader.py:163
↓ 4 callers
Method
load_run
(self, run_id)
agent/tests/test_cli_swarm_retry.py:68
↓ 4 callers
Function
load_run_context
Load normalized request context for a run detail page. Falls back to planner_output.json when req.json context is empty (common in session mo
agent/src/ui_services.py:102
↓ 4 callers
Method
logout
(self)
agent/tests/test_email_connection_test.py:130
↓ 4 callers
Function
maintenance_margin
( position: PositionState, mark_price: float, schedule: MaintenanceSchedule )
agent/backtest/perpetual_risk.py:181
↓ 4 callers
Function
makeStatus
(overrides: Partial<LiveStatus> = {})
frontend/src/pages/__tests__/Runtime.test.tsx:14
↓ 4 callers
Function
map_symbol
Translate a Vibe-Trading symbol into Yahoo's ticker convention. Args: symbol: Project-side symbol, e.g. ``AAPL.US``, ``00700.HK``, ``TD.T
agent/backtest/loaders/yahoo_client.py:72
↓ 4 callers
Function
map_symbol
``005930.KS`` / ``247540.KQ`` -> pykrx's bare 6-digit ticker.
agent/backtest/loaders/pykrx_loader.py:66
↓ 4 callers
Method
mark_completed
Mark the attempt as completed. Args: summary: Execution summary.
agent/src/session/models.py:313
↓ 4 callers
Function
mutate
(action: "create" | "assign" | "complete" | "rank", arguments_: Record<string, unknown>)
frontend/src/pages/PixelOffice.tsx:28
↓ 4 callers
Function
navigate
(path)
wiki/docs/main.js:187
↓ 4 callers
Function
normal_cash_lag
Settlement lag in sessions for a normal-cash trade on *trade_date*.
agent/backtest/engines/argentina_equity.py:355
↓ 4 callers
Function
normalizeRunStatus
(value: unknown)
frontend/src/lib/swarmStatus.ts:87
↓ 4 callers
Function
normalize_base
Collapse ``EUR/USD`` / ``eur-usd`` / ``EURUSD.FX`` to ``EURUSD``. Uppercases and strips separators plus the project's ``.FX`` market tag. Bro
agent/src/trading/connectors/mt5/symbols.py:29
↓ 4 callers
Function
normalize_declared_quote_currency
Hold a frame to its market's currency contract and record the declared quote. Args: frame: Normalized OHLCV frame. code: The proj
agent/backtest/loaders/base.py:97
↓ 4 callers
Function
normalize_result
Translate IBKR's structured MCP result into the shared broker shapes.
agent/src/trading/connectors/ibkr/mcp.py:39
↓ 4 callers
Method
note
Record why a call in this iteration produced nothing new. Args: kind: One of the ``_NOTE_TEXT`` keys. tool: Tool name
agent/src/agent/tool_progress.py:68
↓ 4 callers
Method
observe
Anchor on the real input size of the request just answered. Args: input_tokens: Provider-reported prompt tokens of that request.
agent/src/agent/context_budget.py:182
↓ 4 callers
Function
on_progress
(n_done: int, n_total: int, aid: str)
agent/src/factors/cli_handlers.py:468
↓ 4 callers
Function
optimize
Module-level entry: turnover-penalized mean-variance positions.
agent/backtest/optimizers/turnover_aware.py:300
↓ 4 callers
Function
parseTime
* Safari-safe date parse: "YYYY-MM-DD HH:MM:SS" -> "YYYY-MM-DDTHH:MM:SS". * * A bare "YYYY-MM-DD" is specified to parse as UTC midnight while every
frontend/src/lib/tearsheet.ts:53
↓ 4 callers
Function
parse_account_state
Parse ``account_state`` alone (public: the AM-4-4 error-path hash in ``wire.py`` gates on state parseability without a full request parse).
agent/src/tools/paper_trade/schema.py:333
↓ 4 callers
Function
parse_manifest
Validate a local manifest as a strictly read-only connector contract. Args: path: Path to a ``connector.json`` manifest file. Return
agent/src/trading/local_plugins.py:108
↓ 4 callers
Function
partial
Return a partial's text without its trailing newline. Args: name: Block name, e.g. ``site-header``. Returns: The partial mar
wiki/scripts/sync_site_chrome.py:70
↓ 4 callers
Function
performRequest
Bound both the connection and body read; never automatically replay writes.
frontend/src/lib/api.ts:16
↓ 4 callers
Function
pick_thinking_verb
Pick a random verb suffixed with an ellipsis. Args: seed: Optional deterministic seed (used by tests). When ``None`` the modu
agent/cli/utils/thinking_verbs.py:24
↓ 4 callers
Function
positive_env_int
Read a positive integer env var, warning and falling back on invalid values.
agent/backtest/loaders/base.py:349
↓ 4 callers
Function
prepare_adaptation
Create a child, seed its config, and return the generation instructions. Args: strategy_id: Existing SDM strategy id, with its ``sdm:`` p
agent/src/strategy_discovery/adaptation_workflow.py:18
↓ 4 callers
Function
profiles_dir
()
agent/src/shadow_account/storage.py:29
↓ 4 callers
Function
public_reasoning_effort
(value: str | None)
agent/src/swarm/models.py:117
↓ 4 callers
Function
qualified_path
Render the full ``"Parent > Child"`` address of one section.
agent/src/agent/skills.py:318
↓ 4 callers
Method
query
(self, sql: str, params: dict[str, str] | None = None)
agent/src/tools/paper_trade/limits_cn_a.py:210
↓ 4 callers
Function
read_workbook
(tmp_path, monkeypatch, rows, second_sheet=False)
agent/tests/test_doc_reader_excel_literal_text.py:14
↓ 4 callers
Function
readonly_profile_catalog
Return profiles with a usable read surface and their portfolio eligibility. Returns: One row per eligible profile, sorted by connector, e
agent/src/trading/connections.py:496
↓ 4 callers
Method
record_decay_snapshot
Record a decay monitoring snapshot, assigning an auto-increment ID. Returns: The assigned snapshot ID.
agent/src/strategy_store/store.py:386
↓ 4 callers
Method
recover_stale_running
Reset jobs left ``RUNNING`` by a previous executor process. This runs at most once per executor instance. Jobs that become ``RUNNING`
agent/src/scheduled_research/executor.py:336
↓ 4 callers
Method
reindex_from_store
Rebuild the entire index from file-based session store. Args: store_base_dir: Root directory of the SessionStore (contains sessio
agent/src/session/search.py:393
↓ 4 callers
Function
reject_live_execution_objective
Reject direct live-trading or order-execution goal text. Args: objective: Research goal objective. Raises: ValueError: If th
agent/src/goal/policy.py:60
↓ 4 callers
Function
remote_arguments
Return IBKR's argument-free account/position request payload.
agent/src/trading/connectors/ibkr/mcp.py:32
↓ 4 callers
Function
render
(content)
agent/tests/test_email_rich_delivery.py:213
↓ 4 callers
Function
render_block
(*, detailed: bool = False)
agent/src/trading/capability_matrix.py:105
← previous
next →
2,501–2,600 of 26,887, ranked by callers