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
_exception_chain_from_payload
Return exceptions publicly reachable from a returned payload.
agent/tests/test_sdk_connectors.py:446
↓ 1 callers
Function
_exchange_cross
(**changes: object)
agent/tests/test_binance_tolerance_calibration.py:47
↓ 1 callers
Function
_executable_body
Return the function body with the docstring removed.
agent/tests/test_paper_capped_connectors_refuse_live.py:84
↓ 1 callers
Function
_execute_and_audit_live_action
Execute one approved action and atomically account for its success.
agent/src/live/sdk_order_gate.py:364
↓ 1 callers
Function
_execute_days
( request: PaperTradeStepRequest, market_data: data.MarketDataResult, days: tuple[str, ...], p
agent/src/tools/paper_trade/strategy_exec.py:422
↓ 1 callers
Method
_execute_gc_action
Execute a GC action (archive or delete) on an entry.
agent/src/memory/lifecycle.py:282
↓ 1 callers
Method
_execute_parallel
Execute readonly tools in parallel using threads. Args: tool_calls: Readonly tool calls to execute in parallel. conte
agent/src/agent/tool_lifecycle.py:442
↓ 1 callers
Method
_execute_partial_reduction
Commit a same-direction closing delta.
agent/backtest/engines/base.py:2062
↓ 1 callers
Method
_execute_position_increase
Commit a same-direction opening delta.
agent/backtest/engines/base.py:2024
↓ 1 callers
Function
_execute_step
The step pipeline: ``(wire document text, fetched market data or None)``.
agent/src/tools/paper_trade/tool.py:229
↓ 1 callers
Function
_execution_status
(value: Any)
agent/evals/harness/assertions.py:776
↓ 1 callers
Function
_execution_to_dict
(item: Any)
agent/src/trading/connectors/ibkr/local.py:768
↓ 1 callers
Function
_execution_to_dict
(item: Any)
agent/src/trading/connectors/longbridge/sdk.py:906
↓ 1 callers
Function
_execution_verdict
(case: HarnessCase, bundle: ArtifactBundle)
agent/evals/harness/assertions.py:138
↓ 1 callers
Function
_executions
(ib: Any)
agent/src/trading/connectors/ibkr/local.py:683
↓ 1 callers
Function
_exercise
()
agent/tests/test_session_service_mcp.py:90
↓ 1 callers
Function
_existing_file
Absolute-style path string when the file exists, else ``None``.
agent/src/tools/backtest_summary.py:183
↓ 1 callers
Function
_expand_artifacts_spec
Expand artifacts_spec into a name -> metadata dict. Args: spec: Raw artifact spec. Returns: Expanded artifact metadata mappi
agent/src/core/runner.py:434
↓ 1 callers
Function
_expand_cjk_buffer
Expand a sequence of CJK chars into unigrams + bigrams. Example: ['\u8bb0', '\u5fc6', '\u7cfb', '\u7edf'] -> '\u8bb0 \u5fc6 \u7cfb \u7edf \u8bb0\
agent/src/memory/search_index.py:44
↓ 1 callers
Function
_expected_output
(panel: dict[str, pd.DataFrame], alpha_id: str)
agent/tests/factors/test_fundamental_ind_neutral_samples.py:81
↓ 1 callers
Function
_expected_outputs
Expected output frames per alpha, derived from the panel by numpy math.
agent/tests/factors/test_fundamental_valuation_samples.py:84
↓ 1 callers
Function
_expected_outputs
Expected output frames per alpha, derived from the panel by numpy math.
agent/tests/factors/test_fundamental_expansion_samples.py:99
↓ 1 callers
Method
_expected_path
(self)
agent/src/channels/websocket.py:378
↓ 1 callers
Method
_expire_elapsed_jobs
Persist jobs whose configured end boundary has elapsed.
agent/src/scheduled_research/executor.py:316
↓ 1 callers
Function
_expired_mandate
()
agent/tests/test_sdk_order_gate.py:834
↓ 1 callers
Function
_explicit_float
Return ``profile[key]`` as a float, or ``None`` if absent or null. ``_resolve_profile`` lets a commit-time adjustment narrow a numeric limit
agent/src/live/mandate/commit.py:545
↓ 1 callers
Function
_explicit_sign
``1`` or ``-1`` when a figure was written with a sign ("+36.8%"), else ``0``.
agent/src/agent/grounding/policies.py:165
↓ 1 callers
Function
_exposure
Report actual gross/net exposure and the long and short sides.
agent/backtest/risk_xray.py:216
↓ 1 callers
Function
_ext_for_type
(media_type: str)
agent/src/channels/weixin.py:1583
↓ 1 callers
Method
_extract_attachments
Extract and save email attachments to the media directory. Returns list of saved file paths.
agent/src/channels/email.py:1156
↓ 1 callers
Function
_extract_close_series
Extract the close-price series from a loader payload.
agent/src/tools/technical_indicator_tool.py:112
↓ 1 callers
Function
_extract_commodity
Extract the commodity named by the prompt. Args: prompt: User's natural language prompt. Returns: Commodity label for commod
agent/src/tools/swarm_variables.py:265
↓ 1 callers
Function
_extract_concept_series
Extract a sparse ``period_end``/``filed``/``value`` series. Args: facts: SEC companyfacts payload. concepts: Ordered us-gaap conc
agent/backtest/loaders/fundamentals_loader.py:48
↓ 1 callers
Function
_extract_crypto_target
Extract the crypto assets named by the prompt, in prompt order. Args: prompt: User's natural language prompt. Returns: Comma
agent/src/tools/swarm_variables.py:372
↓ 1 callers
Function
_extract_data_url_mime
Return the MIME type of a ``data:<mime>;base64,...`` URL, else ``None``.
agent/src/channels/websocket.py:244
↓ 1 callers
Function
_extract_element_content
Extract content from a single card element.
agent/src/channels/feishu.py:204
↓ 1 callers
Function
_extract_event_type
Extract the event type named by the prompt. Args: prompt: User's natural language prompt. Returns: Event type label for even
agent/src/tools/swarm_variables.py:340
↓ 1 callers
Function
_extract_event_type
从 thead 文本中提取事件类型,跳过结构性字面量。
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:334
↓ 1 callers
Function
_extract_factor_type
Extract the factor type named by the prompt. Args: prompt: User's natural language prompt. Returns: Factor type label for fa
agent/src/tools/swarm_variables.py:324
↓ 1 callers
Function
_extract_frame
Normalise a loader fetch result to a single DataFrame.
agent/backtest/benchmark.py:202
↓ 1 callers
Function
_extract_fund_type
Extract the fund type named by the prompt. Args: prompt: User's natural language prompt. Returns: Fund type label for fund_s
agent/src/tools/swarm_variables.py:408
↓ 1 callers
Method
_extract_group_id
Extract group ID from groupInfo/groupV2 payloads across signal-cli variants.
agent/src/channels/signal.py:1147
↓ 1 callers
Function
_extract_horizon
Extract an investment horizon phrase such as "6 months" or "1 year". Args: prompt: User's natural language prompt. Returns:
agent/src/tools/swarm_variables.py:312
↓ 1 callers
Function
_extract_instrument
Return the mapped :class:`InstrumentType`, or ``None`` if absent/unknown. An absent/unknown instrument is ambiguous → DENY (fail-closed), never a
agent/src/trading/connectors/robinhood/extractor.py:146
↓ 1 callers
Function
_extract_instrument_type_rows
(payload: Any)
agent/src/trading/connectors/etoro/instruments.py:146
↓ 1 callers
Function
_extract_interactive_content
Recursively extract text and links from interactive card content.
agent/src/channels/feishu.py:133
↓ 1 callers
Method
_extract_jobs
(envelope: object)
agent/src/scheduled_research/store.py:283
↓ 1 callers
Method
_extract_jobs
Validate the envelope shape and return its raw job dicts. Args: envelope: The parsed top-level JSON value. Returns:
agent/src/live/runtime/jobstore.py:233
↓ 1 callers
Method
_extract_last_human_message
Return the text of the most recent human message, or ``""``.
agent/src/openbb_bridge/adapter.py:274
↓ 1 callers
Function
_extract_macro_horizon
Extract the macro cadence named by the prompt. Args: prompt: User's natural language prompt. Returns: Cadence label for macr
agent/src/tools/swarm_variables.py:424
↓ 1 callers
Function
_extract_market
Extract target market label from prompt. Args: prompt: User's natural language prompt. Returns: Market label for template va
agent/src/tools/swarm_variables.py:154
↓ 1 callers
Function
_extract_market_constraints
( text: str, source_message_id: str, )
agent/src/agent/resolution_context.py:218
↓ 1 callers
Method
_extract_message_bytes
(fetched: list[Any])
agent/src/channels/email.py:893
↓ 1 callers
Function
_extract_model_ids
Normalize common OpenAI-compatible model-list response shapes.
agent/src/api/settings_routes.py:303
↓ 1 callers
Function
_extract_performance
Extract the performance figures the paper claims for itself. Only sentences that pass :func:`_admits_metric` for a metric can contribute to i
agent/src/tools/research_papers_tool.py:740
↓ 1 callers
Function
_extract_period
Extract the sample window the paper says it tested over. Only explicit year ranges count. A lone year, or a phrase like "recent data", is not
agent/src/tools/research_papers_tool.py:709
↓ 1 callers
Function
_extract_portfolio_orders
(payload: Any)
agent/src/trading/connectors/etoro/sdk.py:382
↓ 1 callers
Function
_extract_positions
(payload: Any)
agent/src/trading/connectors/etoro/sdk.py:318
↓ 1 callers
Function
_extract_provider_message
Return any rate-limit / error envelope message from a payload. Alpha Vantage signals quota exhaustion and bad requests in-band with a 200 sta
agent/backtest/loaders/alphavantage_loader.py:76
↓ 1 callers
Method
_extract_reply_context
Extract text from the message being replied to, if any.
agent/src/channels/telegram.py:1201
↓ 1 callers
Function
_extract_result_error
Extract a readable error message from a failed MCP result. Args: result: Failed FastMCP result. Returns: Human-readable erro
agent/src/tools/mcp.py:1327
↓ 1 callers
Function
_extract_retry_after_s
Return the provider-suggested Retry-After delay in seconds, if any.
agent/src/providers/chat.py:153
↓ 1 callers
Function
_extract_review_period
Extract portfolio review cadence from prompt. Args: prompt: User's natural language prompt. Returns: Review cadence label fo
agent/src/tools/swarm_variables.py:223
↓ 1 callers
Function
_extract_risk_tolerance
Extract risk tolerance from prompt (English labels). Args: prompt: User's natural language prompt. Returns: conservative | m
agent/src/tools/swarm_variables.py:170
↓ 1 callers
Function
_extract_rows
Pull the ``result.data`` list out of a datacenter payload. Args: payload: Decoded JSON from the datacenter endpoint. Returns:
agent/src/tools/lockup_expiry_tool.py:173
↓ 1 callers
Function
_extract_rows
Pull the data rows out of a datacenter ``result`` envelope. Args: payload: Decoded JSON from the datacenter endpoint. Returns:
agent/src/tools/block_trades_tool.py:153
↓ 1 callers
Function
_extract_sector
Extract sector constraint from prompt. Args: prompt: User's natural language prompt. Returns: Sector filter value, or empty
agent/src/tools/swarm_variables.py:239
↓ 1 callers
Function
_extract_share_card_content
Extract text representation from share cards and interactive messages.
agent/src/channels/feishu.py:113
↓ 1 callers
Function
_extract_side
Return normalized ``"buy"`` / ``"sell"``, or ``None`` if ambiguous.
agent/src/trading/connectors/robinhood/extractor.py:135
↓ 1 callers
Function
_extract_signal
Collect the sentences in which the paper states its own contribution. Sentences are returned verbatim — the tool never summarizes what the signal
agent/src/tools/research_papers_tool.py:655
↓ 1 callers
Function
_extract_size
Return ``(notional_usd, quantity)``, each parsed or ``None``. Both may be returned non-``None`` (a notional+quantity order); the gate reconci
agent/src/trading/connectors/robinhood/extractor.py:161
↓ 1 callers
Function
_extract_strategy_type
Extract convertible bond strategy type from prompt. Args: prompt: User's natural language prompt. Returns: Strategy type lab
agent/src/tools/swarm_variables.py:191
↓ 1 callers
Function
_extract_symbol
Return the normalized upper-case symbol, or ``None`` if absent.
agent/src/trading/connectors/robinhood/extractor.py:126
↓ 1 callers
Function
_extract_symbol_frame
Extract a single symbol slice from a raw yfinance dataframe. Args: frame: Raw dataframe returned by ``yf.download``. symbol: yfin
agent/backtest/loaders/yfinance_loader.py:170
↓ 1 callers
Function
_extract_target_variable
Extract ML prediction target from prompt. Args: prompt: User's natural language prompt. Returns: Prediction target label for
agent/src/tools/swarm_variables.py:207
↓ 1 callers
Method
_extract_text_body
Best-effort extraction of readable body text.
agent/src/channels/email.py:919
↓ 1 callers
Function
_extract_timeframe
Extract the analysis timeframe for crypto_research_lab. Args: prompt: User's natural language prompt. Returns: Timeframe lab
agent/src/tools/swarm_variables.py:389
↓ 1 callers
Function
_extract_tool_call_extra_content
Extract provider-specific tool-call metadata LangChain would drop.
agent/src/providers/chat.py:756
↓ 1 callers
Method
_extract_uid
(fetched: list[Any])
agent/src/channels/email.py:900
↓ 1 callers
Function
_extract_view
Extract the market view named by the prompt. Args: prompt: User's natural language prompt. Returns: View label for derivativ
agent/src/tools/swarm_variables.py:356
↓ 1 callers
Function
_extract_vocabulary
Match a literal-term vocabulary against the paper text. Args: segments: Output of :func:`_segments`. vocabulary: ``(pattern, labe
agent/src/tools/research_papers_tool.py:678
↓ 1 callers
Function
_extract_volume_series
Extract the volume series, keeping a dated bar with no volume as NaN.
agent/src/tools/technical_indicator_tool.py:117
↓ 1 callers
Function
_factor
(symbol: str, from_dt: Any, to_dt: Any)
agent/src/tools/trade_journal_tool.py:112
↓ 1 callers
Function
_factor_brief
Build the paper-to-factor hand-off block for one paper. Args: paper: A normalized paper record carrying ``title`` and ``abstract``.
agent/src/tools/research_papers_tool.py:887
↓ 1 callers
Function
_factor_ic_correlation
Build the pairwise IC correlation matrix across factor results. Args: factors: Factor result dicts from ``_scan_factor_results``. Re
agent/src/api/runs_routes.py:417
↓ 1 callers
Method
_fail_login_on_connect_task_done
( connect_task: asyncio.Task[Any] | None, login_result: asyncio.Future[None], )
agent/src/channels/whatsapp.py:369
↓ 1 callers
Method
_failed_account
Build the account row for a source that could not be read. The row is deliberately valueless: totals are ``None`` and no position is
agent/src/portfolio/service.py:520
↓ 1 callers
Function
_failure_code
The ``error_code`` (else error text) of a refused call, for the stop message.
agent/src/agent/tool_results.py:30
↓ 1 callers
Function
_failure_detail
Short reason from a failed tool envelope, for the stop message.
agent/src/agent/tool_progress.py:42
↓ 1 callers
Function
_fake_loader
(codes: list[str])
agent/tests/test_alpha_bench_sector_tag.py:20
↓ 1 callers
Function
_fallback_candidate
Resolve a fallback against the supplied run directory, not the CWD.
agent/src/tools/path_utils.py:208
↓ 1 callers
Function
_fallback_flow
Recover daily data without disguising errors as observations. Args: symbol: Requested instrument, including its market suffix. pe
agent/src/tools/fund_flow_tool.py:95
↓ 1 callers
Function
_feature_for_condition_key
Map sparse/free-form entry condition keys to scanner features.
agent/src/shadow_account/scanner.py:220
↓ 1 callers
Function
_feishu_hints
Return the hand-written Feishu field hints (``enabled`` excluded). ``app_id``/``app_secret`` are required because :meth:`FeishuChannel.start`
agent/src/channels/config_meta.py:96
↓ 1 callers
Function
_fetch
(day: str)
agent/tests/test_paper_trade_multiday.py:77
↓ 1 callers
Method
_fetch
()
agent/tests/test_env_schema.py:448
↓ 1 callers
Method
_fetch_a_share_raw
Fetch the raw (unadjusted) companion of ``_fetch_a_share`` (#1541).
agent/backtest/loaders/akshare_loader.py:256
↓ 1 callers
Function
_fetch_auto
Auto mode: route each market group through fallback chain. Args: codes: All symbols. config: Backtest config dict. On success the
agent/backtest/runner.py:1901
↓ 1 callers
Function
_fetch_book
Fetch the top ``depth`` levels of one outcome token's order book. Args: token_id: CLOB token id identifying a single outcome series.
agent/src/tools/prediction_market_tool.py:664
↓ 1 callers
Method
_fetch_china_futures
Fetch a Chinese futures contract from Sina's token-free endpoints. Two contract forms arrive here, and they use different endpoints with
agent/backtest/loaders/akshare_loader.py:361
← previous
next →
5,901–6,000 of 26,887, ranked by callers