MCPcopy Create free account

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

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

↓ 2 callersMethod_refresh_sessions_directory
(self, subscribe_new: bool)
agent/src/channels/mochat.py:549
↓ 2 callersFunction_refusal
(broker, *, decision, reason, reauth, breach=None, record=None)
agent/src/live/sdk_order_gate.py:184
↓ 2 callersMethod_refusal
Build the structured refusal envelope returned to the agent loop.
agent/src/live/order_guard.py:521
↓ 2 callersMethod_register_handlers
( self, client: Any, *, login_result: asyncio.Future[None] | None = None,
agent/src/channels/whatsapp.py:432
↓ 2 callersFunction_reject_cross_site_browser_request
Reject unsafe browser requests from untrusted cross-site origins.
agent/src/api/security.py:202
↓ 2 callersMethod_remember_account_id_alias
Remember known bot identifiers for mention matching.
agent/src/channels/signal.py:1051
↓ 2 callersMethod_remember_thread_context
Cache Telegram thread context by chat/message id for follow-up replies.
agent/src/channels/telegram.py:1278
↓ 2 callersMethod_remove_reaction
Remove emoji reaction from a message (best-effort, non-blocking).
agent/src/channels/telegram.py:1538
↓ 2 callersFunction_render_env
Render values as a stable ``.env`` body (KEY=value lines).
agent/cli/onboard.py:96
↓ 2 callersFunction_render_html
Render with Jinja2 autoescape if available; else manual ``html.escape``.
agent/src/tools/alpha_bench_tool.py:608
↓ 2 callersMethod_renderable
(self)
agent/cli/components/working_indicator.py:102
↓ 2 callersMethod_reply_ephemeral
Send an ephemeral interaction response and report success.
agent/src/channels/discord.py:107
↓ 2 callersFunction_report_written
True iff a non-empty report.md was actually produced by the worker.
agent/src/swarm/worker.py:838
↓ 2 callersMethod_request
(self, method: str, url: str, *, auth: bool, **kwargs: Any)
agent/backtest/loaders/qveris_loader.py:207
↓ 2 callersFunction_require_dhan
()
agent/src/trading/connectors/dhan/sdk.py:531
↓ 2 callersFunction_require_shoonya
()
agent/src/trading/connectors/shoonya/sdk.py:504
↓ 2 callersMethod_reset_runtime_state
Reset client and typing state.
agent/src/channels/discord.py:807
↓ 2 callersFunction_resolve_api_key
Return the configured Alpha Vantage API key, or empty when unset. Returns: The trimmed key, or ``""`` when the env var is absent or a pla
agent/backtest/loaders/alphavantage_loader.py:59
↓ 2 callersFunction_resolve_broker
Return ``(broker_key, sdk_module)`` for the first available India broker. Prefers Shoonya, then Dhan. Returns ``(None, None)`` when neither the S
agent/backtest/loaders/india_broker_loader.py:40
↓ 2 callersMethod_resolve_channel
Resolve a Discord channel from cache first, then network fetch.
agent/src/channels/discord.py:601
↓ 2 callersMethod_resolve_interaction_channel
( self, interaction: discord.Interaction, )
agent/src/channels/discord.py:116
↓ 2 callersFunction_resolve_node_and_npm
Return ``(node_path, npm_path)`` if both are on PATH, else ``(None, None)``. Used by ``cmd_setup`` to fail fast with a clear message instead of
agent/cli/_legacy.py:5070
↓ 2 callersFunction_result_exit_code
Map run results to stable exit codes.
agent/cli/_legacy.py:267
↓ 2 callersFunction_run
Build an AgentLoop, wire up a scratch run_dir, and execute.
agent/tests/test_content_filter_e2e.py:120
↓ 2 callersFunction_run
(engine, code: str, run_dir: Path)
agent/tests/test_india_backtest_smoke.py:59
↓ 2 callersFunction_run_sync
Run an async operation from sync code. Args: operation: Async callable to execute. Returns: Result returned by the async cal
agent/src/tools/mcp.py:638
↓ 2 callersMethod_run_with_agent
Execute an attempt with the V5 AgentLoop. Args: attempt: Current execution attempt. messages: Session message history
agent/src/session/service.py:194
↓ 2 callersMethod_run_worker_with_retries
Run a worker with automatic retry on failure. Retries up to agent_spec.max_retries times. Emits a "task_retry" event before each retr
agent/src/swarm/runtime.py:632
↓ 2 callersFunction_runner
()
agent/src/api/alpha_routes.py:536
↓ 2 callersFunction_safe_call
(obj: Any, name: str, *args: Any)
agent/src/trading/connectors/longbridge/sdk.py:756
↓ 2 callersFunction_safe_dict
Return *value* if it's a dict, else empty dict.
agent/src/channels/mochat.py:74
↓ 2 callersFunction_safe_get
Safely traverse nested dicts.
agent/src/trading/connectors/dhan/sdk.py:577
↓ 2 callersFunction_safe_import_path
Validate a user-supplied path against explicit import roots. Args: p: User-supplied path. `~` expansion is supported. purpose: Hu
agent/src/tools/path_utils.py:254
↓ 2 callersMethod_same_record
Return whether *current* is the same scheduled run we started. ``created_at`` is assigned once at creation, so a replacement POST for
agent/src/scheduled_research/executor.py:297
↓ 2 callersFunction_sample_payload
()
agent/tests/test_block_trades_tool.py:15
↓ 2 callersFunction_sample_summary
()
agent/tests/test_stock_profile_tool.py:15
↓ 2 callersFunction_sanitize_data_map
Drop structurally-invalid OHLC bars from every fetched frame. Each loader only drops NaN rows, so a bar that violates the OHLC invariants (``
agent/backtest/runner.py:915
↓ 2 callersFunction_sanitize_name_segment
Normalize a server or tool name segment for stable local naming. Args: value: Raw server or tool name. Returns: Lowercase AS
agent/src/tools/mcp.py:673
↓ 2 callersMethod_save_session_cursors
(self)
agent/src/channels/mochat.py:895
↓ 2 callersMethod_save_session_map
(self)
agent/src/channels/runtime.py:215
↓ 2 callersFunction_scheduled_research_scheduler_enabled
Return whether scheduled research execution is enabled.
agent/src/api/scheduled_routes.py:39
↓ 2 callersMethod_send_batch_message
( self, token: str, chat_id: str, msg_key: str, msg_param: dict[str, A
agent/src/channels/dingtalk.py:550
↓ 2 callersMethod_send_event
Send a control event (attached, error, ...) to a single connection.
agent/src/channels/websocket.py:351
↓ 2 callersMethod_send_message_sync
Send a single message and return the message_id on success.
agent/src/channels/feishu.py:1604
↓ 2 callersMethod_send_text
Send a text message matching the exact protocol from send.ts.
agent/src/channels/weixin.py:1287
↓ 2 callersMethod_send_text
Send a plain text message with HTML fallback.
agent/src/channels/telegram.py:852
↓ 2 callersMethod_send_text_only
Send a plain/markdown text message.
agent/src/channels/qq.py:288
↓ 2 callersMethod_sender_matches_allowlist
Return True if any normalized variant of sender_id is on allow_list. Both ``sender_id`` and each allow_list entry can be a single ide
agent/src/channels/signal.py:1028
↓ 2 callersMethod_session_pause_remaining_s
(self)
agent/src/channels/weixin.py:523
↓ 2 callersMethod_set_source
(self, source: str)
tools/ci_env_var_gate.py:89
↓ 2 callersMethod_set_streaming_mode_sync
Set CardKit streaming_mode using a strictly increasing sequence.
agent/src/channels/feishu.py:1739
↓ 2 callersFunction_sha256
(path: Path)
agent/tests/test_goal_store.py:25
↓ 2 callersFunction_sha256_path
(cache_path: Path)
agent/src/tools/alpha_bench_tool.py:151
↓ 2 callersFunction_sharpe
(returns: np.ndarray, bars_per_year: int = 252)
agent/backtest/validation.py:148
↓ 2 callersFunction_short_url
(url: str, limit: int = 64)
agent/cli/ui/rail.py:201
↓ 2 callersMethod_should_apply_post_action
(self)
agent/src/channels/email.py:636
↓ 2 callersMethod_should_process_message
Apply sender and room policy checks.
agent/src/channels/matrix.py:769
↓ 2 callersFunction_show_settings
Show current runtime settings.
agent/cli/_legacy.py:1724
↓ 2 callersMethod_socket_call
(self, event_name: str, payload: dict[str, Any])
agent/src/channels/mochat.py:521
↓ 2 callersFunction_spec_get
Read a derived-field spec entry from either a mapping or an object.
agent/backtest/loaders/fundamentals_loader.py:360
↓ 2 callersMethod_split_elements_by_table_limit
Split card elements into groups with at most *max_tables* table elements each. Feishu cards have a hard limit of one table per card (API erro
agent/src/channels/feishu.py:1104
↓ 2 callersFunction_start_channel_runtime
Start the IM channel runtime.
agent/src/api/channels_routes.py:30
↓ 2 callersMethod_start_typing
Start sending 'typing...' indicator for a chat.
agent/src/channels/telegram.py:1513
↓ 2 callersMethod_start_typing_keepalive
Start periodic typing refresh (spec-recommended keepalive).
agent/src/channels/matrix.py:701
↓ 2 callersFunction_state_path
Return the durable runtime-state path for ``broker``.
agent/src/live/runtime/reconcile.py:507
↓ 2 callersMethod_stop_fallback_workers
(self)
agent/src/channels/mochat.py:628
↓ 2 callersFunction_store_path
()
agent/src/channels/pairing/store.py:32
↓ 2 callersFunction_stream_error
Build a ProviderStreamError mimicking a transient mid-stream reset. Returns: ProviderStreamError wrapping a ``ConnectionResetError``.
agent/tests/test_swarm_worker_stream_retry.py:87
↓ 2 callersMethod_stream_key
Scope streaming buffers to the inbound message when available.
agent/src/channels/feishu.py:1024
↓ 2 callersMethod_strip_bot_mention
(self, text: str)
agent/src/channels/slack.py:686
↓ 2 callersMethod_strip_md_formatting
Strip markdown formatting markers from text for plain display. Feishu table cells do not support markdown rendering, so we remove the
agent/src/channels/feishu.py:1047
↓ 2 callersFunction_strip_model_prefix
(model: str)
agent/src/providers/openai_codex.py:152
↓ 2 callersFunction_stub_backtest_result
(profile: ShadowProfile)
agent/tests/test_shadow_account.py:423
↓ 2 callersMethod_subscribe_panels
(self, panel_ids: list[str])
agent/src/channels/mochat.py:512
↓ 2 callersMethod_subscribe_sessions
(self, session_ids: list[str])
agent/src/channels/mochat.py:483
↓ 2 callersFunction_sweep_tool
Return the connector-specific sweep tool name for audit records.
agent/src/live/runtime/flatten.py:275
↓ 2 callersFunction_sync_legacy_test_overrides
Mirror package-level monkeypatches onto ``_legacy``'s module globals. Tests reach into ``cli.<NAME>`` to override constants, but legacy calla
agent/cli/__init__.py:54
↓ 2 callersMethod_task_path
Return the file path for a task. Args: task_id: Task ID. Returns: Path to the task JSON file.
agent/src/swarm/task_store.py:36
↓ 2 callersMethod_thread_reply_target
Return the message_id that should receive a Reply API response.
agent/src/channels/feishu.py:1593
↓ 2 callersFunction_to_float
(value: Any)
agent/src/trading/connectors/binance/sdk.py:697
↓ 2 callersFunction_to_number
Coerce a cell to ``float``, or ``None`` when absent/non-numeric.
agent/src/tools/research_reports_tool.py:320
↓ 2 callersFunction_to_sina_symbol
Map an internal code to Sina's bare ticker (``"AAPL.US"`` -> ``"AAPL"``).
agent/backtest/loaders/sina_loader.py:49
↓ 2 callersFunction_to_tiingo_symbol
Map a project symbol to a Tiingo ticker, or ``None`` when unsupported. Args: code: Project symbol such as ``AAPL.US`` or ``AAPL``. R
agent/backtest/loaders/tiingo_loader.py:59
↓ 2 callersFunction_today
Return today's date (indirection kept for test monkeypatching).
agent/src/tools/lockup_expiry_tool.py:47
↓ 2 callersFunction_token_threshold
()
agent/src/agent/loop.py:72
↓ 2 callersFunction_tool_response
(idx: int)
agent/tests/test_swarm_worker_content_filter.py:179
↓ 2 callersFunction_tool_title
(tool: str, args: Any)
agent/cli/ui/rail.py:75
↓ 2 callersFunction_transient_error
Build a ProviderStreamError mimicking a transient mid-stream reset. Returns: ProviderStreamError wrapping a ``ConnectionResetError`` (no
agent/tests/test_agent_loop_stream_retry.py:81
↓ 2 callersFunction_truncate_preview
Stringify and truncate an event preview payload.
agent/src/swarm/worker.py:802
↓ 2 callersMethod_try_send_rich
Attempt sendRichMessage (Bot API 10.1). Returns True on success.
agent/src/channels/telegram.py:648
↓ 2 callersFunction_unlock_if_live
Unlock the trade context for live profiles; paper (SIMULATE) is a no-op. Live trading requires the MD5 of the Futu trade password, read from the
agent/src/trading/connectors/futu/sdk.py:604
↓ 2 callersFunction_unsupported_market_data
(config: Trading212Config, capability: str, *, symbol: str)
agent/src/trading/connectors/trading212/sdk.py:471
↓ 2 callersFunction_utc_now_iso
()
agent/src/session/models.py:12
↓ 2 callersFunction_utc_today
Return today's UTC calendar date as ``YYYY-MM-DD``.
agent/src/live/daily_count.py:23
↓ 2 callersFunction_utf16_len
UTF-16 code-unit length, matching Signal BodyRange semantics.
agent/src/channels/signal.py:63
↓ 2 callersFunction_validate_api_auth
Validate configured auth, preserving loopback-only dev mode.
agent/src/api/security.py:233
↓ 2 callersFunction_validate_function_def
Reject import-time execution in function definitions.
agent/backtest/runner.py:203
↓ 2 callersFunction_validate_id_token
(token: str, kind: str)
agent/src/factors/registry.py:142
↓ 2 callersFunction_validate_optional_journal_path
Validate a journal_path kwarg that may be missing/empty. Returns the resolved path string, or None when the caller didn't pass one. Raises Va
agent/src/tools/shadow_account_tool.py:41
↓ 2 callersMethod_validate_remote_media_url
(self, media_ref: str)
agent/src/channels/dingtalk.py:341
← previousnext →1,401–1,500 of 8,953, ranked by callers