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
↓ 8 callers
Function
compute_rebalance_notes
Summarize per-date weight changes in a target position frame. Args: target_pos: Target weights (dates x codes), e.g. the frame behind
agent/backtest/rebalance_notes.py:34
↓ 8 callers
Function
content_hash
Generate deterministic hash for deduplication.
agent/src/memory/persistent.py:37
↓ 8 callers
Function
create
(store)
agent/tests/test_history_auto_resume.py:29
↓ 8 callers
Function
cross_sectional_factor_returns
Regress one date's asset returns on their exposures. The coefficients are that date's factor returns. Weighting is by square-root market cap
agent/src/quantlib/factormodel.py:377
↓ 8 callers
Function
current_llm_session_id
Read the active LLM session ID. Returns: The bound session ID, or an empty string outside a bound run.
agent/src/providers/session_context.py:31
↓ 8 callers
Function
decode_financial_facts
Read an envelope from a research revision; reject legacy narrative.
agent/src/research_artifacts/financial_facts.py:212
↓ 8 callers
Function
detect_regimes
Hysteresis (Schmitt-trigger) regime state machine on smoothed density. The market is FUSED once smoothed density reaches ``enter_threshold`` and
agent/backtest/regime.py:60
↓ 8 callers
Function
dingtalkEntry
(overrides: Record<string, unknown> = {})
frontend/src/components/settings/__tests__/ChannelSettings.test.tsx:55
↓ 8 callers
Function
european_waterfall
Run a European whole-of-fund waterfall over an actual cash-flow series. Contributed capital and the distributable amount are read off the series,
agent/src/quantlib/fundmath.py:1241
↓ 8 callers
Function
evaluation_start_index
Return the first bar index that counts as performance. A long-lookback indicator needs history before the period the user asked about — an MA
agent/backtest/engines/base.py:177
↓ 8 callers
Method
execute
(self, **kwargs: Any)
agent/src/tools/br_market_data_tool.py:121
↓ 8 callers
Function
factor_risk_decomposition
Decompose portfolio risk into systematic factor and idiosyncratic components. Implements the Euler homogeneous risk decomposition for multi-facto
agent/src/quantlib/factormodel.py:601
↓ 8 callers
Function
format_grounding_block
Render a dated market snapshot for a worker prompt. Args: grounding: Mapping from symbol to dated OHLCV rows in chronological order.
agent/src/swarm/grounding.py:167
↓ 8 callers
Method
get
(self, name)
agent/tests/test_swarm_continuation.py:30
↓ 8 callers
Method
get_artifact
(self, artifact_id: str)
agent/src/strategy_store/adaptation.py:35
↓ 8 callers
Method
get_decay_history
Get decay snapshots for an artifact, newest first.
agent/src/strategy_store/store.py:161
↓ 8 callers
Method
get_status
Get status of all channels.
agent/src/channels/manager.py:640
↓ 8 callers
Function
hose_round_down
Quantize *price* down onto the HOSE tick grid.
agent/backtest/engines/vietnam_equity.py:111
↓ 8 callers
Function
increment_daily_count
Persist ``broker``'s incremented count for today (atomic). Returns new count.
agent/src/live/daily_count.py:125
↓ 8 callers
Function
is_four_eyes_violation
Report whether *artifact* was both developed and approved by the same person. The four-eyes (maker-checker) principle requires the developer and
agent/src/strategy_store/models.py:195
↓ 8 callers
Function
last_tick
Return a runner's last recorded heartbeat timestamp. Args: runner_id: The runner to read. Returns: The last-tick timestamp i
agent/src/live/runtime/liveness.py:103
↓ 8 callers
Method
list
Load all hypotheses from storage.
agent/src/hypotheses/registry.py:370
↓ 8 callers
Method
list
Read every stored connection. Returns: The validated connections, or an empty list when no registry file exists yet.
agent/src/trading/connections.py:171
↓ 8 callers
Method
list_public
List the client-facing custom provider profiles. Returns: Profiles ordered by ID, with metadata, credential availability, and act
agent/src/providers/custom_profiles.py:44
↓ 8 callers
Method
list_revisions
Return a series newest first, including every linked revision.
agent/src/research_artifacts/store.py:380
↓ 8 callers
Method
listen
Yield live events from an attached queue, with idle heartbeats. Args: session_id: Session ID for emitted heartbeats and queue cle
agent/src/session/events.py:290
↓ 8 callers
Function
live_root
Return the root directory for all live-channel state. Returns: ``<runtime_root>/live``. The directory is NOT created here; callers
agent/src/live/paths.py:23
↓ 8 callers
Method
load
Read the stored secrets for a connection. Args: connection_id: Identifier of the local connection instance. fields: C
agent/src/trading/credentials.py:97
↓ 8 callers
Method
load_all
Load all tasks for the current run. Returns: Task records in filename order.
agent/src/swarm/task_store.py:61
↓ 8 callers
Function
load_case
Load one versioned case JSON document.
agent/evals/harness/runner.py:15
↓ 8 callers
Function
load_metrics
Load metrics.csv from a run directory. Args: run_dir: Run directory containing artifacts/metrics.csv. Returns: Numeric field
agent/src/session/factory.py:256
↓ 8 callers
Function
load_swarm_agent_config
Load the swarm-side AgentConfig using the M3 boot resolution order. This is the helper boot wiring (``mcp_server.py``, ``api_server.py``, CLI
agent/src/config/loader.py:204
↓ 8 callers
Method
logout
(self)
agent/tests/test_email_connection_test.py:130
↓ 8 callers
Function
main
Parse and dispatch a CLI invocation. Args: argv: Optional arguments excluding the executable. Defaults to the current process
agent/cli/commands/dispatch.py:31
↓ 8 callers
Function
matched_market
Return the market matched by a routing rule, or None for unknown symbols.
agent/backtest/engines/_market_hooks.py:463
↓ 8 callers
Function
modified_duration
Semi-elasticity of price to yield, ``-(dP/dy)/P``. Args: face: Par/redemption amount. coupon_rate: Annual coupon rate as a decima
agent/src/quantlib/fixedincome.py:382
↓ 8 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:125
↓ 8 callers
Function
normalize_mcp_tool_schema
Normalize remote MCP input schemas into OpenAI-compatible objects. Args: schema: Raw MCP input schema. Returns: A JSON Schem
agent/src/tools/mcp.py:459
↓ 8 callers
Method
ok
Return ``True`` while budget remains, latching ``exhausted`` when not.
agent/src/tools/institutional_holdings_tool.py:322
↓ 8 callers
Function
operation
()
agent/tests/test_history_source.py:106
↓ 8 callers
Method
options_chain
(self, ticker, expiration, **kwargs)
agent/tests/test_data_gateway_api.py:24
↓ 8 callers
Function
panel
(values, columns=ASSETS, start="2024-01-01")
agent/tests/quantlib/test_combination.py:21
↓ 8 callers
Function
parametric_var
Value at Risk under a fitted normal distribution. Cheap and smooth, but it sees only a mean and a variance, so it misses fat tails. The direc
agent/src/quantlib/risk.py:181
↓ 8 callers
Function
parse_generic
Parse a generic CSV with lowercase English headers. Matches columns case-insensitively. Expected (any alias in parens): datetime (time/da
agent/src/tools/trade_journal_parsers.py:571
↓ 8 callers
Function
parse_tonghuashun
Parse 同花顺 exports. Expected columns: 成交时间, 证券代码, 证券名称, 操作, 成交数量, 成交价格, 成交金额, 手续费, 印花税, 过户费.
agent/src/tools/trade_journal_parsers.py:346
↓ 8 callers
Function
parse_verdict_section
Parse the ``## Verdict`` tail of a terminal briefing. Returns: ``(parse_state, items)``. ``no_verdict_section`` when no such heading
agent/src/scheduled_research/verdict.py:103
↓ 8 callers
Function
pca_factors
Compress factor columns using PCA fitted independently at each time. Args: factors: At least two named time-by-asset panels at any input
agent/src/quantlib/neutralization.py:385
↓ 8 callers
Method
rebuild_all
Full reindex from a list of (id, title, description, keywords, body) tuples. Clears existing data and re-inserts all entries. Use for bulk
agent/src/memory/search_index.py:423
↓ 8 callers
Function
reconcile_after_restart
Turn a previous process's live records into explicit outcomes. Nothing is re-run and nothing is signalled. A record left ``running`` cannot b
agent/src/tools/background_store.py:219
↓ 8 callers
Method
recovery_probe
Claim at most one half-open attempt per scope per cooldown period. Called only after normal routes failed. Exponential source backoff stays
agent/src/data_gateway/routing.py:86
↓ 8 callers
Function
register_adaptation
Persist an adapted child through the strategy store. Returns the new id. ``parent_evidence`` and ``today`` are keyword-only and required so the
agent/src/strategy_store/adaptation.py:95
↓ 8 callers
Function
request
(**overrides)
agent/tests/test_options_alternatives.py:28
↓ 8 callers
Method
request
Request one response, preserving stream accounting and filtering. Args: view: Prepared messages and tool definitions for the prov
agent/src/agent/loop_driver.py:125
↓ 8 callers
Function
request_definitions
Collect the tool schemas visible on the current request. Args: registry: Registry supplying exposed or ordinary tool definitions. Re
agent/src/product/tool_loading.py:196
↓ 8 callers
Function
resolve_secid
Map a Vibe-Trading symbol to its Eastmoney secid. Supported suffixes: ``.SH`` / ``.SZ`` / ``.BJ`` (A-share), ``.HK`` (Hong Kong, code zero-pa
agent/backtest/loaders/eastmoney_client.py:229
↓ 8 callers
Function
resolve_window
Return the model's context window and where the number came from. Args: provider: Provider name, normalized to the catalog spelling.
agent/src/session/context_budget.py:85
↓ 8 callers
Function
run_pattern
Run chart pattern detection on OHLCV data in run_dir. Args: run_dir: Path to the run directory. patterns: Comma-separated pattern
agent/src/tools/pattern_tool.py:333
↓ 8 callers
Function
runs_dir
(shadow_id: str)
agent/src/shadow_account/storage.py:35
↓ 8 callers
Function
scale
Per-row L1 normalize so sum of absolute values equals ``a``. Rows whose abs-sum is 0 (or all-NaN) become NaN — never silent zero.
agent/src/factors/base.py:168
↓ 8 callers
Function
scenario
()
agent/tests/test_signal_dm_pairing.py:72
↓ 8 callers
Method
settings
Read/update global quota; shrinking never evicts pinned/running jobs.
agent/src/data_gateway/history_store.py:306
↓ 8 callers
Method
should_transition
Determine if a status transition should occur. Args: current_status: Current artifact status. consecutive_signals: Re
agent/src/strategy_store/decay.py:161
↓ 8 callers
Method
start
Open a tool window and observe the preceding interval. Args: tool: Tool name. call_id: Provider tool call identifier.
agent/src/tools/workspace_writes.py:71
↓ 8 callers
Method
start
Reset accounting and check the budget of the selected goal. Args: session_id: Session to which usage will be charged when a goal
agent/src/product/goals.py:49
↓ 8 callers
Method
text
(self, query, max_results=5, **kwargs)
agent/tests/test_web_search_tool.py:28
↓ 8 callers
Method
thread
(self, session_id: str)
agent/tests/test_cli_conversation.py:171
↓ 8 callers
Method
thread_path
Return the location of a session's conversation thread log. Args: session_id: Session ID. Returns: The conve
agent/src/session/store.py:38
↓ 8 callers
Method
total
Sum the signed amounts. Valuation marks such as NAV are excluded by default: adding a mark to settled cash would overstate what was a
agent/src/entities/cashflow.py:408
↓ 8 callers
Function
translate_cashflows
Convert flows in one or more currencies into ``rate_table``'s currency. Each flow is converted using the FX rate quoted on **that flow's own
agent/src/entities/cashflow.py:689
↓ 8 callers
Function
uiLocale
* Locale used by every Intl formatter on this page. The formatters live at * module scope (chart option builders need them outside React), so they re
frontend/src/pages/Portfolio.tsx:57
↓ 8 callers
Function
update_channel_section
Merge a channel section into the raw JSON agent config. Operates on the raw decoded dict only: unknown top-level keys, sibling channel sectio
agent/src/config/writer.py:51
↓ 8 callers
Method
update_session
Update a session. Args: session: Session carrying the metadata to write.
agent/src/session/store.py:119
↓ 8 callers
Function
validate_model_selection
Validate a selection and resolve the connection it would use. Args: raw: Caller-written or stored selection. settings: Server set
agent/src/providers/selection.py:221
↓ 8 callers
Function
validate_timezone_shape
Raise ``ValueError`` when *tz* is not ``None`` or a non-empty string. This is the persistence-level check: it deliberately does NOT resolve the
agent/src/scheduling/triggers.py:157
↓ 8 callers
Function
wrapper
(self, *args, **kwargs)
agent/src/goal/store.py:100
↓ 8 callers
Function
write_heartbeat
Atomically record a runner's last-tick timestamp. Args: runner_id: The runner writing its heartbeat. now_ms: Timestamp to record,
agent/src/live/runtime/liveness.py:79
↓ 8 callers
Function
year_fraction
Accrual factor between two dates under a named day-count convention. Args: start: Period start (accrual runs from this date, inclusive).
agent/src/quantlib/fixedincome.py:63
↓ 7 callers
Function
_amended_cover
Render a cover page that declares an amendment, exactly as EDGAR nests it. Copied from DZ BANK's live 2020-09-30 amendments: ``isAmendment`` and
agent/tests/test_institutional_holdings_tool.py:112
↓ 7 callers
Function
_answer
(text)
agent/tests/test_swarm_selected_inputs.py:72
↓ 7 callers
Function
_archive_backtest_result
Archive a detached backtest after revalidating both paths and pruning only previously copied files.
agent/src/product/tool_results.py:151
↓ 7 callers
Function
_as_float
(df: pd.DataFrame)
agent/src/factors/base.py:73
↓ 7 callers
Function
_bars
Create a dated OHLCV frame ending on the scanner target date.
agent/tests/test_shadow_scanner.py:41
↓ 7 callers
Function
_bars
(index: pd.DatetimeIndex)
agent/tests/test_tushare_fundamentals_provider.py:403
↓ 7 callers
Function
_block
(*rows: str)
agent/tests/test_grounding_shape_hardening.py:71
↓ 7 callers
Function
_bridge
(**overrides)
agent/tests/quantlib/valuation/test_dcf.py:719
↓ 7 callers
Function
_build_rule_engines
Instantiate one sub-engine per market type detected in codes.
agent/backtest/engines/composite.py:29
↓ 7 callers
Function
_cache_key
Digest for the result cache. Covers the window, the journal the profile was extracted from, the profile inputs (rules, markets) and the engin
agent/src/shadow_account/backtester.py:338
↓ 7 callers
Method
_calc_weights
Equal risk contribution weights.
agent/backtest/optimizers/risk_parity.py:14
↓ 7 callers
Method
_calc_weights
(self, ctx: dict[str, np.ndarray])
agent/tests/test_optimizer_causality.py:26
↓ 7 callers
Function
_call
(call_id, name, **arguments)
agent/tests/test_swarm_selected_inputs.py:67
↓ 7 callers
Function
_call
(monkeypatch, n, **kw)
agent/tests/test_get_market_data_size.py:55
↓ 7 callers
Function
_cancels
(outcome)
agent/tests/test_paper_trade_5m_partial_fills.py:221
↓ 7 callers
Function
_catalog
Load and validate the bundled catalog, failing visibly on invalid data.
agent/src/providers/registry.py:44
↓ 7 callers
Method
_channel_key
Normalize channel-like objects and ids to a stable string key.
agent/src/channels/discord.py:378
↓ 7 callers
Function
_client
(tmp_path: Path, monkeypatch)
agent/tests/test_goal_api.py:15
↓ 7 callers
Function
_close
(values: list[float])
agent/tests/test_alpha_bench_forward_returns.py:24
↓ 7 callers
Function
_closes
()
agent/tests/test_risk_xray_long_short.py:18
↓ 7 callers
Function
_compute_attribution
Attribute the delta between user's real PnL and shadow PnL. Decomposition (signed — positive means shadow would have earned more): noise
agent/src/shadow_account/backtester.py:665
↓ 7 callers
Function
_compute_macd
MACD line, signal line, and histogram.
agent/src/tools/technical_indicator_tool.py:230
↓ 7 callers
Function
_connect
(port: int)
agent/tests/test_baostock_socket_deadline.py:49
← previous
next →
1,301–1,400 of 30,405, ranked by callers