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
↓ 3 callers
Function
_bare_jid
(raw: Any)
agent/src/channels/whatsapp.py:148
↓ 3 callers
Function
_bare_service
()
agent/tests/test_swarm_cancel_cascade.py:196
↓ 3 callers
Function
_base
()
agent/tests/factors/test_missing_bar_fabrication.py:86
↓ 3 callers
Function
_base_kwargs
Required-only kwargs for a SwarmRun instance.
agent/tests/test_swarm_run_metadata.py:22
↓ 3 callers
Function
_base_symbol
Strip the ``.NS`` / ``.BO`` suffix, leaving the broker's bare symbol.
agent/backtest/loaders/india_broker_loader.py:90
↓ 3 callers
Function
_base_url
Return the API base URL (config override or the public default), no trailing slash.
agent/backtest/loaders/tickerall_loader.py:118
↓ 3 callers
Function
_benchmark_series
Piecewise benchmark: flat, -5.5%/day decline, +6%/day rally, flat. Segments (1-based days → 0-based index i): Jan 1-8 flat 100.0; Jan 9-16 (i
agent/tests/test_strategy_discovery_harness.py:83
↓ 3 callers
Function
_best_summary
Extract the best summary from all assistant messages.
agent/src/swarm/worker.py:1251
↓ 3 callers
Function
_book_to_market_panel
()
agent/tests/factors/test_fundamental_expansion_price_samples.py:42
↓ 3 callers
Function
_br_store
(tmp_path)
agent/tests/test_br_data.py:357
↓ 3 callers
Function
_build_agent
( llm: Any, max_iter: int = 3, tmp_run_dir: Path | None = None, background_manager: Any = None
agent/tests/test_agent_loop_no_assistant_prefill.py:68
↓ 3 callers
Function
_build_auto_run
Auto-benchmark run: portfolio ret = 0.001 + 1.2 * benchmark ret exactly.
agent/tests/test_attribution_api.py:103
↓ 3 callers
Method
_build_card_elements
Split content into div/markdown + table elements for Feishu card.
agent/src/channels/feishu.py:1173
↓ 3 callers
Method
_build_chunks
Build outbound text chunks, including attachment-failure fallback text.
agent/src/channels/discord.py:323
↓ 3 callers
Function
_build_client
(server_config: MCPServerConfig)
agent/tests/test_mcp_oauth_schema.py:231
↓ 3 callers
Method
_build_message_metadata
Build common Telegram inbound metadata payload.
agent/src/channels/telegram.py:1187
↓ 3 callers
Function
_bundled_skill_count
Count skills that ship inside the package. User-created skills live outside the checkout and must not be counted, so the loader is pointed at
agent/tests/test_readme_counts.py:108
↓ 3 callers
Function
_cache_result
Persist a ShadowBacktestResult so downstream tools don't re-backtest.
agent/src/shadow_account/backtester.py:390
↓ 3 callers
Function
_call_compute
Call compute_evidence_for_run binding args by name, filtering kwargs not in the signature so the fixture stays tolerant of additive changes.
agent/tests/test_strategy_discovery_harness.py:375
↓ 3 callers
Function
_call_tool
Preserve the single-resource contract of existing quote callers.
agent/backtest/loaders/gildata_loader.py:204
↓ 3 callers
Function
_call_with_backoff
Call a Tushare endpoint, waiting out a per-minute quota rejection. Only quota rejections are retried. Retrying an ordinary failure would turn
agent/backtest/loaders/tushare.py:51
↓ 3 callers
Function
_canonical
Reduce a column header to its comparison form. Args: name: Raw header text. Returns: Lower-cased header with spaces, undersc
agent/src/entities/ingest.py:77
↓ 3 callers
Function
_canonical_crypto_pair
Return an explicit crypto pair in canonical ``BASE-QUOTE`` form. A pair is only accepted as a crypto pair when its base is in the appropriate
agent/src/tools/symbol_search_tool.py:436
↓ 3 callers
Function
_canonical_json
Serialize ``obj`` deterministically for hashing (sorted keys, compact).
agent/src/governance/ledger.py:125
↓ 3 callers
Function
_canonicalize_interval
Resolve a user interval spelling to the canonical loader form. A case-exact match against ``_VALID_INTERVALS`` wins first, so the minute inte
agent/src/tools/market_data_tool.py:31
↓ 3 callers
Method
_capabilities
(self)
agent/src/providers/llm.py:374
↓ 3 callers
Method
_capture
(self, env: dict[str, str])
agent/tests/test_llm.py:876
↓ 3 callers
Function
_capture_on_event
Run ``_run_agent`` with all heavy deps stubbed, returning its ``on_event``. Replaces ``AgentLoop`` with a stub that captures the real ``event_cal
agent/tests/test_cli_live.py:703
↓ 3 callers
Function
_ccxt_proxy_config
Build CCXT proxy settings from conventional proxy environment variables.
agent/backtest/loaders/ccxt_loader.py:97
↓ 3 callers
Method
_channel_parent_key
Return the parent channel key for a Discord thread-like channel.
agent/src/channels/discord.py:392
↓ 3 callers
Function
_channels_api_call
Call an IM channel runtime endpoint on the local API server.
agent/cli/_legacy.py:3188
↓ 3 callers
Function
_chat_client
(fake)
agent/tests/test_anthropic_prompt_cache.py:123
↓ 3 callers
Function
_chat_llm
(fake_llm: _ScriptedStreamingLLM)
agent/tests/test_agent_loop_dsml_tool_calls.py:63
↓ 3 callers
Method
_check
(settings: DecisionSettings, totals: dict[str, Any], *, starting: bool)
agent/src/live/runtime/decision_budget.py:124
↓ 3 callers
Function
_check_order
Validate the price and side shared by every price-impact model. Args: price: Reference price before impact; a scalar. direction:
agent/src/quantlib/impact.py:103
↓ 3 callers
Function
_check_panel
(panel: pd.DataFrame, name: str)
agent/src/quantlib/combination.py:75
↓ 3 callers
Function
_check_panel
(panel: pd.DataFrame, name: str)
agent/src/quantlib/neutralization.py:41
↓ 3 callers
Function
_cjk_run
The run of CJK ideographs ``text`` opens with.
agent/src/agent/grounding/figures.py:998
↓ 3 callers
Function
_clamp
Coerce a count into ``1..maximum``, falling back to ``default``.
agent/src/tools/institutional_holdings_tool.py:1677
↓ 3 callers
Function
_classify_market
Route a symbol to the A-share or the US path. The repository's shared classifier (``backtest.engines._market_hooks._detect_market``) is delib
agent/src/tools/etf_holdings_tool.py:233
↓ 3 callers
Method
_cleanup_connection
Remove *connection* from every subscription set; safe to call multiple times.
agent/src/channels/websocket.py:312
↓ 3 callers
Function
_clear_proxy_env
(monkeypatch)
agent/tests/test_ccxt_loader_proxy.py:15
↓ 3 callers
Method
_clear_reactions
Remove all pending reactions after bot replies.
agent/src/channels/discord.py:831
↓ 3 callers
Function
_cleared_text
Build the self-describing placeholder that replaces a pruned result.
agent/src/agent/context_compact.py:182
↓ 3 callers
Function
_client
(tmp_path, monkeypatch)
agent/tests/test_research_artifact_api.py:10
↓ 3 callers
Function
_client_key
Return a stable per-client bucket key (client IP, or a fixed fallback).
agent/src/api/system_routes.py:133
↓ 3 callers
Function
_client_order_id
Derive a client-order-id from a recorded order for dedupe. A client-order-id is the idempotency key the broker echoes back so a caller can re
agent/src/live/runtime/reconcile.py:195
↓ 3 callers
Function
_close
()
agent/tests/factors/test_qlib158_cnt_nan_propagation.py:44
↓ 3 callers
Function
_close_any
Whether ``value`` agrees with any of ``targets``.
agent/src/agent/grounding/policies.py:138
↓ 3 callers
Method
_close_imap_client
(client: Any)
agent/src/channels/email.py:716
↓ 3 callers
Function
_close_panel
Eight deterministic closes; cross-sectional IC needs >= 5 symbols. The series is the seed-73 draw from ``default_rng(73).normal(0, 0.02)`` co
agent/tests/test_alpha_bench_pit_lag.py:28
↓ 3 callers
Method
_close_position
( self, symbol: str, exit_price: float, exit_time: pd.Timestamp, reaso
agent/backtest/engines/crypto.py:558
↓ 3 callers
Function
_closes_from_returns
(returns: list[float])
agent/tests/test_risk_xray.py:542
↓ 3 callers
Function
_closes_on_cash
(ledger, metrics)
agent/tests/test_argentina_backtests.py:137
↓ 3 callers
Function
_cn_a_fakes
Fake loader/ch/calendar for a cn_a run; ``None`` omits that leg's bar.
agent/tests/test_paper_trade_tool.py:131
↓ 3 callers
Function
_cn_data_map
()
agent/tests/factors/test_fundamental_valuation_samples.py:255
↓ 3 callers
Function
_cny_ledger
A ledger holding one Shanghai quote sourced from yahoo, priced in CNY.
agent/tests/test_agent_grounding.py:2141
↓ 3 callers
Function
_code_before
The uppercase ISO code ending ``head`` as a word of its own, or "".
agent/src/agent/grounding/figures.py:983
↓ 3 callers
Function
_coerce_numeric_strings
Convert numeric-looking ``value`` strings to floats, in place. The EDB rows carry their measurement as a string (``"value": "5.4"``). The gro
agent/src/tools/gildata_srv.py:137
↓ 3 callers
Function
_coerce_str_list
(value: Any)
agent/src/hypotheses/registry.py:49
↓ 3 callers
Function
_coerce_string_list
Coerce a JSON-schema array-or-string value to a string list.
agent/src/tools/goal_tool.py:24
↓ 3 callers
Function
_collect_process_output
Return subprocess stdout after ensuring the process has exited.
agent/tests/mcp_http_test_helpers.py:102
↓ 3 callers
Method
_combine_holdings
Merge the same instrument held at several sources into one row. Args: positions: Valued positions from every successfully read so
agent/src/portfolio/service.py:897
↓ 3 callers
Function
_commit
(client: TestClient, account_ref: str)
agent/tests/test_robinhood_live_account_binding.py:315
↓ 3 callers
Function
_compact_date
Normalize a ``YYYY-MM-DD`` (or already-compact) date for the API filter. Args: date: A trade date such as ``"2024-01-02"`` or ``"20240102
agent/src/tools/dragon_tiger_tool.py:38
↓ 3 callers
Method
_comparable_price_records
Return every observed quote a numeric claim may be checked against. Quotes from non-OHLC tools are re-keyed onto canonical price fields and
agent/src/agent/grounding/evidence.py:1518
↓ 3 callers
Function
_comps_peers
(*, include_excluded_peer: bool = True)
agent/tests/quantlib/valuation/test_artifact.py:134
↓ 3 callers
Function
_comps_target
(*, omit_components: bool = True)
agent/tests/quantlib/valuation/test_artifact.py:186
↓ 3 callers
Function
_compute_volume_stats
Return latest volume, its trailing mean, and latest/mean ratio. The trailing mean is reported only when the latest period bars all carry fini
agent/src/tools/technical_indicator_tool.py:122
↓ 3 callers
Method
_concept
(self, unit, quarter_values, annual_value)
agent/tests/test_sec_period_frames.py:265
↓ 3 callers
Function
_configured_loader
()
agent/tests/test_longbridge_loader.py:187
↓ 3 callers
Method
_connect
(self)
agent/src/portfolio/imports.py:38
↓ 3 callers
Function
_context_infos
(message: Any)
agent/src/channels/whatsapp.py:179
↓ 3 callers
Function
_cookie_header
Render a cookie mapping as a single ``Cookie:`` header value.
agent/backtest/loaders/yahoo_client.py:150
↓ 3 callers
Function
_cotahist_body
()
agent/tests/test_br_data.py:58
↓ 3 callers
Method
_count_data_sources
Count registered backtest data sources for the system prompt. Derived from the loader registry's ``VALID_SOURCES`` (the single source
agent/src/agent/context.py:372
↓ 3 callers
Function
_counter_path
(broker: str)
agent/src/live/daily_count.py:43
↓ 3 callers
Function
_create_bulk_database
Build a snapshot wide enough to overflow the response budget.
agent/tests/test_taiwan_stock_data_tool.py:250
↓ 3 callers
Method
_create_chat_result
(self, response, generation_info=None)
agent/src/providers/llm.py:547
↓ 3 callers
Function
_create_memory_file
Write a memory file old and unimportant enough for GC to act on it.
agent/tests/memory/test_lifecycle_index_cleanup.py:59
↓ 3 callers
Function
_create_run
( store: SwarmStore, *, run_id: str = "run-contract", status: RunStatus = RunStatus.pending,
agent/tests/test_swarm_route_contracts.py:31
↓ 3 callers
Function
_currency_after
Whether a currency symbol or ISO code touches the number on its right. A CJK run counts only when short enough to be a currency word: "美元" does,
agent/src/agent/grounding/figures.py:1006
↓ 3 callers
Function
_currency_before
Whether a currency symbol or ISO code touches the number on its left.
agent/src/agent/grounding/figures.py:992
↓ 3 callers
Function
_date_window
(days: int)
agent/src/tools/tushare_fallbacks.py:63
↓ 3 callers
Function
_decay_factors
Compute Nelson-Siegel slope and curvature loadings for decay parameter lam.
agent/src/quantlib/fixedincome.py:591
↓ 3 callers
Function
_decaying_store
(monkeypatch)
agent/tests/test_sdm_decay_scan_dry_run_flag.py:19
↓ 3 callers
Function
_decimal_text
Return ``value`` when it is a finite decimal string, else raise.
agent/src/trading/connectors/robinhood/mcp.py:297
↓ 3 callers
Function
_dedup_manager
()
agent/tests/test_channels_runtime.py:111
↓ 3 callers
Function
_deepseek_adapter_mode
Return the configured DeepSeek adapter mode.
agent/src/providers/llm.py:937
↓ 3 callers
Function
_default_run_roots
Return default roots for generated backtest/tool run directories.
agent/src/tools/path_utils.py:142
↓ 3 callers
Method
_default_scope
(self)
agent/src/channelsui/gateway_services.py:82
↓ 3 callers
Method
_derive_topic_session_key
Derive topic-scoped session key for Telegram chats with threads.
agent/src/channels/telegram.py:1179
↓ 3 callers
Function
_describe_schedule
Return a human-readable form of a stored schedule string.
agent/cli/commands/research_playbook.py:272
↓ 3 callers
Function
_detect_submarket
Detect US, HK, Canada, or UK from symbol suffixes. Args: codes: Instrument codes. Returns: ``"hk"`` for ``.HK``, ``"ca"`` fo
agent/backtest/engines/_market_hooks.py:417
↓ 3 callers
Function
_diff_rows
Extract the ``data.diff`` row list from a push2 payload, defensively. Args: payload: Decoded JSON from a push2 board endpoint. Retur
agent/src/tools/sector_tool.py:139
↓ 3 callers
Function
_digits
(value: Any)
agent/src/tools/br_market_data_tool.py:32
↓ 3 callers
Function
_digits
(text: str)
agent/tests/test_grounding_numeric_locale_rounding.py:33
↓ 3 callers
Function
_dingtalk_section
(**overrides: Any)
agent/tests/test_channel_noop_refresh.py:226
↓ 3 callers
Function
_display_name
(item: dict[str, Any])
agent/src/trading/connectors/etoro/instruments.py:511
↓ 3 callers
Function
_disposition_effect
Detect disposition effect: holding losers longer than winners. Metric = avg_loss_hold / avg_win_hold. A ratio > 1 means the user holds losing
agent/src/tools/trade_journal_tool.py:389
← previous
next →
2,701–2,800 of 26,887, ranked by callers