Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
↓ 1 callers
Function
_stop_scheduler
Tear the runner's scheduler down, tolerating a sync or async ``stop``. ``Scheduler.stop`` is a coroutine function, but the ``_Scheduler`` protoco
agent/src/api/live_routes.py:872
↓ 1 callers
Function
_strategy_error
(request: PaperTradeStepRequest, market_data: data.MarketDataResult, message: str)
agent/src/tools/paper_trade/strategy_exec.py:497
↓ 1 callers
Function
_stream_once
Run one heartbeat-wrapped streaming LLM call. Recomputes the remaining time budget at call time so the single retry a
agent/src/swarm/worker.py:896
↓ 1 callers
Function
_stream_response
Build a minimal OpenAI-compatible SSE response.
agent/tests/test_provider_header_isolation.py:17
↓ 1 callers
Function
_stream_retry_backoff_s
Return the capped exponential delay for the one-based failure streak. Doubles per consecutive retryable stream failure (1.0s, 2.0s, 4.0s, ...)
agent/src/agent/tuning.py:63
↓ 1 callers
Function
_stream_retry_delay_s
Resolve the delay before the single stream retry, robust to garbage. Returns: Seconds to sleep between a failed ``stream_chat`` attempt a
agent/src/swarm/worker.py:66
↓ 1 callers
Function
_stream_retry_delay_s
()
agent/src/agent/tuning.py:47
↓ 1 callers
Function
_stream_retry_max_delay_s
Resolve the cap for the escalating stream-retry delay, robust to garbage. Returns: Upper bound in seconds for both the escalated exponent
agent/src/swarm/worker.py:79
↓ 1 callers
Method
_stream_update_text_sync
Stream-update the markdown element on a CardKit card (typewriter effect).
agent/src/channels/feishu.py:1791
↓ 1 callers
Method
_stream_with_usage_fallback
(self, *args: Any, **kwargs: Any)
agent/src/providers/llm.py:655
↓ 1 callers
Function
_strict_result
()
agent/tests/test_alpha_bench_horizon.py:249
↓ 1 callers
Function
_strict_result
()
agent/tests/test_alpha_bench_strict_cli.py:29
↓ 1 callers
Function
_string_result_output_schema
Return the output schema fastmcp derives for a ``-> str`` tool. Derived from a probe function instead of hardcoded so the mirrored tools keep
agent/mcp_server.py:2765
↓ 1 callers
Method
_strip_bot_mention
Remove bot mentions from message text. Signal mentions are embedded in the text, so we need to remove them based on the ment
agent/src/channels/signal.py:1283
↓ 1 callers
Function
_strip_env_value
Remove basic dotenv quotes and inline comments.
agent/src/api/helpers.py:136
↓ 1 callers
Function
_strip_jsonp
Decode a possibly JSONP-wrapped body to a Python object. Delegates to :func:`backtest.loaders._http.decode_jsonp_body`, the single implementa
agent/backtest/loaders/eastmoney_client.py:177
↓ 1 callers
Method
_strip_leading_bot_mention
Remove a required leading bot mention before slash command routing.
agent/src/channels/feishu.py:959
↓ 1 callers
Function
_strip_md
Strip markdown inline formatting from text.
agent/src/channels/telegram.py:145
↓ 1 callers
Function
_strip_md_block
Strip block-level and inline markdown for readable plain-text preview. Used during streaming mid-edits so users see clean text instead of raw
agent/src/channels/telegram.py:154
↓ 1 callers
Method
_strip_possible_bot_mention
Remove simple Teams mention markup from message text.
agent/src/channels/msteams.py:428
↓ 1 callers
Function
_strip_prompt_wrappers
Return the prompt the user typed, without the composer's envelopes.
agent/src/api/sessions_routes.py:56
↓ 1 callers
Function
_strip_release_markers
Remove redaction markers and ※ note lines the model wrote itself. Those are the gate's own statements about what it cut; a model-written copy
agent/src/agent/grounding/release.py:153
↓ 1 callers
Method
_strip_tool_call_extra_content
(outbound: Any)
agent/src/providers/llm.py:540
↓ 1 callers
Function
_strip_url_userinfo
Return *text* with username/password stripped from every embedded URL.
agent/src/channels/manager.py:58
↓ 1 callers
Function
_structured_metrics
Keep the non-scalar metrics that ``metrics`` cannot hold. ``metrics`` is a deliberately scalar-only, stable surface, so a dict- or list-shape
agent/backtest/run_card.py:294
↓ 1 callers
Function
_stub_a_share_response
()
agent/tests/test_akshare_loader.py:153
↓ 1 callers
Function
_stub_agent
Replace _run_with_agent with a stub returning ``result``. Args: service: Service under test. monkeypatch: pytest monkeypatch fixt
agent/tests/test_session_service_lifecycle.py:34
↓ 1 callers
Function
_stub_etf_response
()
agent/tests/test_akshare_loader.py:129
↓ 1 callers
Function
_stub_forex_response
()
agent/tests/test_akshare_loader.py:140
↓ 1 callers
Function
_stub_futures_dated_response
Shape of ``futures_zh_daily_sina`` as the live endpoint returns it. English column names, plus ``hold``/``settle`` which the OHLCV schema dro
agent/tests/test_akshare_loader.py:164
↓ 1 callers
Function
_stub_futures_main_response
Shape of ``futures_main_sina``: Chinese names carrying a ``价`` suffix. ``开盘价`` is NOT the ``开盘`` spelling ``_normalize`` learned from the equ
agent/tests/test_akshare_loader.py:184
↓ 1 callers
Function
_stub_llm_factory
(responses: list[LLMResponse])
agent/tests/test_swarm_m5_trust_model.py:304
↓ 1 callers
Function
_stub_telegram_deps
Install minimal stubs so telegram.py imports without python-telegram-bot.
agent/tests/test_telegram_stream_end_no_preview.py:12
↓ 1 callers
Function
_stub_telegram_deps
Install minimal stubs so telegram.py imports without python-telegram-bot.
agent/tests/test_telegram_split_fence_hang.py:14
↓ 1 callers
Function
_stub_telegram_deps
Install minimal stubs so telegram.py imports without python-telegram-bot.
agent/tests/test_telegram_table_edge_columns.py:9
↓ 1 callers
Function
_styled_line
Build one fixed-width line with per-cell styling.
agent/cli/_legacy.py:498
↓ 1 callers
Function
_submissions_with_n_filings
(n: int)
agent/tests/test_mcp_sec_financial_offset_paging.py:44
↓ 1 callers
Function
_submit_via_tap
Place the order through the TAP proxy instead of the Alpaca SDK. The agent process holds no Alpaca secret on this path: the order is POSTed to
agent/src/trading/connectors/alpaca/sdk.py:622
↓ 1 callers
Function
_subscribe
()
agent/tests/test_eventbus_clear_subscribers.py:96
↓ 1 callers
Method
_subscribe_all
(self)
agent/src/channels/mochat.py:477
↓ 1 callers
Function
_success
Build the success envelope from a quote-chain ``result[0]`` mapping.
agent/src/tools/options_chain_tool.py:155
↓ 1 callers
Function
_summarize_args
Produce a one-line args summary. Rules: * ``args is None`` or empty → empty string * ``query`` field present → ``"<value>"`` (quo
agent/cli/components/tool_event.py:72
↓ 1 callers
Function
_summarize_artifacts
Turn raw backtest output into (per_market, combined, equity_curves). Gracefully degrades when artifacts are missing (e.g. data fetch failed):
agent/src/shadow_account/backtester.py:418
↓ 1 callers
Function
_summary_units
Scale a cover-page total to USD, checking the prior when it looks wrong. The filing-date prior alone misreads the roughly 5% of managers who stil
agent/src/tools/institutional_holdings_tool.py:976
↓ 1 callers
Function
_summary_value_usd
Convert a cover page's reported total to USD using the filing-date prior. A cover page carries no per-share figures, so the implied-price check t
agent/src/tools/institutional_holdings_tool.py:962
↓ 1 callers
Method
_supersede_shortlists
Retire ambiguous shortlists that this lock has just answered. A screening query resolves to many candidates by design. Once one of th
agent/src/agent/grounding/identity.py:892
↓ 1 callers
Function
_supports_connection_test
Return whether the adapter class declares a standalone connection test.
agent/src/api/channels_config_routes.py:231
↓ 1 callers
Function
_supports_top_level_reasoning_effort
Report whether a provider accepts a top-level ``reasoning_effort`` field. Reads the ``top_level_reasoning_effort`` capability flag, which is a
agent/src/providers/llm.py:1379
↓ 1 callers
Method
_sweep_expired_locked
Drop buckets whose entries have all expired. Caller holds the lock.
agent/src/api/system_routes.py:79
↓ 1 callers
Method
_sweep_quietly
Run a sweep whose failure must not escape into the event path.
agent/src/scheduled_research/executor.py:558
↓ 1 callers
Method
_sweep_same_values
Cut every unchecked restatement of a figure that was already cut. After "回撤 37%" is cut, "回撤 37 个百分点" still carries an unchecked bare
agent/src/agent/grounding/release.py:702
↓ 1 callers
Function
_symbol_names
Extract symbol name strings from a /symbols body (array or {symbols|data}).
agent/backtest/loaders/tickerall_loader.py:192
↓ 1 callers
Function
_symbol_required_errors
ccxt exception classes that mean "this call needs a symbol" (degrade-only). Auth/network/rate-limit errors are deliberately excluded so they prop
agent/src/trading/connectors/binance/sdk.py:732
↓ 1 callers
Function
_symbol_to_token
Resolve a tradingsymbol+exchange to an instrument token. The instrument list is fetched once per exchange and cached for the process. A cache
agent/src/trading/connectors/zerodha/sdk.py:383
↓ 1 callers
Method
_sync_loop
(self)
agent/src/channels/matrix.py:732
↓ 1 callers
Method
_sync_run_tasks_snapshot
Mirror live ``tasks/*.json`` back into ``run.json`` at a safe point. Called at layer boundaries only — not per-task — to keep run.json a
agent/src/swarm/runtime.py:768
↓ 1 callers
Function
_sync_runtime_env
Apply saved LLM settings to the running API process.
agent/src/api/settings_routes.py:703
↓ 1 callers
Function
_synth_frame
()
agent/tests/test_paper_trade_tool.py:356
↓ 1 callers
Function
_synthesize_fiscal_q4
Derive fiscal Q4 rows, which issuers report only inside the 10-K. Flow concepts are never filed as a standalone Q4 duration frame, so without
agent/src/tools/financial_statements_tool.py:575
↓ 1 callers
Method
_synthesize_profiles
Build 2-4 numbered profiles, every limit clamped to ``ceilings``. Args: ceilings: The account hard-ceiling snapshot.
agent/src/tools/propose_mandate_tool.py:172
↓ 1 callers
Function
_table_cells
Split one Markdown row into ``(text, start, end)`` cells.
agent/src/agent/grounding/figures.py:883
↓ 1 callers
Function
_table_weights
Align a caller-supplied ``time x factor`` weight table. Rows may be supplied only at rebalance dates; they are held forward. A missing weight
agent/src/quantlib/combination.py:275
↓ 1 callers
Function
_tail_risk
(port: pd.Series, levels: Sequence[float])
agent/backtest/risk_xray.py:281
↓ 1 callers
Method
_tail_risk_field_refs
Exact ``call_id::field`` (or ``run_dir::field``) refs for tail-risk evidence.
agent/src/agent/grounding/policies.py:1155
↓ 1 callers
Method
_tail_risk_ref_required
Tail-risk identities this figure could be quoting, when there are several. #1425's remaining half, decided as a policy rather than patched: a
agent/src/agent/grounding/policies.py:1389
↓ 1 callers
Function
_target_index
( start: str, end: str, index: pd.DatetimeIndex | None, )
agent/backtest/loaders/fundamentals_loader.py:325
↓ 1 callers
Function
_target_period
Resolve the quarter to read, defaulting to the newest one indexed. Args: filings: Filings from :func:`_list_13f_filings`. period_
agent/src/tools/institutional_holdings_tool.py:634
↓ 1 callers
Function
_task
()
agent/tests/test_swarm_worker_retry_backoff.py:35
↓ 1 callers
Function
_task_definition_changed
Return whether a task's semantic definition differs between runs. Compares both the fields that define *what the task is* — the agent that ex
agent/src/swarm/runtime.py:297
↓ 1 callers
Function
_tasks_named
Return the not-yet-finished tasks with ``name``, excluding this one.
agent/tests/scheduling/test_kernel_sleep_hint.py:28
↓ 1 callers
Function
_teardown_sandbox
()
agent/tests/conftest.py:139
↓ 1 callers
Function
_template_variables
Return Python format fields referenced by a prompt template.
agent/src/swarm/presets.py:159
↓ 1 callers
Function
_term
(n)
agent/src/factors/zoo/gtja191/alpha_159.py:76
↓ 1 callers
Function
_terminal_width
Best-effort terminal width detection (falls back gracefully).
agent/cli/components/hint_bar.py:18
↓ 1 callers
Function
_terminate_all
()
agent/cli/_legacy.py:6576
↓ 1 callers
Function
_terminate_process_tree
Terminate a timed-out process tree, drain its pipes, and reap its root.
agent/src/tools/background_tools.py:105
↓ 1 callers
Function
_text
(path)
agent/tests/test_pdf_report_arabic.py:18
↓ 1 callers
Function
_theme_breakdown_strict
Aggregate strict-category counts per theme tag. Mirrors ``bench_runner.theme_breakdown`` but with the strict ``confirmed_alive`` / ``train_on
agent/src/factors/bench_runner_strict.py:203
↓ 1 callers
Function
_theme_survival_rows
Build the inner <tr> rows for the theme-survival table.
agent/scripts/w4a_patch_blog.py:75
↓ 1 callers
Method
_thread_metadata
(self, event: RoomMessage)
agent/src/channels/matrix.py:810
↓ 1 callers
Function
_three_bar_frame
()
agent/tests/test_swarm_grounding.py:137
↓ 1 callers
Function
_three_statement_drivers
()
agent/tests/quantlib/valuation/test_artifact.py:230
↓ 1 callers
Function
_three_statement_gaps
Collect three-statement notes: non-convergence and revolver plug activity. A successfully-returned :class:`ThreeStatementProjection` cannot actua
agent/src/quantlib/valuation/artifact.py:647
↓ 1 callers
Function
_three_statement_headline
Return the three-statement conclusion bullet lines: the final projected period.
agent/src/quantlib/valuation/artifact.py:1525
↓ 1 callers
Function
_three_statement_opening
()
agent/tests/quantlib/valuation/test_artifact.py:218
↓ 1 callers
Function
_ths_datetime
Normalize 成交时间; Excel serial floats become ISO datetime.
agent/src/tools/trade_journal_parsers.py:380
↓ 1 callers
Function
_tick_has_data
Return True if the ticker has received at least one real price field. ib_async tickers start with None and populate to either a float or ``fl
agent/src/trading/connectors/ibkr/local.py:335
↓ 1 callers
Function
_tick_mid
Mid price from the current tick, ``None`` when unpriceable.
agent/src/trading/connectors/mt5/_client.py:372
↓ 1 callers
Function
_ticker
(events: list[float], start: float)
agent/tests/test_session_service_mcp.py:86
↓ 1 callers
Function
_ticker_map
Return the process-wide ticker->CIK map, fetching once and memoizing. Returns: Mapping of upper-cased ticker to zero-padded 10-digit CIK.
agent/backtest/loaders/sec_edgar_client.py:150
↓ 1 callers
Function
_timeframe
Map a canonical period token to an Alpaca ``TimeFrame``. Case-sensitive: ``1m`` is one minute, ``1M`` is one month.
agent/src/trading/connectors/alpaca/sdk.py:797
↓ 1 callers
Function
_timeout_output
Normalize ``TimeoutExpired`` output for persistence and JSON.
agent/src/tools/backtest_tool.py:38
↓ 1 callers
Method
_title_detail
(self, step: RailStep)
agent/cli/ui/rail.py:575
↓ 1 callers
Function
_to_baostock_code
Map a panel symbol to baostock's ``sh.``/``sz.`` code, if A-share.
agent/backtest/loaders/valuation_loader.py:127
↓ 1 callers
Function
_to_bool
Coerce a cover-page flag to ``bool``, or ``None`` when absent/unreadable. ``None`` is a third state, not a false: a cover page that never wrote
agent/src/tools/institutional_holdings_tool.py:1651
↓ 1 callers
Function
_to_camel
Convert snake_case names to camelCase aliases. Args: name: Field name in snake_case form. Returns: The camelCase alias used
agent/src/config/schema.py:286
↓ 1 callers
Function
_to_display_text
Render structured values into compact human-readable text. Args: value: Structured response value. Returns: Human-readable s
agent/src/tools/mcp.py:1502
↓ 1 callers
Function
_to_float
Coerce a Finnhub numeric (or ``None``) to ``float``; ``None`` on failure.
agent/backtest/loaders/finnhub_loader.py:134
↓ 1 callers
Function
_to_float
Best-effort float coercion; ``None`` for missing/garbage values.
agent/src/tools/lockup_expiry_tool.py:121
↓ 1 callers
Function
_to_float
Best-effort float coercion that maps blanks/None to ``None``. Args: value: Raw report cell value. Returns: The float value,
agent/src/tools/block_trades_tool.py:113
← previous
next →
7,501–7,600 of 26,887, ranked by callers