MCPcopy Create free account

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

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

↓ 5 callersMethodreplay
Replay buffered session events for reconnect recovery. Args: session_id: Session ID. last_event_id: Last event ID rec
agent/src/session/events.py:151
↓ 5 callersFunctionresolve_mcp_server_tool_name_segments
Resolve unique local server-name segments for MCP tool names. The first release keeps MCP tool names ASCII-safe by sanitizing server names. D
agent/src/tools/mcp.py:182
↓ 5 callersFunctionresolve_safe_path
Resolve a file path under run_dir with fallback to allowed roots. Args: file_path: Relative or absolute path (supports tilde expansion).
agent/src/tools/path_utils.py:158
↓ 5 callersMethodrun
Start a background task and return its task_id. Args: command: Shell command to execute. Returns: JSON strin
agent/src/tools/background_tools.py:25
↓ 5 callersMethodrun_backtest
Full backtest pipeline. Signature matches ``daily_portfolio.run_backtest`` for drop-in replacement. Args: config: Backte
agent/backtest/engines/base.py:361
↓ 5 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:305
↓ 5 callersFunctionrun_shadow_backtest
Drive a multi-market backtest from a ShadowProfile. Args: profile: ShadowProfile to replay. window_start / window_end: ISO dates.
agent/src/shadow_account/backtester.py:95
↓ 5 callersFunctionsafe_document_path
Validate a document-reader file path. Args: p: User-supplied document path. `~` expansion is supported. Returns: Absolute re
agent/src/tools/path_utils.py:297
↓ 5 callersFunctionscenario
()
agent/tests/test_runtime_scheduler.py:111
↓ 5 callersMethodstatus
Return runtime and channel status.
agent/src/channels/runtime.py:91
↓ 5 callersFunctionstop_http_mcp_server
Terminate an HTTP MCP subprocess and wait for clean exit.
agent/tests/mcp_http_test_helpers.py:90
↓ 5 callersMethodto_dict
Return a plain JSON-serializable view of this tick result.
agent/src/live/runtime/runner.py:277
↓ 5 callersFunctionwrap_live_broker_tools
Re-wrap a live broker's discovered tools by read/write class. READ tools are returned as-is with ``is_readonly = True``; WRITE and UNKNOWN to
agent/src/live/registry.py:170
↓ 4 callersFunction_agent
(llm: _CapturingLLM, run_dir: Path)
agent/tests/test_agent_goal_context.py:45
↓ 4 callersFunction_agent_root
Return the agent package root.
agent/src/tools/path_utils.py:66
↓ 4 callersFunction_agent_spec
( *, agent_id: str, tools: list[str], max_iterations: int = 4, )
agent/tests/test_swarm_m4_e2e.py:168
↓ 4 callersFunction_apply_filter
Filter DataFrame by a simple expression. Supports: - "YYYY-MM to YYYY-MM" or "YYYY-MM-DD to YYYY-MM-DD" (date range) - "symbol=XX
agent/src/tools/trade_journal_tool.py:357
↓ 4 callersFunction_assert_row_zscore_properties
(result: pd.DataFrame)
agent/tests/test_get_fundamentals_tool.py:92
↓ 4 callersFunction_bar_date
Extract date from bar, handling various column names.
agent/backtest/engines/china_a.py:103
↓ 4 callersFunction_body
Parse a JSON tool response.
agent/tests/test_file_tool_sandbox_security.py:16
↓ 4 callersMethod_build_runtime_env
Build subprocess env and enforce no-proxy execution. Args: run_dir: Current run directory. pythonpath_extra: Addition
agent/src/core/runner.py:275
↓ 4 callersFunction_build_transport
(server_config: MCPServerConfig)
agent/tests/test_mcp_oauth_schema.py:228
↓ 4 callersMethod_calc_weights
SLSQP weights for the penalized objective; updates turnover state.
agent/backtest/optimizers/turnover_aware.py:70
↓ 4 callersFunction_call_remote
Call a known read operation on a remote MCP connector profile.
agent/src/trading/service.py:465
↓ 4 callersFunction_clean_list
Strip empty list values from MCP payloads.
agent/mcp_server.py:137
↓ 4 callersFunction_client
( tmp_path: Path, monkeypatch, *, channels_config: dict[str, object] | None = None, )
agent/tests/test_channels_api.py:17
↓ 4 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_goal_api.py:12
↓ 4 callersFunction_emit
Emit a swarm event via callback if provided. Args: callback: Optional event callback function. event_type: Event type string.
agent/src/swarm/worker.py:80
↓ 4 callersFunction_ensure_dotenv
Load `.env` from the first found candidate path.
agent/src/providers/llm.py:433
↓ 4 callersFunction_env_dir
()
agent/cli/onboard.py:91
↓ 4 callersFunction_epoch
UTC-midnight epoch seconds for a date, used to build fake chart rows.
agent/tests/test_yahoo_loader.py:23
↓ 4 callersMethod_equal_weight
Equal weights for n assets.
agent/backtest/optimizers/base.py:133
↓ 4 callersFunction_err
(message: str, **extra: Any)
agent/src/tools/shadow_account_tool.py:33
↓ 4 callersFunction_error
(exc: Exception)
agent/src/tools/hypothesis_tool.py:16
↓ 4 callersFunction_error
(exc: Exception)
agent/src/tools/autopilot_tool.py:26
↓ 4 callersMethod_event_source_content
(event: RoomMessage)
agent/src/channels/matrix.py:788
↓ 4 callersFunction_extract_max_iter
Pull ``--max-iter <N>`` (or ``--max-iter=N``) out of ``argv``. The legacy argparse setup accepts ``--max-iter`` both at the top level and as
agent/cli/main.py:1322
↓ 4 callersFunction_extract_product
Extract product code from futures symbol. Handles CME conventions: - Product + month-code + year: ESZ4, CLF25, GCM2025 - Product + Y
agent/backtest/engines/global_futures.py:97
↓ 4 callersFunction_fake_ai_message
Build the smallest object that quacks like a LangChain AIMessage.
agent/tests/test_swarm_token_tracking.py:33
↓ 4 callersMethod_fetch
(self, codes: list[str])
agent/tests/test_tushare_loader.py:323
↓ 4 callersFunction_fetch_price_history
Fetch daily OHLCV for one symbol via the backtest loader registry. Uses the same access path as the backtest runner (``resolve_loader`` + the
agent/src/shadow_account/extractor.py:174
↓ 4 callersFunction_final_response
(content: str = "Done.")
agent/tests/test_swarm_m4_e2e.py:202
↓ 4 callersFunction_fmp_symbol
Translate a project symbol into FMP's bare-ticker convention. FMP carries US tickers bare, so a trailing ``.US`` suffix (the project's US-equ
agent/backtest/loaders/fmp_loader.py:56
↓ 4 callersFunction_frame
Build an OHLCV frame from (open, high, low, close, volume) rows.
agent/tests/test_ohlc_validation.py:15
↓ 4 callersFunction_gc_pending
Remove expired pending entries in-place.
agent/src/channels/pairing/store.py:71
↓ 4 callersFunction_get_goal_store
Return the shared finance goal store.
agent/mcp_server.py:106
↓ 4 callersFunction_get_hypothesis
Return a hypothesis by id, or None when absent.
agent/src/tools/autopilot_tool.py:30
↓ 4 callersFunction_get_scheduled_research_store
Return the singleton ScheduledResearchJobStore, creating it on first call.
agent/src/api/scheduled_routes.py:44
↓ 4 callersFunction_group_codes_by_market
Group symbols by detected market type. Args: codes: List of symbol strings. Returns: Mapping market_type -> list of codes.
agent/backtest/runner.py:327
↓ 4 callersFunction_guard
(adapter: _MockAdapter)
agent/tests/test_advisory.py:146
↓ 4 callersFunction_guard
(adapter)
agent/tests/test_enforcement_l6.py:208
↓ 4 callersMethod_handle_watch_payload
(self, payload: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:681
↓ 4 callersFunction_has_unbalanced_brackets
Return True if ``text`` contains unbalanced ``()``/``[]``/``{}`` pairs. Used to decide whether a plain Enter should submit or insert a newlin
agent/cli/input.py:121
↓ 4 callersFunction_host_RUNS_DIR
()
agent/src/api/runs_routes.py:245
↓ 4 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/swarm_routes.py:72
↓ 4 callersFunction_intraday_stamped_row
A daily bar carrying Yahoo's real session-open epoch (14:30 UTC).
agent/tests/test_yahoo_loader.py:49
↓ 4 callersMethod_invoke_tool
Execute a tool with heartbeat + structured progress emission. Installs a thread-local progress emitter so the tool may call ``emit_pr
agent/src/agent/loop.py:1254
↓ 4 callersFunction_is_halt_turn
Return True if ``text`` is a bare kill-switch turn. Matches a turn whose entire content (trimmed, trailing punctuation removed, lower-cased)
agent/cli/main.py:825
↓ 4 callersFunction_json_error
Return a standard MCP JSON error envelope.
agent/mcp_server.py:121
↓ 4 callersFunction_json_error
Return a standard JSON error envelope.
agent/src/tools/goal_tool.py:16
↓ 4 callersFunction_json_ok
Return a standard MCP JSON success envelope.
agent/mcp_server.py:116
↓ 4 callersFunction_load_module_from_file
Load a Python module from a file path via importlib. Args: file_path: Path to the ``.py`` file. module_name: Logical module name.
agent/backtest/runner.py:147
↓ 4 callersFunction_load_optimizer
Dynamically load an optimizer function from config. Args: config: Backtest configuration. Returns: Optimizer callable, or No
agent/backtest/engines/base.py:140
↓ 4 callersFunction_lower_shadow
下影线长度。 Args: o: 开盘价序列。 c: 收盘价序列。 l: 最低价序列。 Returns: 每根K线的下影线长度。
agent/src/skills/candlestick/example_signal_engine.py:62
↓ 4 callersFunction_make_close_df
Create a close price DataFrame.
agent/tests/test_equity_regression.py:28
↓ 4 callersMethod_make_event
Create a SwarmEvent with current timestamp. Args: event_type: Event type string. agent_id: Optional agent identifier.
agent/src/swarm/runtime.py:185
↓ 4 callersFunction_make_factory
(state: dict[str, Any])
agent/tests/test_swarm_m4_e2e.py:95
↓ 4 callersFunction_make_fake_wrappers
Build lightweight ``MCPRemoteTool`` stubs without a live adapter. Mirrors the helper in ``tests/test_registry_mcp_integration.py`` so M2 test
agent/tests/test_swarm_m2_registry_assembly.py:45
↓ 4 callersFunction_make_jsonable
Convert FastMCP response payloads into JSON-serializable objects. Args: value: Arbitrary response value. Returns: JSON-seria
agent/src/tools/mcp.py:1018
↓ 4 callersFunction_make_mock_panel
(n_symbols: int = 10, n_days: int = 100)
agent/tests/test_bench_parallel.py:15
↓ 4 callersFunction_make_ohlcv_df
Build a minimal OHLCV DataFrame matching tushare's column layout.
agent/tests/test_tushare_loader.py:124
↓ 4 callersFunction_make_server_config
(*, enabled_tools=None)
agent/tests/test_swarm_m4_e2e.py:102
↓ 4 callersFunction_make_state
( *, list_outcomes: list, call_outcomes: list, )
agent/tests/test_swarm_m4_e2e.py:83
↓ 4 callersFunction_mandate
(**caps_overrides: Any)
agent/tests/test_advisory.py:86
↓ 4 callersFunction_mandate_is_expired
Return whether ``mandate`` is at/past its expiry as of ``now`` (fail-closed). An unparseable ``expires_at`` is treated as expired: a live mandate
agent/src/live/runtime/runner.py:190
↓ 4 callersFunction_meta
(**overrides: Any)
agent/tests/test_factor_gate_fund_prefix.py:16
↓ 4 callersFunction_ms
Epoch milliseconds for a wall-clock instant in a named timezone.
agent/tests/test_runtime_triggers.py:25
↓ 4 callersMethod_normalize
Normalize AKShare DataFrame to standard OHLCV schema. AKShare Chinese column names: 日期, 开盘, 最高, 最低, 收盘, 成交量 AKShare English column na
agent/backtest/loaders/akshare_loader.py:237
↓ 4 callersFunction_normalized_requirement_name
(requirement: str)
agent/tests/test_packaging_dependencies.py:12
↓ 4 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/tiger/sdk.py:639
↓ 4 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/longbridge/sdk.py:625
↓ 4 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/hypothesis_tool.py:12
↓ 4 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/autopilot_tool.py:22
↓ 4 callersFunction_ok
(**payload: Any)
agent/src/tools/shadow_account_tool.py:37
↓ 4 callersFunction_ok_payload
Two ascending daily candles in Finnhub's parallel-array layout.
agent/tests/test_finnhub_loader.py:22
↓ 4 callersFunction_panel
(values: list[list[float]], columns: list[str] | None = None)
agent/tests/test_get_fundamentals_tool.py:83
↓ 4 callersFunction_parse_env_bool
Coerce environment string values to ``bool``. Accepts ``"1"``, ``"true"``, ``"yes"``, ``"on"`` (case-insensitive) as ``True`` and ``"0"``, ``
agent/src/config/env_schema.py:43
↓ 4 callersFunction_parse_expiry
Parse an ISO-8601 UTC ``expires_at`` string into an aware ``datetime``. The mandate commit path writes the expiry with a trailing ``Z`` (e.g.
agent/src/live/runtime/runner.py:161
↓ 4 callersFunction_parse_period
Return (start_date, end_date) as YYYY-MM-DD strings.
agent/src/tools/alpha_bench_tool.py:70
↓ 4 callersFunction_print_result
Print execution result panel.
agent/cli/_legacy.py:1286
↓ 4 callersMethod_process_inbound_event
(self, target_id: str, event: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:711
↓ 4 callersFunction_raw
Unwrap a Yahoo ``{"raw":..,"fmt":..}`` cell to its numeric ``raw`` value. Args: value: A Yahoo scalar, which may be a plain value or a fo
agent/src/tools/stock_profile_tool.py:36
↓ 4 callersMethod_read_media_bytes
Read bytes from http(s) or local file path; return (data, filename).
agent/src/channels/qq.py:376
↓ 4 callersFunction_read_settings_env_values
Read settings without creating agent/.env. Prefer the user's active agent/.env. If it does not exist yet, fall back to agent/.env.example fo
agent/src/api/settings_routes.py:160
↓ 4 callersFunction_registry_with_remote
Build a swarm registry that exposes the given remote tools verbatim. Reuses the real :func:`build_swarm_registry` for the local-tool side (so
agent/tests/test_swarm_m4_e2e.py:575
↓ 4 callersMethod_reply_message_sync
Reply to an existing Feishu message using the Reply API (synchronous). Args: reply_in_thread: If True, reply as a thread/topic me
agent/src/channels/feishu.py:1554
↓ 4 callersMethod_require_mutable_goal
( self, session_id: str, goal_id: str, expected_goal_id: str, )
agent/src/goal/store.py:821
↓ 4 callersFunction_require_okx
()
agent/src/trading/connectors/okx/sdk.py:574
↓ 4 callersFunction_require_tigeropen
()
agent/src/trading/connectors/tiger/sdk.py:547
↓ 4 callersFunction_resolve_console
Return the shared CLI console.
agent/cli/commands/show.py:19
← previousnext →601–700 of 8,953, ranked by callers