MCPcopy Create free account

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

Functions8,953 in github.com/HKUDS/Vibe-Trading

↓ 2 callersFunction_df
()
agent/tests/test_get_market_data_unresolved.py:28
↓ 2 callersFunction_diff_rows
Extract the ``data.diff`` row list from a push2 payload, defensively. Args: payload: Decoded JSON from a push2 board endpoint. Retur
agent/src/tools/sector_tool.py:134
↓ 2 callersFunction_dispatch_data
Dispatch user-facing data-routing commands.
agent/cli/_legacy.py:3125
↓ 2 callersMethod_dispatch_entries
(self, target_id: str, target_kind: str, entries: list[MochatBufferedEntry], was_mentioned: bool)
agent/src/channels/mochat.py:796
↓ 2 callersFunction_dominant
Most frequent value in a series, or the first if tied.
agent/src/shadow_account/extractor.py:594
↓ 2 callersFunction_download_frame
()
agent/tests/test_yfinance_crypto.py:66
↓ 2 callersFunction_drive_run
(tmp_path: Path)
agent/tests/test_error_path_redaction.py:64
↓ 2 callersFunction_duckdb_sql_string
(path: Path)
agent/backtest/loaders/base.py:579
↓ 2 callersMethod_effective_media_limit_bytes
min(local config, server advertised) — 0 blocks all uploads.
agent/src/channels/matrix.py:448
↓ 2 callersFunction_em_news_payload
An Eastmoney search payload carrying two CMS articles.
agent/tests/test_stock_news_tool.py:27
↓ 2 callersMethod_emit_session_event
Forward swarm status to the hosting session SSE channel if present.
agent/src/tools/swarm_tool.py:697
↓ 2 callersFunction_empty_field_frame
(index: pd.DatetimeIndex, fields: list[str])
agent/backtest/loaders/fundamentals_loader.py:474
↓ 2 callersMethod_enqueue_ordered_update
Stage a Telegram update behind a short per-session reorder window.
agent/src/channels/telegram.py:1301
↓ 2 callersMethod_ensure_bot_identity
Load bot identity once and reuse it for mention/reply checks.
agent/src/channels/telegram.py:1214
↓ 2 callersFunction_ensure_cli_env
Load dotenv values before rendering CLI-only settings.
agent/cli/_legacy.py:389
↓ 2 callersFunction_entrypoint
Thin wrapper so the console script and ``python -m cli.main`` agree.
agent/cli/main.py:1345
↓ 2 callersFunction_escape_telegram_html
Escape text for Telegram HTML parse mode.
agent/src/channels/telegram.py:119
↓ 2 callersFunction_event_data
(store: SwarmStore, run_id: str, event_type: str)
agent/tests/test_error_path_redaction.py:81
↓ 2 callersFunction_events_from_lines
(lines: Iterable[str])
agent/src/providers/openai_codex.py:266
↓ 2 callersMethod_evidence_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:988
↓ 2 callersFunction_exchange_for
Map the project suffix to the broker exchange code (NSE / BSE).
agent/backtest/loaders/india_broker_loader.py:65
↓ 2 callersFunction_execute_key_gated
Run a key-gated read-only tool, preserving its env-var-named error. Prefers the auto-discovered registry (present when the API key is set). When
agent/mcp_server.py:1121
↓ 2 callersMethod_execute_layer
Execute all tasks in a single layer in parallel, with retry on failure. Each task is retried up to agent_spec.max_retries times if the worker
agent/src/swarm/runtime.py:461
↓ 2 callersMethod_expired_result
Trip a stop, clear authority, audit, and return on proactive expiry. This is the §7.5 component-7 proactive path: expiry is acted on in the
agent/src/live/runtime/runner.py:610
↓ 2 callersFunction_extract_reference_links
Return every markdown link target containing ``references/``. Args: skill: Skill directory name (e.g. ``tushare``). Returns:
agent/tests/test_skill_reference_links.py:42
↓ 2 callersFunction_extract_rows
Pull the answer rows out of the iWenCai robot-data response. The service nests the structured result several levels deep under ``data.answer[
agent/src/tools/iwencai_tool.py:72
↓ 2 callersFunction_extract_text_content
Join text content blocks from a FastMCP response. Args: content: Content block list. Returns: Joined text block content.
agent/src/tools/mcp.py:947
↓ 2 callersMethod_extract_tool_call_thought_signature
(tool_call: Any)
agent/src/providers/llm.py:61
↓ 2 callersMethod_fail_pending
(self, err: BaseException)
agent/src/channels/napcat.py:173
↓ 2 callersFunction_fake_mcp_factory
(tool_names: tuple[str, ...])
agent/tests/test_agent_config.py:55
↓ 2 callersFunction_fetch_eastmoney_news
Fetch China-market news headlines for a query from Eastmoney. Args: query: Free-text search term (bare code or keyword). limit: M
agent/src/tools/stock_news_tool.py:153
↓ 2 callersMethod_fetch_messages
( self, search_criteria: tuple[str, ...], mark_seen: bool, dedupe: bool,
agent/src/channels/email.py:390
↓ 2 callersFunction_file_hash
(path: Path)
agent/backtest/run_card.py:113
↓ 2 callersMethod_filter_arguments
Drop local-only arguments before forwarding to the remote tool. Args: arguments: Raw arguments from the local agent loop.
agent/src/tools/mcp.py:609
↓ 2 callersFunction_filter_registry
Project a full registry down to a whitelist with consistent drop logging.
agent/src/tools/__init__.py:342
↓ 2 callersMethod_finalize_tool_result
Record a tool result: update memory, append message, write trace, emit event. Args: tc: Tool call object. result: Raw
agent/src/agent/loop.py:1421
↓ 2 callersMethod_find_required
(records: list[Hypothesis], hypothesis_id: str)
agent/src/hypotheses/registry.py:369
↓ 2 callersFunction_first_existing_env_path
Return the first configured `.env` candidate that exists, if any.
agent/cli/main.py:296
↓ 2 callersFunction_flatten_columns
Flatten any leftover multi-index columns after symbol selection. Args: frame: Price dataframe. symbol: yfinance symbol used for c
agent/backtest/loaders/yfinance_loader.py:112
↓ 2 callersMethod_flush_delayed_entries
(self, key: str, target_id: str, target_kind: str, reason: str, entry: MochatBufferedEntry | None)
agent/src/channels/mochat.py:782
↓ 2 callersMethod_flush_tool_hints
Send any buffered tool hints for *chat_id* as a single message. Tool hints are coalesced to reduce message count and avoid hitting the
agent/src/channels/weixin.py:1031
↓ 2 callersFunction_fmt
Render a large number with K / M / B / T suffixes for readability.
agent/src/tools/financial_rigor_tool.py:70
↓ 2 callersFunction_fold_key
Fold a key to its alphanumeric core (lower-case, separators stripped). Collapses snake_case, camelCase, kebab-case and spaced variants to one for
agent/src/tools/redaction.py:79
↓ 2 callersMethod_forget_channel
(self, channel_or_id: Any)
agent/src/channels/discord.py:391
↓ 2 callersFunction_format_last_tick
Render a runner's last-tick timestamp as an absolute + relative string. Args: tick: A ``datetime`` or ISO-8601 string from the liveness h
agent/cli/_legacy.py:3375
↓ 2 callersFunction_format_result
Format a SwarmRun into a JSON result string. Args: run: SwarmRun instance. preset: Matched preset name. variables: Extrac
agent/src/tools/swarm_tool.py:849
↓ 2 callersFunction_format_seconds
Format elapsed seconds for compact terminal display.
agent/cli/_legacy.py:359
↓ 2 callersFunction_format_start_failure
( service_name: str, proc: subprocess.Popen[str], *, command: list[str], ready_url: str,
agent/tests/mcp_http_test_helpers.py:132
↓ 2 callersMethod_format_telegram_error
Return a short, readable error summary for logs.
agent/src/channels/telegram.py:1562
↓ 2 callersFunction_format_tool_call_args
Smart-format tool argument summary.
agent/cli/_legacy.py:846
↓ 2 callersFunction_formula_to_html
(formula: str)
agent/scripts/w4a_patch_blog.py:131
↓ 2 callersMethod_forward_slash_command
( self, interaction: discord.Interaction, command_text: str, )
agent/src/channels/discord.py:147
↓ 2 callersMethod_gc
(self)
agent/src/channelsui/gateway_services.py:48
↓ 2 callersMethod_get_access_token
Get or refresh Access Token.
agent/src/channels/dingtalk.py:271
↓ 2 callersFunction_get_agent_style
Assign a consistent color to each agent.
agent/cli/_legacy.py:1937
↓ 2 callersFunction_get_channel_runtime
Late-access _get_channel_runtime for test monkeypatch compat.
agent/src/api/channels_routes.py:81
↓ 2 callersMethod_get_evidence
(self, evidence_id: str)
agent/src/goal/store.py:928
↓ 2 callersFunction_get_loader
Return a DataLoader class for a source name, with fallback. Args: source: Source name (tushare/okx/yfinance/akshare/ccxt). Returns:
agent/backtest/runner.py:359
↓ 2 callersFunction_get_run_swarm_tool_schema
Return the JSON-Schema for ``run_swarm`` via FastMCP introspection. Uses the public ``FastMCP.get_tool`` API so the test exercises the schema
agent/tests/test_swarm_m5_trust_model.py:76
↓ 2 callersFunction_get_skills_loader
()
agent/mcp_server.py:88
↓ 2 callersMethod_get_typing_ticket
Get typing ticket with per-user refresh + failure backoff cache.
agent/src/channels/weixin.py:934
↓ 2 callersMethod_global_bool
Read a global boolean from the top-level channels config.
agent/src/channels/manager.py:164
↓ 2 callersMethod_goal_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:936
↓ 2 callersMethod_handle_discord_message
Handle incoming Discord messages from discord.py. Self-loop guard: only drop messages from this bot's own account. Messages from othe
agent/src/channels/discord.py:532
↓ 2 callersFunction_handle_swarm_command
Route swarm sub-commands.
agent/cli/_legacy.py:1839
↓ 2 callersMethod_headers
(self)
agent/src/providers/openai_codex.py:395
↓ 2 callersFunction_hint
Print a next-step hint to stderr when stdout is a TTY. Goes to stderr so it does not pollute JSON / pipe-friendly stdout output.
agent/src/factors/cli_handlers.py:105
↓ 2 callersFunction_host
()
agent/src/api/qveris_routes.py:66
↓ 2 callersFunction_host_shell_tools_enabled_for_request
(request: Request)
agent/src/api/swarm_routes.py:76
↓ 2 callersFunction_host_without_port
Normalize a Host header to a lowercase hostname without a port.
agent/src/api/security.py:73
↓ 2 callersMethod_hydrate_after_subscribe
Replay goal/run strip state after subscribe (same-process refresh).
agent/src/channels/websocket.py:346
↓ 2 callersFunction_india_intent
()
agent/tests/test_india_mandate.py:57
↓ 2 callersFunction_india_panel
Synthetic NSE-shape OHLCV panel; vwap injected as India typical price.
agent/tests/factors/test_india_universe.py:26
↓ 2 callersFunction_infer_market_from_symbol
Best-effort market inference from a symbol string.
agent/src/tools/trade_journal_parsers.py:312
↓ 2 callersFunction_install_loader
(monkeypatch: pytest.MonkeyPatch, func)
agent/tests/test_get_fundamentals_tool.py:16
↓ 2 callersFunction_int_condition_value
Extract a positive integer from a scalar or tuple condition.
agent/src/shadow_account/scanner.py:287
↓ 2 callersMethod_interaction_channel_allowed
( self, interaction: discord.Interaction, channel: Any | None, )
agent/src/channels/discord.py:133
↓ 2 callersFunction_internal_roots
()
agent/src/tools/redaction.py:104
↓ 2 callersFunction_is_a_share
Accept either explicit `.SH/.SZ/.BJ` suffix or bare 6-digit ticker.
agent/backtest/loaders/mootdx_loader.py:47
↓ 2 callersMethod_is_allowed
(self, sender_id: str, chat_id: str, channel_type: str)
agent/src/channels/slack.py:642
↓ 2 callersFunction_is_allowed_import
Decide whether an import statement target is on the whitelist.
agent/tests/factors/test_alpha_purity.py:107
↓ 2 callersFunction_is_bj
Detect 北交所 symbols. Mootdx std factory does not serve BJ data (get_k_data raises KeyError, bars() returns empty), so the loader logs a warning
agent/backtest/loaders/mootdx_loader.py:55
↓ 2 callersMethod_is_bot_mention_event
(self, mention: Any)
agent/src/channels/feishu.py:867
↓ 2 callersFunction_is_data_agent
An agent with at least one data/analysis tool beyond the generic kit.
agent/src/swarm/worker.py:847
↓ 2 callersMethod_is_fatal_auth_response
(self, response: Any)
agent/src/channels/matrix.py:664
↓ 2 callersMethod_is_group_chat_id
Return True when chat_id appears to be a Signal group ID (base64).
agent/src/channels/signal.py:1282
↓ 2 callersMethod_is_http_url
(value: str)
agent/src/channels/dingtalk.py:299
↓ 2 callersFunction_is_literal_node
Return whether an AST node is made only from literal values.
agent/backtest/runner.py:165
↓ 2 callersMethod_is_not_modified_error
(exc: Exception)
agent/src/channels/telegram.py:887
↓ 2 callersMethod_is_os_environ
Return True when *node* is ``os.environ``.
tools/ci_env_var_gate.py:98
↓ 2 callersMethod_is_pre_startup_event
Skip events that landed in the timeline before this process started. Matrix sync replays the room timeline on each startup/restart; without
agent/src/channels/matrix.py:759
↓ 2 callersMethod_is_reply_to_bot
(self, message: Any)
agent/src/channels/whatsapp.py:625
↓ 2 callersFunction_is_safe_constant_assignment
Return whether a top-level assignment is literal-only.
agent/backtest/runner.py:179
↓ 2 callersFunction_is_safe_reference
Return whether an annotation/base expression cannot call code.
agent/backtest/runner.py:188
↓ 2 callersFunction_is_transient_windows_error
True for the Windows access/sharing race on os.replace. ``winerror`` is only set on Windows; ``getattr`` keeps this a hard False on POSIX, so
agent/src/swarm/store.py:82
↓ 2 callersFunction_is_us_equity
Return whether ``code`` is a US-equity symbol this loader handles.
agent/backtest/loaders/sina_loader.py:44
↓ 2 callersFunction_job_event_stream
Shared SSE loop for bench + compare jobs. Emits ``progress`` whenever ``n_done`` advances, then a single ``result`` (projected onto the wire
agent/src/api/alpha_routes.py:668
↓ 2 callersFunction_json_dumps
(value: object)
agent/src/goal/store.py:62
↓ 2 callersFunction_json_safe
(value: Any)
agent/backtest/run_card.py:133
↓ 2 callersFunction_known_live_brokers
Return the recognized live-broker keys (SPEC §7.2).
agent/src/api/live_routes.py:274
← previousnext →1,201–1,300 of 8,953, ranked by callers