MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 8 callersFunctioncompute_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 callersFunctioncontent_hash
Generate deterministic hash for deduplication.
agent/src/memory/persistent.py:37
↓ 8 callersFunctioncreate
(store)
agent/tests/test_history_auto_resume.py:29
↓ 8 callersFunctioncross_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 callersFunctioncurrent_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 callersFunctiondecode_financial_facts
Read an envelope from a research revision; reject legacy narrative.
agent/src/research_artifacts/financial_facts.py:212
↓ 8 callersFunctiondetect_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 callersFunctiondingtalkEntry
(overrides: Record<string, unknown> = {})
frontend/src/components/settings/__tests__/ChannelSettings.test.tsx:55
↓ 8 callersFunctioneuropean_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 callersFunctionevaluation_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 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/br_market_data_tool.py:121
↓ 8 callersFunctionfactor_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 callersFunctionformat_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 callersMethodget
(self, name)
agent/tests/test_swarm_continuation.py:30
↓ 8 callersMethodget_artifact
(self, artifact_id: str)
agent/src/strategy_store/adaptation.py:35
↓ 8 callersMethodget_decay_history
Get decay snapshots for an artifact, newest first.
agent/src/strategy_store/store.py:161
↓ 8 callersMethodget_status
Get status of all channels.
agent/src/channels/manager.py:640
↓ 8 callersFunctionhose_round_down
Quantize *price* down onto the HOSE tick grid.
agent/backtest/engines/vietnam_equity.py:111
↓ 8 callersFunctionincrement_daily_count
Persist ``broker``'s incremented count for today (atomic). Returns new count.
agent/src/live/daily_count.py:125
↓ 8 callersFunctionis_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 callersFunctionlast_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 callersMethodlist
Load all hypotheses from storage.
agent/src/hypotheses/registry.py:370
↓ 8 callersMethodlist
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 callersMethodlist_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 callersMethodlist_revisions
Return a series newest first, including every linked revision.
agent/src/research_artifacts/store.py:380
↓ 8 callersMethodlisten
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 callersFunctionlive_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 callersMethodload
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 callersMethodload_all
Load all tasks for the current run. Returns: Task records in filename order.
agent/src/swarm/task_store.py:61
↓ 8 callersFunctionload_case
Load one versioned case JSON document.
agent/evals/harness/runner.py:15
↓ 8 callersFunctionload_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 callersFunctionload_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 callersMethodlogout
(self)
agent/tests/test_email_connection_test.py:130
↓ 8 callersFunctionmain
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 callersFunctionmatched_market
Return the market matched by a routing rule, or None for unknown symbols.
agent/backtest/engines/_market_hooks.py:463
↓ 8 callersFunctionmodified_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 callersFunctionnormalize_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 callersFunctionnormalize_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 callersMethodok
Return ``True`` while budget remains, latching ``exhausted`` when not.
agent/src/tools/institutional_holdings_tool.py:322
↓ 8 callersFunctionoperation
()
agent/tests/test_history_source.py:106
↓ 8 callersMethodoptions_chain
(self, ticker, expiration, **kwargs)
agent/tests/test_data_gateway_api.py:24
↓ 8 callersFunctionpanel
(values, columns=ASSETS, start="2024-01-01")
agent/tests/quantlib/test_combination.py:21
↓ 8 callersFunctionparametric_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 callersFunctionparse_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 callersFunctionparse_tonghuashun
Parse 同花顺 exports. Expected columns: 成交时间, 证券代码, 证券名称, 操作, 成交数量, 成交价格, 成交金额, 手续费, 印花税, 过户费.
agent/src/tools/trade_journal_parsers.py:346
↓ 8 callersFunctionparse_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 callersFunctionpca_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 callersMethodrebuild_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 callersFunctionreconcile_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 callersMethodrecovery_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 callersFunctionregister_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 callersFunctionrequest
(**overrides)
agent/tests/test_options_alternatives.py:28
↓ 8 callersMethodrequest
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 callersFunctionrequest_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 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionrun_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 callersFunctionruns_dir
(shadow_id: str)
agent/src/shadow_account/storage.py:35
↓ 8 callersFunctionscale
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 callersFunctionscenario
()
agent/tests/test_signal_dm_pairing.py:72
↓ 8 callersMethodsettings
Read/update global quota; shrinking never evicts pinned/running jobs.
agent/src/data_gateway/history_store.py:306
↓ 8 callersMethodshould_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 callersMethodstart
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 callersMethodstart
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 callersMethodtext
(self, query, max_results=5, **kwargs)
agent/tests/test_web_search_tool.py:28
↓ 8 callersMethodthread
(self, session_id: str)
agent/tests/test_cli_conversation.py:171
↓ 8 callersMethodthread_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 callersMethodtotal
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 callersFunctiontranslate_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 callersFunctionuiLocale
* 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 callersFunctionupdate_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 callersMethodupdate_session
Update a session. Args: session: Session carrying the metadata to write.
agent/src/session/store.py:119
↓ 8 callersFunctionvalidate_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 callersFunctionvalidate_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 callersFunctionwrapper
(self, *args, **kwargs)
agent/src/goal/store.py:100
↓ 8 callersFunctionwrite_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 callersFunctionyear_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 callersFunction_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 callersFunction_answer
(text)
agent/tests/test_swarm_selected_inputs.py:72
↓ 7 callersFunction_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 callersFunction_as_float
(df: pd.DataFrame)
agent/src/factors/base.py:73
↓ 7 callersFunction_bars
Create a dated OHLCV frame ending on the scanner target date.
agent/tests/test_shadow_scanner.py:41
↓ 7 callersFunction_bars
(index: pd.DatetimeIndex)
agent/tests/test_tushare_fundamentals_provider.py:403
↓ 7 callersFunction_block
(*rows: str)
agent/tests/test_grounding_shape_hardening.py:71
↓ 7 callersFunction_bridge
(**overrides)
agent/tests/quantlib/valuation/test_dcf.py:719
↓ 7 callersFunction_build_rule_engines
Instantiate one sub-engine per market type detected in codes.
agent/backtest/engines/composite.py:29
↓ 7 callersFunction_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 callersMethod_calc_weights
Equal risk contribution weights.
agent/backtest/optimizers/risk_parity.py:14
↓ 7 callersMethod_calc_weights
(self, ctx: dict[str, np.ndarray])
agent/tests/test_optimizer_causality.py:26
↓ 7 callersFunction_call
(call_id, name, **arguments)
agent/tests/test_swarm_selected_inputs.py:67
↓ 7 callersFunction_call
(monkeypatch, n, **kw)
agent/tests/test_get_market_data_size.py:55
↓ 7 callersFunction_cancels
(outcome)
agent/tests/test_paper_trade_5m_partial_fills.py:221
↓ 7 callersFunction_catalog
Load and validate the bundled catalog, failing visibly on invalid data.
agent/src/providers/registry.py:44
↓ 7 callersMethod_channel_key
Normalize channel-like objects and ids to a stable string key.
agent/src/channels/discord.py:378
↓ 7 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_goal_api.py:15
↓ 7 callersFunction_close
(values: list[float])
agent/tests/test_alpha_bench_forward_returns.py:24
↓ 7 callersFunction_closes
()
agent/tests/test_risk_xray_long_short.py:18
↓ 7 callersFunction_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 callersFunction_compute_macd
MACD line, signal line, and histogram.
agent/src/tools/technical_indicator_tool.py:230
↓ 7 callersFunction_connect
(port: int)
agent/tests/test_baostock_socket_deadline.py:49
← previousnext →1,301–1,400 of 30,405, ranked by callers