Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 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
Method
disk_lock
Serialize cache mutation across local CLI/API processes.
agent/src/data_gateway/cache.py:28
↓ 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
Method
effective_tools
Narrow an agent's tool whitelist for this task; never widen it. Args: agent: Agent that executes this task. Returns:
agent/src/swarm/models.py:269
↓ 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
Method
emit
(kind: str, value: str)
agent/src/providers/copilot_auth.py:459
↓ 4 callers
Function
encode_financial_facts
Serialize a validated envelope for ResearchArtifactStore.save(content=...).
agent/src/research_artifacts/financial_facts.py:201
↓ 4 callers
Method
ensure_migrated
Migrate a pre-thread session before any thread read or write. Args: session_id: Session ID to pass to the migration routine.
agent/src/session/store.py:61
↓ 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:579
↓ 4 callers
Function
evaluate
(name: str, phase: str, start: int, stop: int, parameters: dict)
agent/src/research_lab/studies.py:130
↓ 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
Read a file. Args: **kwargs: Must include path. Optional pointer (RFC 6901 selection inside a JSON file), offset
agent/src/tools/read_file_tool.py:221
↓ 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:84
↓ 4 callers
Method
export_state
Return the ledger's records, keyed as held, for a later turn to restore. Returns: JSON-serialisable ledger state with its schema
agent/src/product/identity/ledger.py:124
↓ 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
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
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
format_duration
Render a duration as a short, human-readable string. Args: value: Numeric duration in the specified unit. unit: Input unit, eithe
agent/cli/utils/format.py:13
↓ 4 callers
Method
from_messages
Build context from user-authored text while preserving that text verbatim. Args: raw_user_message: Current user message, kept exa
agent/src/product/identity/constraints.py:93
↓ 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
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
Function
get_config_candidates
Return supported config path candidates in lookup order. Returns: Candidate config paths ordered by lookup priority. When an explicit
agent/src/config/paths.py:57
↓ 4 callers
Function
get_default_source_order
Return a copy of ``market``'s default chain (empty if unknown).
agent/backtest/loaders/registry.py:534
↓ 4 callers
Function
get_history_store
Lazy shared history store; never follows VIBE_TRADING_HOME into a repo.
agent/src/data_gateway/history_store.py:830
↓ 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
Function
get_swarm_runs_dir
Return the user-level directory holding swarm run records.
agent/src/config/paths.py:47
↓ 4 callers
Method
get_token_path
Locate the token file owned by this storage instance. Returns: The token path selected when the storage was created.
agent/src/providers/openai_codex.py:104
↓ 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
Method
handle_event
(self, event_type: str, data: dict)
agent/tests/test_cli_conversation.py:270
↓ 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:124
↓ 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:171
↓ 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:696
↓ 4 callers
Method
initialize
(self, *args: Any, **kwargs: Any)
agent/tests/test_mt5_connector.py:141
↓ 4 callers
Function
inspect_preset
Validate a swarm preset and return a dry-run execution plan. Args: name: Preset name without the .yaml extension. Returns: P
agent/src/swarm/presets.py:148
↓ 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
Check whether this exact call failed often enough to refuse a repeat. Args: key: Canonical call identity (name, serialized argume
agent/src/product/tool_progress.py:119
↓ 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_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
is_valid_source_order
True when ``order`` is a permutation of ``market``'s default chain. Multiset equality — every default member exactly once, nothing extra — so
agent/backtest/loaders/registry.py:521
↓ 4 callers
Method
item_events
(self, kind: str)
agent/tests/test_session_queued_input.py:169
↓ 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
landlock_spec
The Landlock ruleset for one command, matching what Seatbelt allows. Everything is readable except the runtime root's credential paths; the w
agent/src/tools/sandbox.py:505
↓ 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
Method
list_sessions
List stored sessions, most recent first. Args: limit: Maximum number of sessions. Returns: The sessions.
agent/vibe_trading/client.py:353
↓ 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:254
↓ 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
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:106
↓ 4 callers
Function
loading_policy
Read the shipped tool-loading policy. Returns: The decoded settings from the JSON file beside this module.
agent/src/product/tool_loading.py:15
↓ 4 callers
Method
lot_size
Board lot for one symbol: cn_a 100 / hk per-symbol / us 1.
agent/src/tools/paper_trade/rules.py:138
↓ 4 callers
Function
main
Load config, fetch data, run the selected backtest engine. With ``source="auto"``, routes each code through the appropriate loader. Args:
agent/backtest/runner.py:1504
↓ 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
make_bundle
(root, case)
agent/tests/harness_eval/test_research_suite.py:22
↓ 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_cancelled
Mark the attempt as user-cancelled. Args: reason: Optional free-text reason, redacted before storing.
agent/src/session/models.py:273
↓ 4 callers
Method
mark_completed
Mark the attempt as completed. Args: summary: Execution summary. The existing summary is kept if this is empty or None.
agent/src/session/models.py:244
↓ 4 callers
Function
migrated_history
Replay archived rows through the real one-time migration.
agent/tests/test_session_service_lifecycle.py:283
↓ 4 callers
Function
model
(model_name=None, **kwargs)
agent/tests/test_swarm_selected_inputs.py:602
↓ 4 callers
Function
mutate
(action: "create" | "assign" | "complete" | "rank", arguments_: Record<string, unknown>)
frontend/src/pages/PixelOffice.tsx:28
↓ 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_result
Translate IBKR's structured MCP result into the shared broker shapes.
agent/src/trading/connectors/ibkr/mcp.py:39
↓ 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/session/context_budget.py:234
↓ 4 callers
Function
ohlc_price_policy
Keep loader normalization and cache identity on the same price policy.
agent/backtest/loaders/base.py:275
↓ 4 callers
Function
on_event
(event_type: str, data: common.Dict[str, common.Any])
agent/cli/commands/execution.py:225
↓ 4 callers
Function
on_progress
(n_done: int, n_total: int, aid: str)
agent/src/factors/cli_handlers.py:461
↓ 4 callers
Function
on_text
(text: str)
agent/tests/test_chat_llm_streaming.py:242
↓ 4 callers
Function
onboarding_for_profile
Resolve the setup contract for a built-in or local plugin profile.
agent/src/trading/onboarding.py:232
↓ 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_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
parse_tool_payload
Decode a structured result while allowing plain text. Args: result: Tool result text, which may contain a JSON object. Returns:
agent/src/product/tool_results.py:20
↓ 4 callers
Function
performRequest
Bound both the connection and body read; never automatically replay writes.
frontend/src/lib/api.ts:21
↓ 4 callers
Method
persist
Atomically save identity state without an answer-validation ledger.
agent/src/product/identity/ledger.py:488
↓ 4 callers
Function
pick_thinking_verb
Pick a random verb suffixed with an ellipsis. Args: seed: Optional deterministic seed. None uses the module-level random generator.
agent/cli/utils/thinking_verbs.py:18
← previous
next →
2,901–3,000 of 30,405, ranked by callers