MCPcopy Create free account

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

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

↓ 3 callersMethodsend
(self, msg: OutboundMessage)
agent/src/channels/websocket.py:873
↓ 3 callersMethodsetup
(self, tmp_path: Path)
agent/tests/test_skill_writer_tools.py:176
↓ 3 callersFunctionshould_register_live_channel
Decide whether to register a live channel given session interactivity. SPEC Transport §4 (headless / no-token-yet): a non-interactive ``serve
agent/src/live/registry.py:143
↓ 3 callersMethodstart
(self)
agent/tests/test_runtime_runner.py:364
↓ 3 callersMethodstop
Stop and erase the spinner line.
agent/cli/stream.py:133
↓ 3 callersFunctionsupport_resistance
Compute support and resistance levels via peak/valley clustering. Args: close: Closing price series. window: Peak/valley detectio
agent/src/tools/pattern_tool.py:93
↓ 3 callersFunctiont_stat
One-sample t-stat against zero (returns 0.0 if undefined).
agent/src/factors/bench_runner_strict.py:187
↓ 3 callersFunctiontcp_port_open
Return whether a TCP socket accepts connections.
agent/src/trading/connectors/ibkr/local.py:230
↓ 3 callersFunctionthree_scenario_valuation
Bull / base / bear target prices from EPS-growth and target-PE assumptions. Future EPS = ``current_eps × (1 + growth) ** years``; target price =
agent/src/tools/financial_rigor_tool.py:365
↓ 3 callersMethodto_dict
Serialize to JSON-safe dict.
agent/src/shadow_account/models.py:79
↓ 3 callersMethodto_dict
Return a JSON-serializable dict for SSE payloads.
agent/src/agent/progress.py:52
↓ 3 callersFunctiontrend_line_slope
Compute rolling linear-fit slope. Args: close: Closing price series. window: Fitting window size. Returns: Series of
agent/src/tools/pattern_tool.py:131
↓ 3 callersMethodupdate_status
Update task status and additional fields. Args: task_id: Task ID. status: New status. **kwargs: Optional
agent/src/swarm/task_store.py:89
↓ 3 callersFunctionvalidate_codex_base_url
Validate the only supported ChatGPT Codex OAuth endpoint. ChatGPT OAuth tokens must not be sent to arbitrary OpenAI-compatible base URLs. The
agent/src/providers/openai_codex.py:120
↓ 3 callersFunctionverify_market_cap
Verify ``market cap = price × shares`` against a reported value. Args: price: Current share price. shares: Total share count.
agent/src/tools/financial_rigor_tool.py:143
↓ 3 callersFunctionverify_valuation
Derive valuation ratios from raw per-share inputs (exact decimal). Each optional input, when supplied and non-zero, contributes its metric(s).
agent/src/tools/financial_rigor_tool.py:179
↓ 3 callersFunctionwebsocket_turn_wall_started_at
Return the wall-clock time when the current turn started, or None.
agent/src/session/webui_turns.py:23
↓ 3 callersMethodwrite_text_entry
Write an entry with one potentially large text field. Args: entry: Base trace entry. Mutated before writing. field: T
agent/src/agent/trace.py:88
↓ 2 callersMethod__enter__
(self)
agent/cli/components/working_indicator.py:129
↓ 2 callersMethod__exit__
(self, exc_type, exc, tb)
agent/cli/components/working_indicator.py:137
↓ 2 callersMethod_add_reaction
Add a reaction emoji to a message. Returns the reaction_id on success, None on failure. When called via a tracked background task, th
agent/src/channels/feishu.py:951
↓ 2 callersFunction_allowed_run_roots
Return all roots allowed for run_dir-based tools.
agent/src/tools/path_utils.py:216
↓ 2 callersFunction_alpha_summary
(registry: Any, alpha_id: str)
agent/src/tools/alpha_zoo_tool.py:58
↓ 2 callersFunction_api_key
Return the FMP API key from the environment, stripped (``""`` if unset).
agent/backtest/loaders/fmp_loader.py:44
↓ 2 callersFunction_appearance_payload
A datacenter appearance payload with two board rows.
agent/tests/test_dragon_tiger_tool.py:20
↓ 2 callersFunction_apply_microcompact_gate
Mirror AgentLoop layer-1 gate (``loop.py`` ~572-573).
agent/tests/test_loop_helpers.py:25
↓ 2 callersFunction_as_float
Coerce an Eastmoney numeric cell to ``float``, or ``None`` if unusable. Eastmoney emits ``"-"`` for missing numerics; those map to ``None``.
agent/src/tools/sector_tool.py:63
↓ 2 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/binance/sdk.py:681
↓ 2 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/okx/sdk.py:633
↓ 2 callersFunction_assert_gateway
Fail with a clean error when the local OpenD gateway is unreachable.
agent/src/trading/connectors/futu/sdk.py:660
↓ 2 callersFunction_assert_owner_only_mode_on_posix
(cache: Path)
agent/tests/test_oauth_token_cache.py:29
↓ 2 callersMethod_atomic_write
Atomically write a file: write to .tmp then rename. Args: path: Target file path. content: File content.
agent/src/swarm/store.py:553
↓ 2 callersFunction_atomic_write_json
Write ``payload`` as JSON to ``path`` atomically with 0600 perms. The parent directory is created 0700 and the file is written via a same-dir
agent/src/live/mandate/commit.py:133
↓ 2 callersMethod_attach
Idempotently subscribe *connection* to *chat_id*.
agent/src/channels/websocket.py:304
↓ 2 callersMethod_attach_text_field
Attach text inline or as a sidecar path.
agent/src/agent/trace.py:159
↓ 2 callersMethod_attempt_dir
(self, session_id: str, attempt_id: str)
agent/src/session/store.py:51
↓ 2 callersFunction_audit
Append one redacted live-action record for a sweep broker call. Args: broker: Broker key (stamped as ``server``). remote_tool: Br
agent/src/live/runtime/flatten.py:285
↓ 2 callersFunction_authorize_timeout_seconds
Resolve the OAuth authorize handshake deadline in seconds. Reads ``VIBE_LIVE_AUTHORIZE_TIMEOUT_SECONDS`` and falls back to :data:`_LIVE_AUTHO
agent/cli/_legacy.py:2797
↓ 2 callersMethod_auto_compact
Layer 3/4/5: structured LLM summary with token-budget tail protection. Upgrades over the original: - Token-budget tail: keeps ~20K
agent/src/agent/loop.py:1469
↓ 2 callersFunction_bare_code
Return the numeric stock code without its exchange suffix.
agent/src/tools/research_reports_tool.py:155
↓ 2 callersFunction_bare_code
Strip any exchange suffix to the bare numeric A-share code. Args: code: A symbol such as ``"600519.SH"``, ``"000001.SZ"`` or ``"600519"``
agent/src/tools/dragon_tiger_tool.py:56
↓ 2 callersFunction_bare_query
Strip any exchange suffix to the bare code used as a news search term.
agent/src/tools/stock_news_tool.py:85
↓ 2 callersFunction_bars
(n: int = 4)
agent/tests/test_ccxt_loader_bounded.py:28
↓ 2 callersMethod_base_metadata
Build common metadata for text and media handlers.
agent/src/channels/matrix.py:969
↓ 2 callersFunction_base_symbol
Strip the ``.NS`` / ``.BO`` suffix, leaving the broker's bare symbol.
agent/backtest/loaders/india_broker_loader.py:70
↓ 2 callersFunction_blank_to_none
Normalize blank MCP strings to None.
agent/mcp_server.py:142
↓ 2 callersMethod_body
(self, messages: list[dict[str, Any]], *, stream: bool)
agent/src/providers/openai_codex.py:374
↓ 2 callersFunction_breach
Construct a :class:`BreachEvent` with a computed ``overage``.
agent/src/live/enforcement.py:178
↓ 2 callersMethod_build_and_capture
(self, temperature: str)
agent/tests/test_llm.py:338
↓ 2 callersMethod_build_card_elements
Split content into div/markdown + table elements for Feishu card.
agent/src/channels/feishu.py:1087
↓ 2 callersFunction_build_config
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:542
↓ 2 callersFunction_build_data_source_settings_response
Build the public data source settings payload.
agent/src/api/settings_routes.py:220
↓ 2 callersFunction_build_llm_settings_response
Build the public settings payload from dotenv values.
agent/src/api/settings_routes.py:182
↓ 2 callersFunction_build_matrix_text_content
Constructs and returns a dictionary representing the matrix text content with optional HTML formatting and reference to an existing event for
agent/src/channels/matrix.py:150
↓ 2 callersFunction_build_rule_engines
Instantiate one sub-engine per market type detected in codes.
agent/backtest/engines/composite.py:25
↓ 2 callersFunction_build_run_payload
Reconcile + project a run for the MCP response. Used by ``run_swarm`` (polling + start_only). Returns a normal payload on success and a ``{"s
agent/mcp_server.py:1547
↓ 2 callersFunction_build_session_history
Load and filter recent message history for a session. Returns up to ``_HISTORY_RETAINED_TURNS`` user/assistant messages with non-empty conten
agent/cli/main.py:379
↓ 2 callersFunction_build_status_parts
Build plain-text status bar segments. Args: stats: Session statistics. Returns: List of status text segments.
agent/cli/_legacy.py:146
↓ 2 callersMethod_build_thread_relates_to
(metadata: dict[str, Any] | None)
agent/src/channels/matrix.py:811
↓ 2 callersMethod_call_action
( self, action: str, params: dict[str, Any], timeout: float = _ACTION_TIMEOUT,
agent/src/channels/napcat.py:483
↓ 2 callersFunction_cap_periods
Keep the most recent periods, each truncated to a safe field count. Args: periods: Period records as returned by the provider parser.
agent/src/tools/financial_statements_tool.py:140
↓ 2 callersMethod_capture
(self, src: Any, msg: Any)
agent/src/providers/llm.py:104
↓ 2 callersMethod_channel_allow_keys
Return channel IDs that can satisfy allow_channels for this channel.
agent/src/channels/discord.py:357
↓ 2 callersFunction_channel_class_from_module
Return the first BaseChannel subclass defined in *module*.
agent/src/channels/registry.py:98
↓ 2 callersMethod_check_min_bars
检查连续 Swing 点之间是否满足最少 K 线数。 Args: swings: Swing 点列表。 start: 起始索引。 count: 检查的点数。 Returns:
agent/src/skills/elliott-wave/example_signal_engine.py:150
↓ 2 callersMethod_claim_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:975
↓ 2 callersFunction_clamp_limit
Coerce a caller-supplied ``limit`` into the supported ``1.._MAX_LIMIT`` range. Args: raw: The raw ``limit`` value from the tool arguments
agent/src/tools/stock_news_tool.py:59
↓ 2 callersFunction_clean_date
Trim a date cell to its ``YYYY-MM-DD`` form, or ``None`` when absent/blank.
agent/src/tools/fred_macro_tool.py:237
↓ 2 callersFunction_clean_inline_markdown
(text: str)
agent/cli/ui/transcript.py:153
↓ 2 callersFunction_clean_text
Trim a string cell, or ``None`` when absent/blank/non-string.
agent/src/tools/research_reports_tool.py:305
↓ 2 callersFunction_client_config
Build a ``TigerOpenClientConfig`` from connector settings.
agent/src/trading/connectors/tiger/sdk.py:555
↓ 2 callersFunction_client_rows
Two ascending bars in eastmoney_client.fetch_kline output shape.
agent/tests/test_eastmoney_loader.py:21
↓ 2 callersFunction_clip_preserve
(text: str, limit: int)
agent/cli/ui/rail.py:221
↓ 2 callersFunction_code_to_symbol
(code: str)
agent/skills/ashare-mootdx/references/a_mootdx_fetcher.py:20
↓ 2 callersFunction_coerce_float
Coerce a raw Eastmoney numeric cell to ``float`` or ``None``. Args: value: Raw value from the payload (number, numeric string, or sentine
agent/src/tools/northbound_tool.py:48
↓ 2 callersFunction_coerce_limit
Clamp a requested row limit into the supported range. Args: value: Raw ``limit`` argument (may be missing, a string, or a number). R
agent/src/tools/iwencai_tool.py:53
↓ 2 callersFunction_collect_banner_stats
Return the four banner stat values, computing them at most once. The interactive launch path runs every probe synchronously (the user is alre
agent/cli/main.py:184
↓ 2 callersMethod_collect_tool_call_thought_signatures
(cls, tool_calls: Any)
agent/src/providers/llm.py:84
↓ 2 callersFunction_compact
Format a date as Eastmoney's ``YYYY-MM-DD`` filter literal.
agent/src/tools/lockup_expiry_tool.py:52
↓ 2 callersFunction_compute_behavior
Run all 4 behavior diagnostics. Args: df: Standardized DataFrame (datetime-sorted). Returns: Dict with disposition_effect /
agent/src/tools/trade_journal_tool.py:336
↓ 2 callersFunction_compute_rsi
Causal Wilder-EWM RSI. Mirrors the shape of ``compute_rsi`` in ``agent/src/skills/technical-basic/example_signal_engine.py:13`` — that mo
agent/src/shadow_account/extractor.py:149
↓ 2 callersFunction_config_response
(config: QVerisConfig)
agent/src/api/qveris_routes.py:89
↓ 2 callersFunction_configure_llm_preflight
Install a minimal OpenAI-compatible provider environment for preflight tests.
agent/tests/test_preflight.py:12
↓ 2 callersFunction_contract_to_dict
(contract: Any)
agent/src/trading/connectors/ibkr/local.py:571
↓ 2 callersMethod_convert_input
Re-attach Gemini thought signatures dropped by dict->message conversion. The AgentLoop replays history as OpenAI-format dicts, stamping t
agent/src/providers/llm.py:115
↓ 2 callersFunction_counter_path
(broker: str)
agent/src/live/daily_count.py:19
↓ 2 callersFunction_create_market_engine
Create the appropriate market engine based on data source and market type. Routing priority: 1. Detect market type from symbol patterns (fu
agent/backtest/runner.py:782
↓ 2 callersFunction_create_prompt_session
Create a prompt_toolkit PromptSession with history and live toolbar. Args: stats: Session statistics for the live bottom toolbar. Re
agent/cli/_legacy.py:204
↓ 2 callersMethod_criterion_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:960
↓ 2 callersFunction_data_client
(cfg: AlpacaConfig)
agent/src/trading/connectors/alpaca/sdk.py:530
↓ 2 callersFunction_data_feed
Map the configured ``feed`` string to the Alpaca ``DataFeed`` enum.
agent/src/trading/connectors/alpaca/sdk.py:537
↓ 2 callersMethod_database_path
(self)
agent/src/channels/whatsapp.py:297
↓ 2 callersFunction_datacenter_payload
Two daily rows in the Eastmoney RZRQ datacenter response shape.
agent/tests/test_margin_trading_tool.py:18
↓ 2 callersMethod_declining_equity
Equity that declines from 1M to 800K (-20%).
agent/tests/test_metrics.py:216
↓ 2 callersFunction_deepseek_adapter_mode
Return the configured DeepSeek adapter mode.
agent/src/providers/llm.py:373
↓ 2 callersFunction_default_output_dir
()
agent/src/tools/alpha_bench_tool.py:686
↓ 2 callersFunction_derived_dependencies
(derived: Any)
agent/backtest/loaders/fundamentals_loader.py:367
↓ 2 callersFunction_derived_field
(schema: Any, field: str)
agent/backtest/loaders/fundamentals_loader.py:356
↓ 2 callersMethod_detect
检测单个标的的谐波形态。 优先 pyharmonics,失败则回退内置检测器。 Args: df: OHLCV DataFrame。 Returns: 检测到的形态列表。
agent/src/skills/harmonic/example_signal_engine.py:364
↓ 2 callersFunction_detect_source
Infer legacy source name from symbol (back-compat for metrics/engine). Args: code: Ticker / symbol string. Returns: Source n
agent/backtest/runner.py:314
← previousnext →1,101–1,200 of 8,953, ranked by callers