Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 3 callers
Method
__init__
( self, *, model: str, roots: FileRoots, temperature: float = 0.0,
agent/src/providers/openai_codex.py:706
↓ 3 callers
Function
_account_arg
Build the arguments dict a remote MCP account/positions/orders call needs. The CLI ``--account`` flag and the agent-facing tools both surface as
agent/src/trading/service.py:1500
↓ 3 callers
Function
_account_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:599
↓ 3 callers
Function
_account_payload
()
agent/tests/test_binance_usdm_readonly.py:17
↓ 3 callers
Function
_accounts_base_url
(domain: str)
agent/src/channels/feishu.py:410
↓ 3 callers
Function
_acquisition_timeout
Keep each HTTP transport inside its already assigned source budget.
agent/backtest/loaders/_http.py:149
↓ 3 callers
Function
_add_user_message
(session_id: str)
agent/tests/test_goal_api.py:32
↓ 3 callers
Function
_agent_config
(server)
agent/tests/test_trading_connections.py:21
↓ 3 callers
Function
_aligned
(panel: pd.DataFrame, reference: pd.DataFrame)
agent/src/quantlib/neutralization.py:58
↓ 3 callers
Function
_analyze
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, rows: str)
agent/tests/test_trade_journal_strict_json.py:21
↓ 3 callers
Function
_answer
(ref)
agent/tests/test_grounding_unknown_single_refs.py:33
↓ 3 callers
Method
_append_safely
(self, item_type: str, turn_id: str, **payload: Any)
agent/src/session/runtime.py:545
↓ 3 callers
Function
_apply_microcompact_gate
Mirror AgentRuntime layer-1 gate (``loop.py`` ~572-573).
agent/tests/test_loop_helpers.py:29
↓ 3 callers
Function
_archive
(path)
agent/tests/test_session_migration.py:15
↓ 3 callers
Function
_arg_value
(args: Any, *keys: str)
agent/cli/ui/rail.py:109
↓ 3 callers
Function
_artifact_ref
``path`` as a ref names it: below the active run, else below its parent. A backtest an earlier turn left is a sibling of the active run, so `
agent/evals/grounding/evidence.py:247
↓ 3 callers
Function
_as_dict
(value: Any)
agent/src/tools/backtest_runs_tool.py:41
↓ 3 callers
Function
_as_iter
(value: Any)
agent/src/trading/connectors/alpaca/sdk.py:879
↓ 3 callers
Function
_as_list
(value: Any)
agent/src/trading/connectors/dhan/sdk.py:611
↓ 3 callers
Function
_as_list
(value: Any)
agent/src/trading/connectors/shoonya/sdk.py:661
↓ 3 callers
Function
_assemble
Discover + live-wrap the robinhood channel for a given allowlist.
agent/tests/test_readonly_default.py:82
↓ 3 callers
Function
_assemble
Discover + live-wrap the scalable channel for a given allowlist.
agent/tests/test_scalable_connector.py:288
↓ 3 callers
Method
_assemble_inbound_content
Build ``(content, media_paths)`` for an inbound message. Pulls in group context, strips bot mentions, prefixes the sender's display n
agent/src/channels/signal.py:944
↓ 3 callers
Function
_assert_invalid_runtime_file_is_redaction_safe
(tmp_path, secret_value: str)
agent/tests/test_longbridge_credentials.py:175
↓ 3 callers
Function
_assert_no_abs
(msg: str)
agent/tests/test_error_path_redaction.py:30
↓ 3 callers
Function
_assert_positive_lot_fills
(outcome, side: str, count: int, case: str)
agent/tests/test_paper_trade_5m_partial_fills.py:235
↓ 3 callers
Function
_assert_single_volume_cap_cancel
(outcome, *, side: str, qty: float, case: str)
agent/tests/test_paper_trade_5m_partial_fills.py:249
↓ 3 callers
Function
_assert_trees_frozen
(runtime_before: dict[str, str], cwd_before: dict[str, str], cwd: Path)
agent/tests/test_paper_trade_purity.py:140
↓ 3 callers
Function
_assert_unchanged
(engine, positions=None)
agent/tests/test_base_engine.py:101
↓ 3 callers
Function
_ast_config_keys
Collect string literals read off the backtest config dict in a module. Matches ``config.get("key")``, ``config["key"]`` and the same two forms on
agent/backtest/runner.py:1383
↓ 3 callers
Function
_attach_price_features
Attach price-context features in place, batching one fetch per symbol. Groups roundtrips by symbol, fetches each symbol's price window once over
agent/src/shadow_account/extractor.py:248
↓ 3 callers
Function
_attribution_run_brinson
Run ``brinson_fachler`` and serialize the result into the response shape. Args: mode: One of ``"symbol"``, ``"asset_class"``, ``"invested
agent/src/api/attribution_core.py:469
↓ 3 callers
Method
_audit
Write one live-action audit event and return the redacted record. The returned record (identical to what was written to the ledger) is
agent/src/live/order_guard.py:754
↓ 3 callers
Function
_auth_credential_from_header_or_query
Return the supplied API credential from the permitted source.
agent/src/api/security.py:371
↓ 3 callers
Function
_auto_cluster
Pick a cluster count via simple silhouette heuristic (fallback k=2). Uses the supplied numeric features; scales by z-score to avoid any single
agent/src/shadow_account/extractor.py:394
↓ 3 callers
Function
_auto_title_endpoint
(app)
agent/tests/test_session_auto_title_wrapped_prompt.py:132
↓ 3 callers
Function
_badges
Return the feature badges in document order. Args: text: Full README text. Returns: The numeric ``<sub>`` badge texts that s
agent/tests/test_readme_counts.py:228
↓ 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:201
↓ 3 callers
Function
_bars
(closes, *, adjustment=None, start="2025-09-01")
agent/tests/test_market_data_raw_adjustment.py:87
↓ 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:36
↓ 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
_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
_book
(mode: str, **values: Any)
agent/src/trading/connectors/openalgo/sdk.py:393
↓ 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:361
↓ 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:72
↓ 3 callers
Function
_build_agent
Build an AgentRuntime with the same lightweight registry pattern as loop tests.
agent/tests/test_auto_compact_chunked_summary.py:34
↓ 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
_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
_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:466
↓ 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/adapters/openai.py:190
↓ 3 callers
Method
_capture
(self, env: dict[str, str])
agent/tests/test_llm.py:894
↓ 3 callers
Function
_capture_on_event
Run ``_run_agent`` with all heavy deps stubbed, returning its ``on_event``. Replaces ``AgentRuntime`` with a stub that captures the real ``event_
agent/tests/test_cli_live.py:697
↓ 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
_chat_client
(fake)
agent/tests/test_anthropic_prompt_cache.py:130
↓ 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/evals/grounding/figures.py:1022
↓ 3 callers
Function
_clamp
Coerce a count into ``1..maximum``, falling back to ``default``.
agent/src/tools/institutional_holdings_tool.py:1678
↓ 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:234
↓ 3 callers
Method
_cleanup_connection
Remove *connection* from every subscription set; safe to call multiple times.
agent/src/channels/websocket.py:311
↓ 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/session/compaction_ops.py:93
↓ 3 callers
Function
_client
(stream: _SilentStream)
agent/tests/test_chat_stream_interruption.py:68
↓ 3 callers
Function
_client
(tmp_path: Path, monkeypatch)
agent/tests/api/test_run_detail_offload.py:16
↓ 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
_client_rows
Two ascending bars in eastmoney_client.fetch_kline output shape.
agent/tests/test_eastmoney_loader.py:23
↓ 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/evals/grounding/policies.py:125
↓ 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:132
↓ 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:2044
↓ 3 callers
Function
_code_before
The uppercase ISO code ending ``head`` as a word of its own, or "".
agent/evals/grounding/figures.py:1007
↓ 3 callers
Function
_coerce_legs
Parse and validate raw JSON-style leg objects.
agent/src/tools/options_payoff_tool.py:383
↓ 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"``). Return
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:26
↓ 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:899
← previous
next →
3,101–3,200 of 30,405, ranked by callers