MCPcopy Create free account

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

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 1 callersMethod_decrypt_media_bytes
(self, event: MatrixMediaEvent, ciphertext: bytes)
agent/src/channels/matrix.py:916
↓ 1 callersMethod_dedupe_issues
Remove duplicate validator findings while preserving order.
agent/src/agent/grounding/policies.py:2559
↓ 1 callersFunction_dedupe_local_tool_name
Disambiguate colliding local MCP tool names deterministically. Args: candidate: Preferred local tool name. remote_name: Original
agent/src/tools/mcp.py:975
↓ 1 callersFunction_dedupe_server_name_segment
Disambiguate colliding sanitized server-name segments. Args: base_segment: Preferred sanitized server-name segment. server_name:
agent/src/tools/mcp.py:953
↓ 1 callersMethod_default_client
Construct a default httpx client (imported lazily).
agent/backtest/loaders/rsshub_events.py:467
↓ 1 callersFunction_default_cn_a_connector
One shared ClickHouse connector for cn_a calendar+limits+bars, or None. Probed with an AUTHENTICATED ``SELECT 1`` — never ``health_check()``, whi
agent/src/tools/paper_trade/tool.py:133
↓ 1 callersFunction_default_criteria
Return the MVP finance protocol checklist.
agent/cli/commands/goal.py:36
↓ 1 callersFunction_default_database_path
()
agent/src/channels/whatsapp.py:56
↓ 1 callersFunction_default_db_path
Return the configured goal ledger database path.
agent/src/goal/store.py:76
↓ 1 callersFunction_default_db_path
Return the configured strategy-store database path.
agent/src/strategy_store/sqlite_store.py:97
↓ 1 callersFunction_default_db_path
()
agent/src/research_artifacts/store.py:36
↓ 1 callersFunction_default_db_path
Default database location: ``<runtime-root>/strategy_discovery.db``. Uses the shared runtime root helper (which honours ``VIBE_TRADING_HOME``)
agent/src/strategy_discovery/evidence_store.py:128
↓ 1 callersFunction_default_file_roots
Return default roots for uploaded/imported user files.
agent/src/tools/path_utils.py:121
↓ 1 callersFunction_default_goal_criteria
Return the MVP finance protocol checklist.
agent/mcp_server.py:434
↓ 1 callersFunction_default_history_path
Where ``~/.vibe-trading/history`` lives by default.
agent/cli/input.py:252
↓ 1 callersFunction_default_mcp_server_payload
Return a transport-neutral MCP server payload preserving non-transport defaults.
agent/src/config/loader.py:311
↓ 1 callersFunction_default_registry
Build (or reuse) the default bundled-zoo registry on demand. Imported lazily so ``zoo_signal_engine`` can be imported by standalone tooling t
agent/src/skills/multi-factor/zoo_signal_engine.py:308
↓ 1 callersFunction_default_run_backtest_fn
()
agent/src/shadow_account/backtester.py:411
↓ 1 callersFunction_default_store_path
Return the default path for the scheduled-research store. Roots job state under the user runtime dir (``~/.vibe-trading`` by default), never
agent/src/scheduled_research/store.py:49
↓ 1 callersFunction_default_timeout_seconds
()
agent/src/swarm/worker.py:49
↓ 1 callersMethod_delay_flush_after
(self, key: str, target_id: str, target_kind: str)
agent/src/channels/mochat.py:779
↓ 1 callersMethod_delivery_is_eligible
Whether this row is a sweep's to take. PENDING is owed. SENDING is claimed, and the claim is a lease rather than a lock: a process th
agent/src/scheduled_research/executor.py:503
↓ 1 callersFunction_denial_reason
Return a short reason when the response is a refusal, else ``None``. Args: response: The HTTP response from Stooq's CSV endpoint. Re
agent/backtest/loaders/stooq_loader.py:80
↓ 1 callersMethod_deny
Audit + return a refusal envelope for a pre-intent / structural DENY.
agent/src/live/order_guard.py:514
↓ 1 callersMethod_deny_breach
Audit + return a refusal for a ``check_mandate`` breach. Structural breaches (``reauth=False``) DENY outright; quantitative breaches
agent/src/live/order_guard.py:537
↓ 1 callersFunction_derive_hints
Derive hints from an adapter's ``default_config()``, or ``[]`` if unknown.
agent/src/channels/config_meta.py:396
↓ 1 callersMethod_describe
Return one function's signature and docstring.
agent/src/tools/quantlib_tool.py:417
↓ 1 callersFunction_describe_intent
Render a human-readable normalized intent for the audit record.
agent/src/live/order_guard.py:950
↓ 1 callersFunction_describe_intent
(intent: OrderIntent | None)
agent/src/live/sdk_order_gate.py:1106
↓ 1 callersMethod_detail_lines
(self, body: str, *, width: int, active: bool)
agent/cli/ui/rail.py:589
↓ 1 callersMethod_detect_dark_cloud
检测乌云盖顶(Dark Cloud Cover)—— 看跌。 条件:前一根看涨,当前开盘高于前一根最高价,当前收盘低于前一根实体中点。 Args: o: 开盘价。 h: 最高价。 l: 最低价
agent/src/skills/candlestick/example_signal_engine.py:316
↓ 1 callersMethod_detect_doji
检测十字星(Doji)—— 中性(信号为0)。 条件:实体/振幅 < body_pct 且振幅 > 0。 Args: o: 开盘价。 h: 最高价。 l: 最低价。 c
agent/src/skills/candlestick/example_signal_engine.py:170
↓ 1 callersMethod_detect_engulfing
检测吞没形态(Engulfing)。 看涨吞没:前一根看跌,当前看涨,当前实体包含前一根实体。+1 看跌吞没:前一根看涨,当前看跌,当前实体包含前一根实体。-1 Args: o: 开盘价。 h: 最高
agent/src/skills/candlestick/example_signal_engine.py:222
↓ 1 callersMethod_detect_evening_star
检测暮星(Evening Star)—— 看跌。 条件: - Day1 看涨 - Day2 小实体且向上跳空(Day2最低 > Day1最高) - Day3 看跌且收盘低于 Day1 实体中点 Args:
agent/src/skills/candlestick/example_signal_engine.py:379
↓ 1 callersMethod_detect_hammer
检测锤子线(Hammer)—— 看涨。 条件:下影线 >= shadow_ratio * 实体,上影线 < 实体,实体 > 0,振幅 > 0。 Args: o: 开盘价。 h: 最高价。 l:
agent/src/skills/candlestick/example_signal_engine.py:105
↓ 1 callersMethod_detect_harami
检测孕线形态(Harami)。 看涨孕线:前一根看跌大实体,当前小实体被包含在前一根实体内。+1 看跌孕线:前一根看涨大实体,当前小实体被包含在前一根实体内。-1 Args: o: 开盘价。 h: 最
agent/src/skills/candlestick/example_signal_engine.py:252
↓ 1 callersMethod_detect_inverted_hammer
检测倒锤子(Inverted Hammer)—— 看涨。 条件:上影线 >= shadow_ratio * 实体,下影线 < 实体。 Args: o: 开盘价。 h: 最高价。 l: 最低价。
agent/src/skills/candlestick/example_signal_engine.py:127
↓ 1 callersFunction_detect_kind
Identify which extraETF format a header belongs to. Args: header: The export's column names. Returns: ``"holdings"`` or ``"t
agent/src/portfolio/extraetf.py:496
↓ 1 callersMethod_detect_morning_star
检测晨星(Morning Star)—— 看涨。 条件: - Day1 看跌 - Day2 小实体且向下跳空(Day2最高 < Day1最低) - Day3 看涨且收盘高于 Day1 实体中点 Args:
agent/src/skills/candlestick/example_signal_engine.py:345
↓ 1 callersFunction_detect_patterns_fallback
内置谐波形态检测(回退方案)。 流程:找摆动点 → 枚举5点组合 → 验证 Fibonacci 比率 → 输出形态。 Args: df: OHLCV DataFrame,需含 high/low/close 列。 swing_window: 摆动点检
agent/src/skills/harmonic/example_signal_engine.py:177
↓ 1 callersFunction_detect_patterns_pyharmonics
使用 pyharmonics 库检测谐波形态。 Args: df: OHLCV DataFrame,需含 open/high/low/close/volume 列。 is_stock: 是否为股票标的。 Returns: 检测到的形
agent/src/skills/harmonic/example_signal_engine.py:249
↓ 1 callersMethod_detect_piercing_line
检测刺穿线(Piercing Line)—— 看涨。 条件:前一根看跌,当前开盘低于前一根最低价,当前收盘高于前一根实体中点。 Args: o: 开盘价。 h: 最高价。 l: 最低价。
agent/src/skills/candlestick/example_signal_engine.py:291
↓ 1 callersMethod_detect_shooting_star
检测射击之星(Shooting Star)—— 看跌。 形态与倒锤子相同,但需出现在上涨趋势之后(前一根收盘 > 前两根收盘)。 Args: o: 开盘价。 h: 最高价。 l: 最低价。
agent/src/skills/candlestick/example_signal_engine.py:148
↓ 1 callersMethod_detect_spinning_top
检测纺锤线(Spinning Top)—— 中性(信号为0)。 条件:实体/振幅 < 0.3,上影线 > 实体,下影线 > 实体,且不是十字星。 Args: o: 开盘价。 h: 最高价。 l
agent/src/skills/candlestick/example_signal_engine.py:192
↓ 1 callersMethod_detect_three_black_crows
检测三乌鸦(Three Black Crows)—— 看跌。 条件:连续3根阴线,每根收盘递减,每根开盘在前一根实体内。 Args: o: 开盘价。 h: 最高价。 l: 最低价。
agent/src/skills/candlestick/example_signal_engine.py:444
↓ 1 callersMethod_detect_three_white_soldiers
检测三白兵(Three White Soldiers)—— 看涨。 条件:连续3根阳线,每根收盘递增,每根开盘在前一根实体内。 Args: o: 开盘价。 h: 最高价。 l: 最低价。
agent/src/skills/candlestick/example_signal_engine.py:413
↓ 1 callersFunction_detect_value_units
Decide whether ``value`` is whole dollars or thousands of dollars. The filing date sets the prior (whole dollars from 2023-01-03). Because fi
agent/src/tools/institutional_holdings_tool.py:779
↓ 1 callersFunction_df
()
agent/tests/test_get_market_data_provenance.py:28
↓ 1 callersFunction_df_to_bars
将 OHLCV DataFrame 转换为 czsc RawBar 列表。 Args: df: 包含 open/high/low/close/volume 列的 DataFrame,index 为 datetime。 symbol: 标的代码。
agent/src/skills/chanlun/example_signal_engine.py:21
↓ 1 callersFunction_diff_leaves
Diff two flat ``path -> value`` snapshots. Args: baseline: The "before" flat snapshot. updated: The "after" flat snapshot. R
agent/src/quantlib/valuation/artifact.py:929
↓ 1 callersFunction_diff_orders
Classify the order side of the diff. Args: recorded_orders: Orders we persisted as open/submitted before shutdown. broker_orders:
agent/src/live/runtime/reconcile.py:369
↓ 1 callersFunction_diff_positions
Classify quarter-over-quarter position changes. Keyed on ``(cusip, put_call)`` rather than the class title, because filers spell ``titleOfCla
agent/src/tools/institutional_holdings_tool.py:1540
↓ 1 callersFunction_diff_positions
Classify the position side of the diff. A broker position (or quantity) we have no record of is an ``unknown_fill``: real money moved without
agent/src/live/runtime/reconcile.py:445
↓ 1 callersFunction_dingtalk_hints
Return the hand-written DingTalk field hints (``enabled`` excluded).
agent/src/channels/config_meta.py:73
↓ 1 callersFunction_discord_hints
Return the hand-written Discord field hints (``enabled`` excluded). ``required`` decision: :meth:`DiscordChannel.start` (discord.py) logs "bo
agent/src/channels/config_meta.py:321
↓ 1 callersFunction_discord_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:171
↓ 1 callersFunction_discover_alpha_files
Return every ``zoo/**/<alpha>.py`` candidate (skips ``__init__`` and ``_*``).
agent/tests/factors/test_alpha_purity.py:92
↓ 1 callersFunction_discover_entry
(module: types.ModuleType)
agent/src/tools/paper_trade/strategy_exec.py:320
↓ 1 callersFunction_discover_plugins
Discover OCR engines installed via pip entry_points. Cached per process (Dask pattern). Plugins override built-ins on name collision (MLflow
agent/src/tools/ocr/engine.py:65
↓ 1 callersFunction_discover_tool_classes
()
agent/tests/test_strategy_discovery_tools.py:105
↓ 1 callersFunction_dispatch_channels
Dispatch IM channel subcommands.
agent/cli/_legacy.py:3341
↓ 1 callersMethod_dispatch_envelope
Route one typed inbound envelope (``new_chat`` / ``attach`` / ``message``).
agent/src/channels/websocket.py:672
↓ 1 callersMethod_dispatch_frame
(self, raw: str | bytes)
agent/src/channels/napcat.py:184
↓ 1 callersMethod_dispatch_http
Route an inbound HTTP request to the HTTP handler or WS upgrade.
agent/src/channels/websocket.py:397
↓ 1 callersMethod_dispatch_outbound
Dispatch outbound messages to the appropriate channel.
agent/src/channels/manager.py:458
↓ 1 callersFunction_dispatch_portfolio
Route ``vibe-trading portfolio <subcommand>``; bare ``portfolio`` shows. Args: args: Parsed CLI arguments. Returns: The proc
agent/cli/_legacy.py:4256
↓ 1 callersFunction_dispatch_slash
Route a slash command line to its handler. Returns: Exit code from the handler. ``2`` is the conventional "user requested quit" s
agent/cli/main.py:593
↓ 1 callersFunction_display_config_path
Return a display-only config path: home-relative when possible. The absolute path discloses the local username and directory layout to any re
agent/src/api/channels_config_routes.py:278
↓ 1 callersFunction_display_executable
(executable: str)
agent/cli/ui/rail.py:257
↓ 1 callersFunction_diversification
( returns: pd.DataFrame, w: np.ndarray, port: pd.Series, ppy: int )
agent/backtest/risk_xray.py:298
↓ 1 callersFunction_dividend_cash
Sum cash-dividend rows the adjusted frames do not already capture. When the run's adjusted frames cover a symbol, the dividend is embedded in
agent/src/shadow_account/backtester.py:609
↓ 1 callersFunction_document_envelope
(path: Path, text: str)
agent/tests/test_grounding_document_figures.py:36
↓ 1 callersFunction_document_field
The evidence field a document's figure is recorded under. The name carries the figure's written shape and nothing more. A document does not s
agent/src/agent/grounding/evidence.py:757
↓ 1 callersFunction_document_percent_cells
Attach an explicit column unit to numeric cells before evidence scanning. A PDF reader may flatten a table to whitespace. Only carry its header
agent/src/agent/grounding/evidence.py:716
↓ 1 callersFunction_document_url
Build the SEC primary-document URL, or ``None`` when parts are missing. Args: cik: Padded or un-padded CIK; leading zeros are dropped for
agent/src/tools/sec_filings_tool.py:249
↓ 1 callersMethod_domains_align
Use strict domain alignment; relaxed alignment belongs to the receiver. A suffix alone cannot establish organizational ownership (public
agent/src/channels/email.py:1083
↓ 1 callersMethod_donchian_mid
计算 Donchian 通道中线。 公式: (highest_high(period) + lowest_low(period)) / 2 Args: high: 最高价序列。 low: 最低价序列。
agent/src/skills/ichimoku/example_signal_engine.py:52
↓ 1 callersMethod_download_and_save_media
Download media from Feishu and save to local disk. Returns: (file_path, content_text) - file_path is None if download fa
agent/src/channels/feishu.py:1529
↓ 1 callersMethod_download_and_save_media
Download and decrypt media from WeCom. Returns: file_path or None if download failed
agent/src/channels/wecom.py:362
↓ 1 callersMethod_download_attachments
Download supported attachments and return paths + display markers.
agent/src/channels/discord.py:709
↓ 1 callersMethod_download_failure_marker
(marker_type: str, name: str, reason: str)
agent/src/channels/slack.py:521
↓ 1 callersFunction_download_history
Download raw historical data via yfinance. Args: tickers: One or more yfinance symbols. start_date: Inclusive start date string.
agent/backtest/loaders/yfinance_loader.py:119
↓ 1 callersMethod_download_image
(self, info: dict[str, Any])
agent/src/channels/napcat.py:515
↓ 1 callersMethod_download_media
(self, client: Any, event: Any, media: _MediaInfo)
agent/src/channels/whatsapp.py:647
↓ 1 callersMethod_download_media_bytes
(self, mxc_url: str, limit_bytes: int)
agent/src/channels/matrix.py:873
↓ 1 callersMethod_download_slack_file
Download a Slack private file to the local media directory.
agent/src/channels/slack.py:486
↓ 1 callersMethod_download_to_media_dir_chunked
Download an inbound attachment using streaming chunk write. Uses chunked streaming to avoid loading large files into memory. Enforces
agent/src/channels/qq.py:660
↓ 1 callersFunction_downsample_indices
Pick equal-stride sample indices with the first and last row pinned. When ``total <= max_points`` every index is returned with stride 1.
agent/src/tools/run_artifact_tool.py:281
↓ 1 callersFunction_drain
(executor: ScheduledResearchExecutor)
agent/tests/scheduling/test_memory_consolidation_job.py:99
↓ 1 callersFunction_drain
Await every in-flight internal background task (test-only reach-in).
agent/tests/scheduling/test_system_jobs.py:71
↓ 1 callersFunction_drain
Await every in-flight internal background task (test-only reach-in).
agent/tests/scheduling/test_internal_dispatch.py:79
↓ 1 callersMethod_drain_ordered_updates
Drain one Telegram session buffer in stable message order.
agent/src/channels/telegram.py:1385
↓ 1 callersFunction_dummy_value
Return a non-empty stand-in for a ``default_config()`` value.
agent/tests/test_channel_config_meta.py:30
↓ 1 callersMethod_duration_label
(self, step: RailStep)
agent/cli/ui/rail.py:548
↓ 1 callersFunction_eastmoney_candidate
Map one Eastmoney suggest row to a normalized candidate, or ``None``. Eastmoney rows carry ``QuoteID`` (``<market>.<code>``), ``Code``, ``Name``,
agent/src/tools/symbol_search_tool.py:734
↓ 1 callersFunction_eastmoney_data_rows
Extract the ``QuotationCodeTable.Data`` rows from a suggest payload.
agent/src/tools/symbol_search_tool.py:721
↓ 1 callersFunction_eastmoney_filter
Build the datacenter ``filter`` clause for one market group. The A-share F10 datasets key on the dotted ``SECUCODE`` (e.g. ``600519.SH``), wh
agent/src/tools/financial_statements_tool.py:197
↓ 1 callersFunction_eastmoney_market_group
Classify an Eastmoney secid into the ``a`` or ``hk`` report group. Args: secid: Eastmoney secid (e.g. ``"1.600519"`` or ``"116.00700"``).
agent/src/tools/financial_statements_tool.py:159
↓ 1 callersFunction_ecmascript_number
Serialize a finite Decimal per ECMAScript ``Number::toString``. This is the number form RFC 8785 mandates: the shortest digit string that rou
agent/src/tools/paper_trade/state_hash.py:95
↓ 1 callersFunction_em_article
Project one Eastmoney CMS article into a compact, named record. Args: raw: A single article dict from ``result.cmsArticleWebOld``. R
agent/src/tools/stock_news_tool.py:133
← previousnext →5,701–5,800 of 26,887, ranked by callers