MCPcopy Create free account

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

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

↓ 4 callersFunctionsave_qveris_config
Persist QVeris config with atomic replace and 0600 permissions. Args: config: Configuration to persist. Returns: The normali
agent/src/tools/qveris_tool.py:83
↓ 4 callersMethodsend
Send a message through Discord using discord.py.
agent/src/channels/discord.py:454
↓ 4 callersMethodstart
Start the Feishu bot with WebSocket long connection.
agent/src/channels/feishu.py:667
↓ 4 callersMethodstop
Stop bot and cleanup resources.
agent/src/channels/qq.py:223
↓ 4 callersMethodstream
(self, messages: list[dict[str, Any]], config: Optional[dict[str, Any]] = None)
agent/src/providers/openai_codex.py:399
↓ 4 callersMethodtext
(self, query, max_results=5, **kwargs)
agent/tests/test_web_search_tool.py:28
↓ 4 callersMethodto_sse
Format the event as an SSE text frame. Returns: Text that conforms to the SSE specification.
agent/src/session/events.py:38
↓ 4 callersMethodtrip_halt
(self, by: str, reason: str, broker: str | None = None)
agent/tests/test_runtime_runner.py:137
↓ 4 callersFunctionwith_security_warnings
Attach security warnings for selected string fields in a payload. Field selectors are dotted paths. The ``*`` component iterates lists, e.g.
agent/src/security/scanner.py:112
↓ 4 callersFunctionzscore
Cross-sectional z-score per row (axis=1, sample std). Rows with zero or NaN standard deviation become NaN — never silent zero.
agent/src/factors/base.py:69
↓ 3 callersFunction_account_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:582
↓ 3 callersFunction_accounts_base_url
(domain: str)
agent/src/channels/feishu.py:375
↓ 3 callersFunction_agent_config
(server)
agent/tests/test_trading_connections.py:17
↓ 3 callersFunction_arg_value
(args: Any, *keys: str)
agent/cli/ui/rail.py:96
↓ 3 callersFunction_as_float
Coerce ``value`` to a finite positive-or-zero float, else ``None``.
agent/src/live/enforcement.py:373
↓ 3 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/alpaca/sdk.py:570
↓ 3 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/dhan/sdk.py:569
↓ 3 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/shoonya/sdk.py:589
↓ 3 callersFunction_assemble
Discover + live-wrap the robinhood channel for a given allowlist.
agent/tests/test_readonly_default.py:82
↓ 3 callersFunction_assert_no_abs
(msg: str)
agent/tests/test_error_path_redaction.py:26
↓ 3 callersFunction_attach_price_features
Attach price-context features in place, batching one fetch per symbol. Groups roundtrips by symbol, fetches each symbol's price window once over
agent/src/shadow_account/extractor.py:270
↓ 3 callersMethod_attempt_file
(self, session_id: str, attempt_id: str)
agent/src/session/store.py:54
↓ 3 callersFunction_audit
(broker, session_id, *, kind, outcome, mandate, intent, broker_request, broker_response, gate_decision, error=
agent/src/live/sdk_order_gate.py:299
↓ 3 callersMethod_audit
Write one live-action audit event and return the redacted record. The returned record (identical to what was written to the ledger) is
agent/src/live/order_guard.py:610
↓ 3 callersFunction_auth_credential_from_header_or_query
Return the supplied API credential from the permitted source.
agent/src/api/security.py:148
↓ 3 callersFunction_auto_cluster
Pick a cluster count via simple silhouette heuristic (fallback k=2). Uses the supplied numeric features; scales by z-score to avoid any single
agent/src/shadow_account/extractor.py:416
↓ 3 callersFunction_bare_jid
(raw: Any)
agent/src/channels/whatsapp.py:148
↓ 3 callersFunction_base_kwargs
Required-only kwargs for a SwarmRun instance.
agent/tests/test_swarm_run_metadata.py:18
↓ 3 callersFunction_best_summary
Extract the best summary from all assistant messages.
agent/src/swarm/worker.py:749
↓ 3 callersFunction_build_agent
(llm: Any, max_iter: int = 3, tmp_run_dir: Path | None = None)
agent/tests/test_agent_loop_no_assistant_prefill.py:68
↓ 3 callersMethod_build_chunks
Build outbound text chunks, including attachment-failure fallback text.
agent/src/channels/discord.py:313
↓ 3 callersFunction_build_client
(server_config: MCPServerConfig)
agent/tests/test_mcp_oauth_schema.py:224
↓ 3 callersMethod_build_message_metadata
Build common Telegram inbound metadata payload.
agent/src/channels/telegram.py:1122
↓ 3 callersMethod_calc_margin
Margin (collateral) required for a position.
agent/backtest/engines/base.py:347
↓ 3 callersMethod_calc_pnl
Realised PnL for a closed position.
agent/backtest/engines/base.py:340
↓ 3 callersMethod_capabilities
(self)
agent/src/providers/llm.py:51
↓ 3 callersMethod_capture
(self, env: dict[str, str])
agent/tests/test_llm.py:260
↓ 3 callersFunction_capture_on_event
Run ``_run_agent`` with all heavy deps stubbed, returning its ``on_event``. Replaces ``AgentLoop`` with a stub that captures the real ``event_cal
agent/tests/test_cli_live.py:595
↓ 3 callersMethod_channel_parent_key
Return the parent channel key for a Discord thread-like channel.
agent/src/channels/discord.py:365
↓ 3 callersFunction_channels_api_call
Call an IM channel runtime endpoint on the local API server.
agent/cli/_legacy.py:2864
↓ 3 callersFunction_clean_num
Normalise a numeric string with commas (ASCII or wide) to float.
agent/src/tools/report_audit_tool.py:52
↓ 3 callersMethod_cleanup_connection
Remove *connection* from every subscription set; safe to call multiple times.
agent/src/channels/websocket.py:309
↓ 3 callersFunction_clear_proxy_env
(monkeypatch)
agent/tests/test_ccxt_loader_proxy.py:15
↓ 3 callersMethod_clear_reactions
Remove all pending reactions after bot replies.
agent/src/channels/discord.py:786
↓ 3 callersMethod_client
(self)
agent/src/tools/qveris_tool.py:334
↓ 3 callersFunction_client_order_id
Derive a client-order-id from a recorded order for dedupe. A client-order-id is the idempotency key the broker echoes back so a caller can re
agent/src/live/runtime/reconcile.py:191
↓ 3 callersMethod_close_imap_client
(client: Any)
agent/src/channels/email.py:588
↓ 3 callersFunction_coerce_str_list
(value: Any)
agent/src/hypotheses/registry.py:49
↓ 3 callersFunction_coerce_string_list
Coerce a JSON-schema array-or-string value to a string list.
agent/src/tools/goal_tool.py:24
↓ 3 callersFunction_collect_process_output
Return subprocess stdout after ensuring the process has exited.
agent/tests/mcp_http_test_helpers.py:102
↓ 3 callersFunction_commit_mandate
(live_runtime: Path)
agent/tests/test_readonly_default.py:103
↓ 3 callersFunction_compact_date
Normalize a ``YYYY-MM-DD`` (or already-compact) date for the API filter. Args: date: A trade date such as ``"2024-01-02"`` or ``"20240102
agent/src/tools/dragon_tiger_tool.py:36
↓ 3 callersFunction_compute_forward_returns
Next-bar forward simple returns from close, aligned to factor timestamp.
agent/src/tools/alpha_bench_tool.py:477
↓ 3 callersFunction_compute_profile
Build the trading profile dict. Args: df: Standardized DataFrame (datetime parsed, sorted). Returns: Dict with avg_holding_d
agent/src/tools/trade_journal_tool.py:92
↓ 3 callersFunction_compute_single_alpha
Picklable worker for parallel bench. Normal parallel execution passes only an alpha id after ``_init_bench_worker`` has stored the large pane
agent/src/factors/bench_runner.py:52
↓ 3 callersFunction_configure
Point the local loader at a temp config file.
agent/tests/test_local_loader.py:13
↓ 3 callersFunction_context_infos
(message: Any)
agent/src/channels/whatsapp.py:179
↓ 3 callersFunction_cookie_header
Render a cookie mapping as a single ``Cookie:`` header value.
agent/backtest/loaders/yahoo_client.py:143
↓ 3 callersMethod_count_data_sources
Count registered backtest data sources for the system prompt. Derived from the loader registry's ``VALID_SOURCES`` (the single source
agent/src/agent/context.py:200
↓ 3 callersMethod_create_chat_result
(self, response, generation_info=None)
agent/src/providers/llm.py:228
↓ 3 callersMethod_default_scope
(self)
agent/src/channelsui/gateway_services.py:82
↓ 3 callersMethod_derive_topic_session_key
Derive topic-scoped session key for Telegram chats with threads.
agent/src/channels/telegram.py:1114
↓ 3 callersFunction_disposition_effect
Detect disposition effect: holding losers longer than winners. Metric = avg_loss_hold / avg_win_hold. A ratio > 1 means the user holds losing
agent/src/tools/trade_journal_tool.py:178
↓ 3 callersFunction_eastmoney_payload
A suggest payload spanning A-share, HK, and US markets.
agent/tests/test_symbol_search_tool.py:16
↓ 3 callersMethod_emit
Best-effort host event emission for goal mutations.
agent/src/tools/goal_tool.py:132
↓ 3 callersFunction_epoch_seconds
Convert a ``YYYY-MM-DD`` date to UTC midnight epoch seconds. Computed from the parsed calendar date (not ``time.time()``) so the window is re
agent/backtest/loaders/yahoo_loader.py:91
↓ 3 callersFunction_err
(msg: str)
agent/src/hypotheses/cli_handlers.py:57
↓ 3 callersFunction_error
Build the failure envelope as a JSON string. Args: message: Human-readable error description. Returns: A ``{"ok": false, "er
agent/src/tools/sector_tool.py:51
↓ 3 callersMethod_event_callback
(event: SwarmEvent)
agent/src/swarm/runtime.py:494
↓ 3 callersFunction_events
(rows: list[tuple[str, str, str, float, str, str]])
agent/tests/test_rsshub_events_lookahead.py:32
↓ 3 callersMethod_execute_bars
Bar-by-bar execution with market rule enforcement.
agent/backtest/engines/base.py:507
↓ 3 callersMethod_execute_single
Execute a single tool call. Args: tc: Tool call object. context: ContextBuilder. messages: Conversation m
agent/src/agent/loop.py:1223
↓ 3 callersFunction_extract_post_content
Extract text and image keys from Feishu post (rich text) message. Handles three payload shapes: - Direct: {"title": "...", "content": [[..
agent/src/channels/feishu.py:270
↓ 3 callersFunction_extract_rules
Cluster profitable roundtrips, derive one rule per dense cluster.
agent/src/shadow_account/extractor.py:351
↓ 3 callersFunction_fake_response
(text: str, status_ok: bool = True)
agent/tests/test_sina_loader.py:140
↓ 3 callersFunction_filter_df
()
agent/tests/test_trade_journal.py:319
↓ 3 callersFunction_format_tool_result_preview
Smart-format tool result preview.
agent/cli/_legacy.py:866
↓ 3 callersFunction_future_expiry
()
agent/tests/test_runtime_runner.py:85
↓ 3 callersFunction_get_client
()
agent/skills/ashare-mootdx/references/a_mootdx_fetcher.py:17
↓ 3 callersFunction_get_emitter
Return the active emitter on the current thread, if any.
agent/src/agent/progress.py:84
↓ 3 callersMethod_get_state_dir
(self)
agent/src/channels/weixin.py:175
↓ 3 callersFunction_group_codes_by_source
Group symbols by inferred source (back-compat). Args: codes: List of symbol strings. Returns: Mapping source -> list of code
agent/backtest/runner.py:343
↓ 3 callersMethod_guess_filename
(self, media_ref: str, upload_type: str)
agent/src/channels/dingtalk.py:312
↓ 3 callersMethod_guess_upload_type
(self, media_ref: str)
agent/src/channels/dingtalk.py:302
↓ 3 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/runs_routes.py:241
↓ 3 callersFunction_id
(prefix: str)
agent/src/goal/store.py:58
↓ 3 callersMethod_id_matches_account
Return True when an identifier refers to the bot account.
agent/src/channels/signal.py:1060
↓ 3 callersMethod_instance
(self, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:203
↓ 3 callersMethod_is_direct_room
(self, room: MatrixRoom)
agent/src/channels/matrix.py:742
↓ 3 callersFunction_is_numeric_pick
Return the chosen ordinal if ``text`` is a bare numeric pick, else None. Only a turn that is *exactly* a positive integer (e.g. ``"2"``) counts a
agent/cli/main.py:937
↓ 3 callersFunction_is_pipe_row
(line: str)
agent/cli/ui/transcript.py:117
↓ 3 callersFunction_is_private
Check whether *addr* is non-globally-routable (private/internal/mesh). ``addr.is_global`` is False for loopback, link-local, RFC 1918 private,
agent/src/channels/utils.py:153
↓ 3 callersFunction_is_spa_html_route
Return True when *path* corresponds to a frontend SPA page that shadows an API endpoint and should fall back to ``index.html`` on browser navi
agent/src/api/helpers.py:41
↓ 3 callersMethod_is_trusted_service_url
Return True for HTTPS Bot Framework service URLs trusted for bearer replies.
agent/src/channels/msteams.py:651
↓ 3 callersFunction_is_valid_label
True if a label looks like a meaningful financial field name.
agent/src/tools/report_audit_tool.py:61
↓ 3 callersFunction_is_windows
True when running on a Windows-like platform (win32, including Cygwin/MSYS).
agent/cli/_legacy.py:5065
↓ 3 callersFunction_json_response
Serialize a tool response.
agent/src/tools/qveris_tool.py:144
↓ 3 callersFunction_jsonp
(bars_json: str)
agent/tests/test_sina_loader.py:59
↓ 3 callersFunction_live_api_call
Call an R6 live-runner endpoint and decode the JSON response. Args: method: HTTP verb (``"GET"`` or ``"POST"``). path: Endpoint p
agent/cli/_legacy.py:2836
↓ 3 callersFunction_live_server_config
Resolve the protected MCP server config for ``broker``. The config is read at boot from the user-side protected agent config file (never from
agent/cli/_legacy.py:3136
← previousnext →801–900 of 8,953, ranked by callers