MCPcopy Create free account

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

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 2 callersFunction_setup_bench
(monkeypatch: pytest.MonkeyPatch, captured: dict[str, Any])
agent/tests/test_alpha_bench_horizon.py:42
↓ 2 callersFunction_setup_strict
(monkeypatch: pytest.MonkeyPatch, captured: dict[str, Any])
agent/tests/test_alpha_bench_horizon.py:122
↓ 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:174
↓ 2 callersFunction_shadow_pnl_from_metrics
Absolute shadow PnL in the pool's currency, or None when unknown. The runner only emits ``final_value`` and ``total_return``; the explicit ke
agent/src/shadow_account/backtester.py:545
↓ 2 callersFunction_shanghai_shortlist
One Shanghai listing as the two sources actually publish it.
agent/tests/test_agent_grounding.py:1997
↓ 2 callersFunction_shape_record
Project one Eastmoney report row into our compact record shape. Args: raw: One element of ``result.data``. Returns: A normal
agent/src/tools/lockup_expiry_tool.py:131
↓ 2 callersFunction_short_url
(url: str, limit: int = 64)
agent/cli/ui/rail.py:202
↓ 2 callersMethod_should_apply_post_action
(self)
agent/src/channels/email.py:764
↓ 2 callersMethod_should_process_message
Apply sender and room policy checks.
agent/src/channels/matrix.py:777
↓ 2 callersFunction_show_settings
Show current runtime settings.
agent/cli/_legacy.py:1894
↓ 2 callersMethod_signal
(ts: pd.Timestamp, action: str, code: str, legs: List[Leg])
agent/src/skills/options-strategy/example_signal_engine.py:94
↓ 2 callersFunction_signal_posix_process_group
(process: subprocess.Popen[str], sig: int)
agent/src/tools/background_tools.py:69
↓ 2 callersFunction_signals
Run the generated engine over one symbol and return its signal series.
agent/tests/test_shadow_codegen_condition_bounds.py:87
↓ 2 callersFunction_signed
(value: float, digits: int = 2)
agent/src/shadow_account/pdf_fallback.py:63
↓ 2 callersMethod_signed_parent
(self)
agent/tests/test_strategy_store_adaptation.py:222
↓ 2 callersFunction_skill_relative_matches
Return the bundled skills that carry ``file_path`` inside their directory. Args: file_path: Skill-relative path as written in a SKILL.md
agent/src/tools/read_file_tool.py:47
↓ 2 callersMethod_sleep_hint
Return the adaptive inter-tick sleep for the kernel loop. Args: now_ms: The kernel's freshly read reference time in epoch ms.
agent/src/live/runtime/scheduler.py:301
↓ 2 callersMethod_sleep_or_wake
(self, sleep_ms: int)
agent/src/scheduling/kernel.py:291
↓ 2 callersMethod_smtp_send
(self, msg: EmailMessage)
agent/src/channels/email.py:452
↓ 2 callersMethod_socket_call
(self, event_name: str, payload: dict[str, Any])
agent/src/channels/mochat.py:522
↓ 2 callersFunction_solve_irr
Bisect for the annual rate that zeroes the net present value. Bisection is used rather than Newton because it cannot diverge and needs no gue
agent/src/quantlib/performance.py:766
↓ 2 callersMethod_split_md_row
Split a markdown table row, keeping empty leading/trailing cells. ``str.strip("|")`` would also drop empty edge cells (``||Name|`` → ``Name``
agent/src/channels/slack.py:756
↓ 2 callersFunction_split_row
(line: str)
agent/cli/ui/transcript.py:148
↓ 2 callersFunction_spread_legs
Return a deterministic debit-spread fixture.
agent/tests/test_options_payoff_tool.py:12
↓ 2 callersFunction_stage_callback
Record pipeline phase without treating data loading as factor progress.
agent/src/api/alpha_routes.py:255
↓ 2 callersFunction_stall_timeout_seconds
Return the run-stall watchdog timeout in seconds (0/negative disables). A run that makes no forward progress (no LLM completion, no tool result)
agent/src/agent/tuning.py:117
↓ 2 callersMethod_start_channel
Start a channel and log any exceptions.
agent/src/channels/manager.py:246
↓ 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:1574
↓ 2 callersMethod_start_typing_keepalive
Start periodic typing refresh (spec-recommended keepalive).
agent/src/channels/matrix.py:709
↓ 2 callersFunction_state_path
Return the durable runtime-state path for ``broker``.
agent/src/live/runtime/reconcile.py:532
↓ 2 callersFunction_state_shape
(end_state)
agent/tests/test_paper_trade_multiday.py:82
↓ 2 callersMethod_stop_fallback_workers
(self)
agent/src/channels/mochat.py:629
↓ 2 callersFunction_store
(tmp_path: Path)
agent/tests/test_scheduled_delivery_clobber.py:24
↓ 2 callersMethod_store_channel_section
Keep the manager's config snapshot in step with the reloaded section.
agent/src/channels/manager.py:415
↓ 2 callersFunction_store_path
()
agent/src/channels/pairing/store.py:32
↓ 2 callersMethod_stream
Route Responses streams through the mapping-compatible adapter.
agent/src/providers/llm.py:632
↓ 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:91
↓ 2 callersFunction_stream_retry_max_delay_s
()
agent/src/agent/tuning.py:55
↓ 2 callersFunction_strip_html
Flatten an HTML fragment to its visible text.
agent/src/tools/etf_holdings_tool.py:851
↓ 2 callersFunction_strip_markers
Remove snippet() highlight/truncation markers to see the underlying text.
agent/src/memory/search_index.py:69
↓ 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:1126
↓ 2 callersFunction_strip_sign
The operand under any unary ``+`` or ``-``.
agent/src/agent/grounding/policies.py:220
↓ 2 callersMethod_subscribe_panels
(self, panel_ids: list[str])
agent/src/channels/mochat.py:513
↓ 2 callersMethod_subscribe_sessions
(self, session_ids: list[str])
agent/src/channels/mochat.py:484
↓ 2 callersFunction_suffix_form
Rewrite a market-prefixed code (``HK.00700``) to suffix form (``00700.HK``). Args: symbol: Upper-cased connector symbol. Returns:
agent/src/portfolio/service.py:61
↓ 2 callersFunction_sweep_expired_sse_tickets_locked
Drop expired tickets. Caller must hold ``_sse_tickets_lock``.
agent/src/api/security.py:311
↓ 2 callersFunction_sweep_tool
Return the connector-specific sweep tool name for audit records.
agent/src/live/runtime/flatten.py:483
↓ 2 callersFunction_symbol
( name: str, *, base: str, profit: str, contract_size: float = 100_000.0, volume_min:
agent/tests/test_mt5_connector.py:34
↓ 2 callersMethod_symbol_price
Return a live USD price for one symbol, fail-closed. Prefers the broker's mapped READ quote tool so the price is the broker's own; fa
agent/src/live/order_guard.py:305
↓ 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 callersFunction_system_cjk_candidates
Enumerate locally-installed CJK fonts we can reuse without downloading.
agent/src/shadow_account/fonts.py:34
↓ 2 callersFunction_table_shapes
(table: str)
agent/tests/test_grounding_unit_and_scanner_gaps.py:176
↓ 2 callersFunction_tail_index
Position of the VaR order statistic in an ascending-sorted sample. Args: n: Number of observations, at least 1. confidence: Confi
agent/src/quantlib/risk.py:126
↓ 2 callersMethod_tail_risk_sources
``(identity, value)`` for every tail-risk value among these sources. Identity is read off the field name (:func:`tail_risk_identity`), so
agent/src/agent/grounding/policies.py:1133
↓ 2 callersFunction_targets_opencode
Report whether requests go to the OpenCode relay. True for the ``opencode*`` provider names and for any provider whose base URL points at ``o
agent/src/providers/llm.py:77
↓ 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:37
↓ 2 callersFunction_taskkill_windows_process_tree
Ask Windows to stop the process and every descendant.
agent/src/tools/background_tools.py:82
↓ 2 callersFunction_text_content
Normalize provider text or content blocks to plain assistant text.
agent/src/providers/chat.py:66
↓ 2 callersFunction_text_delta_event
()
agent/tests/test_responses_stream_compat.py:60
↓ 2 callersFunction_text_of
Return the stripped text of ``parent``'s first child named ``name``.
agent/src/tools/etf_holdings_tool.py:667
↓ 2 callersMethod_thread_reply_target
Return the message_id that should receive a Reply API response.
agent/src/channels/feishu.py:1679
↓ 2 callersFunction_ticker
(value: Any)
agent/src/tools/br_market_data_tool.py:36
↓ 2 callersFunction_timestamp
(value: pd.Timestamp, name: str)
agent/backtest/perpetual_risk.py:35
↓ 2 callersFunction_to_float
Coerce a Yahoo numeric (or ``None``) to ``float``, ``None`` on failure.
agent/backtest/loaders/yahoo_client.py:292
↓ 2 callersFunction_to_number
Coerce a text field to ``float``, or ``None`` when absent/non-numeric.
agent/src/tools/institutional_holdings_tool.py:1641
↓ 2 callersFunction_to_number
Coerce a cell to ``float``, or ``None`` when absent/non-numeric.
agent/src/tools/research_reports_tool.py:388
↓ 2 callersFunction_to_query_base
``EUR/USD`` / ``EURUSD.FX`` → ``EURUSD`` (upper, separators stripped).
agent/backtest/loaders/mt5_loader.py:126
↓ 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``, ``BRK.B.US``, or `
agent/backtest/loaders/tiingo_loader.py:72
↓ 2 callersFunction_to_usd
(value: Decimal, currency: str, rates: Rates)
agent/src/portfolio/normalization.py:244
↓ 2 callersFunction_today
Return today's date (indirection kept for test monkeypatching).
agent/src/tools/lockup_expiry_tool.py:47
↓ 2 callersFunction_token_cache_path
(cfg: KISConfig)
agent/src/trading/connectors/kis/sdk.py:681
↓ 2 callersFunction_token_expiry_ms
Return the access token's real JWT expiry, with stored expiry fallback.
agent/src/providers/openai_codex.py:183
↓ 2 callersFunction_token_threshold
()
agent/src/agent/tuning.py:23
↓ 2 callersFunction_tool_entry
The results[0] entry shape the loader's _call_tool returns.
agent/tests/test_fund_nav_tool.py:29
↓ 2 callersMethod_tool_field_ref_candidates
Exact call refs for a mistaken tool_name::field declaration. With ``figure``, refs whose observed value matches it come first, most r
agent/src/agent/grounding/policies.py:1180
↓ 2 callersFunction_tool_list_line
Return the line enumerating every MCP tool. Args: text: Full README text. Returns: The line carrying the most backticked ide
agent/tests/test_readme_counts.py:211
↓ 2 callersMethod_tool_msgs
(self, payload_len: int)
agent/tests/test_loop_helpers.py:864
↓ 2 callersFunction_tool_response
Build a tool-call response that keeps the worker loop iterating.
agent/tests/test_stream_retry_escalation.py:114
↓ 2 callersFunction_tool_response
(idx: int)
agent/tests/test_swarm_worker_content_filter.py:188
↓ 2 callersFunction_tool_title
(tool: str, args: Any)
agent/cli/ui/rail.py:76
↓ 2 callersFunction_trade_to_dict
(trade: Any)
agent/src/trading/connectors/ibkr/local.py:738
↓ 2 callersFunction_traded
(frame: pd.DataFrame)
agent/backtest/engines/argentina_equity.py:251
↓ 2 callersFunction_trades
(pnls: list[float])
agent/tests/test_validation_initial_capital.py:10
↓ 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:84
↓ 2 callersFunction_transition
( action: PendingAction, evidence: Mapping[str, object], phase: Literal["resolved_fill_pending_aud
agent/src/live/pending_action.py:312
↓ 2 callersFunction_truncate_preview
Stringify and truncate an event preview payload.
agent/src/swarm/worker.py:1352
↓ 2 callersMethod_try_send_rich
Attempt sendRichMessage (Bot API 10.1). Returns True on success.
agent/src/channels/telegram.py:695
↓ 2 callersFunction_turn
(role, content, run_id=None)
agent/tests/test_session_service_lifecycle.py:276
↓ 2 callersFunction_turn_one
()
agent/tests/test_openai_codex_replay.py:76
↓ 2 callersFunction_two_symbol_ledger
Prices for two symbols, an indicator for one of them only.
agent/tests/test_grounding_release.py:1187
↓ 2 callersFunction_udf_payload
( times: List[int], o: List[Any], h: List[Any], l: List[Any], c: List[Any], v: List[An
agent/tests/test_wallex_loader.py:20
↓ 2 callersFunction_unapplied_tier_warning
Build the warning shown when TWS served a read on an unlabelled tier.
agent/src/trading/connectors/ibkr/local.py:384
↓ 2 callersFunction_unknown_keys
Return patch keys that are neither adapter fields nor manager overrides. Shared by PUT and POST /test so both reject an unrecognized key with the
agent/src/api/channels_config_routes.py:154
↓ 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:979
↓ 2 callersFunction_unsupported_bound
Build the refusal for a condition the template cannot express exactly.
agent/src/shadow_account/codegen.py:85
↓ 2 callersFunction_unsupported_market_data
(config: Trading212Config, capability: str, *, symbol: str)
agent/src/trading/connectors/trading212/sdk.py:471
↓ 2 callersFunction_untyped_amendment_cover
A cover page with no amendment markers at all (the AEGON shape).
agent/tests/test_institutional_holdings_tool.py:124
← previousnext →4,501–4,600 of 26,887, ranked by callers