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
Function
_commit
(client: TestClient, account_ref: str)
agent/tests/test_robinhood_live_account_binding.py:315
↓ 3 callers
Function
_committee_role
(role)
agent/tests/test_external_review_regressions.py:48
↓ 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:39
↓ 3 callers
Function
_comparable_text
(value: Any)
agent/src/product/identity/constraints.py:199
↓ 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:125
↓ 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
Function
_configured_roots
(raw: str)
agent/src/tools/path_utils.py:165
↓ 3 callers
Method
_connect
(self)
agent/src/portfolio/imports.py:38
↓ 3 callers
Method
_context_budget
Compaction thresholds for the active model's real context window.
agent/src/session/compaction.py:95
↓ 3 callers
Function
_context_infos
(message: Any)
agent/src/channels/whatsapp.py:179
↓ 3 callers
Function
_convert_tool_output
Convert durable image references to Responses image input parts.
agent/src/providers/openai_codex.py:428
↓ 3 callers
Function
_cookie_header
Render a cookie mapping as a single ``Cookie:`` header value.
agent/backtest/loaders/yahoo_client.py:154
↓ 3 callers
Function
_cotahist_body
()
agent/tests/test_br_data.py:62
↓ 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/adapters/openai.py:320
↓ 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
(exchange: Any)
agent/src/trading/connectors/openalgo/sdk.py:287
↓ 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/evals/grounding/figures.py:1030
↓ 3 callers
Function
_currency_before
Whether a currency symbol or ISO code touches the number on its left.
agent/evals/grounding/figures.py:1016
↓ 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:106
↓ 3 callers
Function
_default_run_roots
Return default roots for generated backtest/tool run directories.
agent/src/tools/path_utils.py:193
↓ 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:214
↓ 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:502
↓ 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:140
↓ 3 callers
Function
_digits
(value: Any)
agent/src/tools/br_market_data_tool.py:33
↓ 3 callers
Function
_digits
(text: str)
agent/tests/test_grounding_numeric_locale_rounding.py:37
↓ 3 callers
Function
_dingtalk_section
(**overrides: Any)
agent/tests/test_channel_noop_refresh.py:226
↓ 3 callers
Function
_dispatch_connector
Route parsed ``connector`` subcommands.
agent/cli/commands/connectors.py:1227
↓ 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:391
↓ 3 callers
Function
_div
(dt: str, symbol: str, amount: float)
agent/tests/test_trade_journal_currency_pools.py:100
↓ 3 callers
Function
_dividend_rec
(dt: str, symbol: str, amount: float, market: str = "china_a")
agent/tests/test_trade_journal.py:499
↓ 3 callers
Function
_drawdown
( port: pd.Series, *, initial_label: str | None = None, complete: bool = True, )
agent/backtest/risk_xray.py:329
↓ 3 callers
Function
_drive_worker
( tmp_path: Path, llm: _ScriptedLLM, *, tools: list[str], max_iterations: int = 3, can
agent/tests/test_swarm_cache_source.py:316
↓ 3 callers
Function
_effective_fee_model
()
agent/tests/test_paper_trade_multiday.py:93
↓ 3 callers
Function
_email_pdf_password_configured
Read only whether the private Email PDF password is configured.
agent/src/api/scheduled_routes.py:435
↓ 3 callers
Method
_emit_session_event
Forward swarm status to the hosting session SSE channel if present.
agent/src/tools/swarm_tool.py:544
↓ 3 callers
Method
_emit_tool_completed
Publish the canonical live outcome for a tool call.
agent/src/product/artifacts.py:153
↓ 3 callers
Method
_emit_tool_started
Publish the canonical live item for a tool call.
agent/src/product/artifacts.py:132
↓ 3 callers
Function
_enable_cache
(monkeypatch, tmp_path)
agent/tests/test_market_data_raw_adjustment.py:82
↓ 3 callers
Function
_engine_trade_rows
Entry+exit row pairs, exactly as the engine writer emits them.
agent/tests/test_strategy_discovery_harness.py:211
↓ 3 callers
Function
_ensure_not_system_job
Refuse any proposal that would create, replace or cancel a system job. ``system:``-prefixed ids are seeded and repaired only by :func:`src.sc
agent/src/scheduled_research/proposals.py:89
↓ 3 callers
Function
_env_dir
()
agent/cli/onboard.py:51
↓ 3 callers
Function
_envelope
Serialize an envelope whose ``record_key`` list is paged to fit one result.
agent/src/tools/institutional_holdings_tool.py:1691
↓ 3 callers
Function
_envelope
(out: str)
agent/tests/test_alpha_bench_meta_survivorship.py:82
↓ 3 callers
Function
_epoch_seconds
Convert a ``YYYY-MM-DD`` date to UTC midnight epoch seconds. Computed from the parsed calendar date (not ``time.time()``) so the window is re
agent/backtest/loaders/yahoo_loader.py:131
↓ 3 callers
Function
_equity_curve_with_zero
An equity curve that hits zero then recovers (e.g. a margin call + reset).
agent/tests/test_metrics_inf_zero_equity.py:43
↓ 3 callers
Function
_err
(msg: str)
agent/src/hypotheses/cli_handlers.py:57
↓ 3 callers
Function
_error
Build the failure envelope as a JSON string. Args: message: Human-readable error description. Returns: A ``{"ok": false, "er
agent/src/tools/sector_tool.py:57
↓ 3 callers
Function
_error
Render a failure envelope as a JSON string.
agent/src/tools/institutional_holdings_tool.py:1686
↓ 3 callers
Function
_error
Standard error envelope shared with the other agent tool modules.
agent/src/strategy_discovery/facade.py:79
↓ 3 callers
Function
_error_envelope_message
Return the error string when a broker call failed via envelope. The MCP adapter converts a failed remote call into ``{"status": "error", "err
agent/src/live/runtime/flatten.py:451
↓ 3 callers
Method
_evaluate_and_liquidate
( self, timestamp: pd.Timestamp, price_field: str )
agent/backtest/engines/crypto.py:328
↓ 3 callers
Function
_events
(rows: list[tuple[str, str, str, float, str, str]])
agent/tests/test_rsshub_events_lookahead.py:32
↓ 3 callers
Function
_exact_decimal
(value)
agent/src/live/sdk_order_gate.py:795
↓ 3 callers
Function
_exchange_for
Map the project suffix to the broker exchange code (NSE / BSE).
agent/backtest/loaders/india_broker_loader.py:85
↓ 3 callers
Function
_execute
(manager: BackgroundManager, task_id: str, command: str)
agent/tests/test_background_tools.py:21
↓ 3 callers
Method
_execute_open_order
Commit a previously priced opening order.
agent/backtest/engines/base.py:2236
↓ 3 callers
Function
_expected_fee
(fill, tax_rate: float)
agent/tests/test_taiwan_equity_engine.py:524
↓ 3 callers
Function
_explicit_horizon
Return the exact stated duration rather than a broader default bucket.
agent/src/tools/swarm_variables.py:294
↓ 3 callers
Function
_extract_post_content
Extract text and image keys from Feishu post (rich text) message. Handles three payload shapes: - Direct: {"title": "...", "content": [[..
agent/src/channels/feishu.py:305
↓ 3 callers
Function
_extract_reference_links
Return every markdown link target containing ``references/``. Args: skill: Skill directory name (e.g. ``tushare``). Returns:
agent/tests/test_skill_reference_links.py:74
↓ 3 callers
Function
_extract_rules
Cluster profitable roundtrips, derive one rule per dense cluster.
agent/src/shadow_account/extractor.py:329
↓ 3 callers
Function
_extract_text_content
Join text content blocks from a FastMCP response. Args: content: Content block list. Returns: Joined text block content.
agent/src/tools/mcp.py:1347
↓ 3 callers
Function
_fake_akshare
(monkeypatch, adjusts: list[str])
agent/tests/test_market_data_raw_adjustment.py:274
↓ 3 callers
Function
_fake_baostock
(monkeypatch, flags: list[str])
agent/tests/test_market_data_raw_adjustment.py:197
↓ 3 callers
Function
_fake_response
(text: str, status_ok: bool = True)
agent/tests/test_sina_loader.py:142
↓ 3 callers
Function
_feishu_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:161
↓ 3 callers
Method
_fetch_a_share_raw
Fetch the raw (unadjusted) companion of ``_fetch_a_share`` (#1541).
agent/backtest/loaders/akshare_loader.py:303
↓ 3 callers
Function
_figure_reasons
(result)
agent/tests/test_grounding_backtest_outputs.py:172
↓ 3 callers
Function
_file_hash
(path: Path)
agent/backtest/run_card.py:301
↓ 3 callers
Function
_file_sha256
Hex SHA-256 of a file's bytes, or None when it cannot be read.
agent/evals/grounding/evidence.py:260
↓ 3 callers
Function
_fill
Apply a relative impact to a price and return the fill. Args: prices: Validated reference prices as a float array. direction: 1 t
agent/src/quantlib/impact.py:152
↓ 3 callers
Function
_filter_df
()
agent/tests/test_trade_journal.py:590
↓ 3 callers
Method
_finalize_tool_result
Record a tool result: update memory, append message, write trace, emit event.
agent/src/product/artifacts.py:210
↓ 3 callers
Function
_find_column
Match a header name against aliases, case-insensitively.
agent/src/strategy_discovery/run_artifacts.py:94
↓ 3 callers
Method
_finish_run
Record one attempt's outcome and persist the terminal state. Shared by the prompt path — *now_ms* is the firing time, dispatch return
agent/src/scheduled_research/executor.py:453
↓ 3 callers
Function
_flat_bars
(periods: int)
agent/tests/test_dropped_target_adjustments.py:34
↓ 3 callers
Function
_flat_frames
Per-symbol flat 100.0 frame: ``bars`` business days ending ``end_day``. Flat closes keep the T4 detector silent (close-to-close ratio 1.0 — no
agent/tests/test_paper_trade_perf.py:78
↓ 3 callers
Function
_forbid_spawn
Fail the test if anything starts a process from a print path. The original implementation launched `cli.commands.dispatch serve` detached, with
agent/tests/test_cli_backtest_summary.py:29
↓ 3 callers
Function
_force
Call _plan_open_order in a way that triggers exactly `reason`.
agent/tests/test_plan_rejected.py:83
↓ 3 callers
Method
_forget_run
(self, run_id: str)
agent/src/swarm/runtime.py:485
↓ 3 callers
Function
_format_result
Format a SwarmRun into a JSON result string. Args: run: SwarmRun instance. preset: Matched preset name. variables: Extrac
agent/src/tools/swarm_tool.py:786
↓ 3 callers
Function
_forward
Forward returns readable on ``rows`` only; every other row is all-NaN.
agent/tests/quantlib/test_combination_single_ic_std.py:35
↓ 3 callers
Function
_frame
(day: str, close: float)
agent/tests/test_paper_trade_purity.py:102
↓ 3 callers
Function
_frame
(rows)
agent/tests/test_trade_journal_reversal_fees.py:11
↓ 3 callers
Method
_frame
(n=260)
agent/tests/test_warmup_window.py:261
↓ 3 callers
Method
_fts_integrity_ok
(idx: MemorySearchIndex)
agent/tests/memory/test_search_index.py:117
↓ 3 callers
Function
_futu
(code: str, market: str, currency: str)
agent/tests/test_portfolio_futu_prefixed_codes.py:11
← previous
next →
3,201–3,300 of 30,405, ranked by callers