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
Method
_is_system_message
Return True for Discord system messages that carry no user prompt.
agent/src/channels/discord.py:744
↓ 1 callers
Function
_is_table_start
(lines: list[str], index: int)
agent/cli/ui/transcript.py:109
↓ 1 callers
Function
_is_ticker_name_query
Whether *query* is a bare all-caps ticker followed by a name hint. Yahoo's search endpoint answers this shape ("XOM ExxonMobil") with zero qu
agent/src/tools/symbol_search_tool.py:654
↓ 1 callers
Function
_is_unit_factor
Whether a sum is ``1 ± c ± …`` over constants: a percentage change as a factor.
agent/src/agent/grounding/policies.py:232
↓ 1 callers
Function
_is_us
(code: str)
agent/backtest/loaders/akshare_loader.py:51
↓ 1 callers
Function
_is_valid_chat_id
(value: Any)
agent/src/channels/websocket.py:189
↓ 1 callers
Method
_is_webchat_service_url
Return True when service URL points to unsupported Bot Framework Web Chat.
agent/src/channels/msteams.py:694
↓ 1 callers
Function
_is_websocket_upgrade
Detect an actual WS upgrade; plain HTTP GETs to the same path should fall through.
agent/src/channels/websocket.py:254
↓ 1 callers
Method
_is_workspace_path_allowed
Check path is inside workspace (when restriction enabled).
agent/src/channels/matrix.py:373
↓ 1 callers
Function
_is_wrapped_fastmcp_result
Detect FastMCP's wrapper for non-object tool return values. Modern FastMCP marks the wrapper in result metadata. FastMCP 2.14, the project's
agent/src/tools/mcp.py:1227
↓ 1 callers
Function
_isin_checksum_ok
Check an ISIN's check digit. Args: value: A value already matching :data:`_ISIN_PATTERN`. Returns: ``True`` when the Luhn-st
agent/src/portfolio/extraetf.py:906
↓ 1 callers
Function
_iso
(value: Any)
agent/backtest/engines/argentina_equity.py:864
↓ 1 callers
Function
_iso
(field: str)
agent/src/br_data/cotahist.py:55
↓ 1 callers
Function
_iso
(dt: datetime)
agent/tests/test_swarm_cancel_cascade.py:36
↓ 1 callers
Function
_iso_date
Normalize an Eastmoney ``YYYYMMDD`` field to ``YYYY-MM-DD``. Args: value: The raw field, e.g. ``20260804`` or ``"20260804"``. Return
agent/src/tools/etf_holdings_tool.py:688
↓ 1 callers
Function
_issue771_api_data
Return the three-row fixture described in issue #771.
agent/tests/test_tushare_fundamentals_provider.py:206
↓ 1 callers
Method
_issue_span
Locate the flagged figure in ``text`` by its recorded character span. The span is the only reliable anchor: a bare cell "1.10" also matches
agent/src/agent/grounding/release.py:635
↓ 1 callers
Method
_issue_token_response
Issue a short-lived WebSocket token over the configured HTTP path.
agent/src/channels/websocket.py:418
↓ 1 callers
Function
_iter_all_segment_lines
Like :func:`_iter_parsed_lines`, chained across every sealed segment and then the active file, with one continuous index over the concatenation.
agent/src/governance/ledger.py:686
↓ 1 callers
Function
_iter_selected_targets
Yield ``(parent, key, field_path)`` for each leaf selected by a path. ``parent[key]`` is the selected value, so callers can both read and write i
agent/src/security/scanner.py:223
↓ 1 callers
Method
_iterate
(self)
agent/src/providers/llm.py:185
↓ 1 callers
Method
_iterate
(self)
agent/tests/test_responses_stream_compat.py:42
↓ 1 callers
Function
_jid_to_string
(jid: Any)
agent/src/channels/whatsapp.py:124
↓ 1 callers
Function
_job
(**overrides)
agent/tests/test_scheduled_delivery_hook.py:21
↓ 1 callers
Method
_job_from_dict
Reconstruct a :class:`Job` from a persisted dict. Args: item: A raw job dict from the store. Returns: The re
agent/src/live/runtime/jobstore.py:272
↓ 1 callers
Method
_job_to_dict
Serialize a :class:`Job` to a plain dict. Args: job: The job to serialize. Returns: A JSON-serializable dict
agent/src/live/runtime/jobstore.py:255
↓ 1 callers
Method
_jobs_from_triggers
Convert the injected triggers (R3) into schedulable watch jobs (R1). INTERVAL triggers map to an ``interval:<ms>`` job on their own cadence;
agent/src/live/runtime/runner.py:984
↓ 1 callers
Function
_join_positions
( account: Mapping[str, Any], position_risk: list[Any], close_enough: CloseEnough, )
agent/src/trading/connectors/binance/usdm.py:144
↓ 1 callers
Function
_json
(text: str)
agent/src/trading/tap_forward.py:207
↓ 1 callers
Function
_json_hash
(value: Mapping[str, Any])
agent/backtest/run_card.py:262
↓ 1 callers
Function
_json_loads
(value: str | None, default: object)
agent/src/goal/store.py:67
↓ 1 callers
Function
_json_loads
Deserialize a JSON string, returning *default* when empty or corrupt.
agent/src/strategy_store/sqlite_store.py:87
↓ 1 callers
Function
_json_safe
Recursively replace non-finite floats with ``None``. Mirrors ``backtest.run_card._json_safe``: ``json.dumps(..., allow_nan=False)`` and stric
agent/src/tools/backtest_summary.py:188
↓ 1 callers
Function
_json_safe
(value: Any)
agent/src/tools/taiwan_stock_data_tool.py:100
↓ 1 callers
Function
_json_safe
Recursively replace non-finite floats with ``None``. A journal with no losing round-trip yields an infinite profit/loss ratio, and ``json.dum
agent/src/tools/trade_journal_tool.py:656
↓ 1 callers
Function
_json_safe
Convert provider/scalar values to strict-JSON-safe values.
agent/src/tools/get_fundamentals_tool.py:35
↓ 1 callers
Function
_json_safe_scalar_metrics
Scalar metrics for stdout JSON; non-finite floats become null.
agent/backtest/engines/base.py:57
↓ 1 callers
Function
_json_text
Keep timestamps and date-like values JSON-safe without losing precision.
agent/src/factors/data_availability.py:127
↓ 1 callers
Function
_jwt
Build an unsigned JWT-shaped value for claim parsing tests.
agent/tests/test_openai_codex.py:46
↓ 1 callers
Function
_key_gated_tool_classes
Return the {tool_name: tool_class} map for key-gated MCP tools. Imported lazily so a missing optional dependency in any mapped module degrade
agent/mcp_server.py:2152
↓ 1 callers
Function
_keyless_agent_tool_count
Return the registry size a fresh, credential-free install ships. Measured in a child interpreter, not in-process: ``_discover_subclasses`` wa
agent/tests/test_readme_counts.py:304
↓ 1 callers
Function
_kill_process_tree
Kill a subprocess and its whole descendant tree. On Windows, ``cmd.exe /c <command>`` spawns grandchildren (e.g. a piped ``findstr``) that in
agent/src/tools/bash_tool.py:22
↓ 1 callers
Function
_knowable_date
Return the date an item becomes actionable (post-cutoff rolls to next day). Args: published: Parsed publication timestamp (tz dropped to
agent/backtest/loaders/rsshub_events.py:277
↓ 1 callers
Function
_krx_bars
()
agent/tests/test_korea_backtest_smoke.py:29
↓ 1 callers
Function
_label_regimes
Regime label per bar from the trailing rolling benchmark return. Bars without ``benchmark_window`` bars of history, or without finite positiv
agent/src/strategy_discovery/evidence_harness.py:264
↓ 1 callers
Function
_labels
(frame: Any)
agent/src/tools/paper_trade/data_5m.py:220
↓ 1 callers
Function
_lag_365d
Look up each row's value from ~1 year earlier via an as-of match. A row-positional .shift(1) only reproduces a year-over-year lag when every
agent/backtest/loaders/_fundamental_schema.py:28
↓ 1 callers
Function
_last_date
(conn: sqlite3.Connection)
agent/src/br_data/cotahist.py:144
↓ 1 callers
Function
_last_error
Best-effort ``last_error()`` text for diagnostics.
agent/src/trading/connectors/mt5/_client.py:231
↓ 1 callers
Method
_last_human_index
Return the index of the last human message, or ``None``.
agent/src/openbb_bridge/adapter.py:291
↓ 1 callers
Function
_latch
Stop probing for the cooldown and tell the operator why.
agent/backtest/loaders/stooq_loader.py:104
↓ 1 callers
Method
_latest
Return the newest price bar and newest indicator row per stock. Args: connection: Open snapshot connection. stock_ids
agent/src/tools/taiwan_stock_data_tool.py:706
↓ 1 callers
Function
_leaves
(value: Any, path: str = "")
agent/tests/test_mcp_result_dedup.py:42
↓ 1 callers
Function
_ledger_scan_surface
()
agent/tests/test_paper_trade_purity.py:285
↓ 1 callers
Function
_legacy_bridge_config_fields
(config: dict[str, Any])
agent/src/channels/whatsapp.py:60
↓ 1 callers
Function
_legacy_result
()
agent/tests/test_alpha_cli_dotenv.py:75
↓ 1 callers
Function
_lerp
(start: int, end: int, ratio: float)
agent/cli/ui/banner.py:28
↓ 1 callers
Method
_leverage_for_symbol
(self, symbol)
agent/tests/test_base_engine.py:54
↓ 1 callers
Function
_limit_fill_price
The 委托价 execution for a resting limit, or ``None`` while it rests. JoinQuant's bar matching triggers on the bar's traded range: a buy needs `
agent/src/tools/paper_trade/session_5m.py:63
↓ 1 callers
Function
_lin_percentile
Independent reimplementation of numpy's default ("linear") percentile. Textbook formula: sort, take fractional index ``q * (n - 1)``, linearly
agent/tests/quantlib/valuation/test_comps.py:41
↓ 1 callers
Function
_link_arguments
(parser: argparse.ArgumentParser)
agent/src/research_artifacts/cli_handlers.py:106
↓ 1 callers
Function
_linked_number
Check whether a numeral is bound to the alias at ``[start, end)``. Walks outward in both directions, one token at a time, and stops at the fi
agent/src/tools/research_papers_tool.py:473
↓ 1 callers
Method
_list
List modules, or one module's public functions.
agent/src/tools/quantlib_tool.py:393
↓ 1 callers
Function
_list_artifacts
(run_dir: Path)
agent/backtest/run_card.py:378
↓ 1 callers
Function
_list_claude_cli_models
List the models the local Claude Code login can run, with their effort levels.
agent/src/api/settings_routes.py:482
↓ 1 callers
Method
_list_files
List all files in a skill directory.
agent/src/tools/skill_writer_tool.py:335
↓ 1 callers
Function
_list_openai_codex_models
Discover ChatGPT OAuth models without sharing the token with form URLs.
agent/src/api/settings_routes.py:334
↓ 1 callers
Function
_listed_product_prefix
Longest listed product that ``code`` starts with, if the rest is a contract suffix. Returns: The product code, or ``None`` when no li
agent/backtest/engines/global_futures.py:124
↓ 1 callers
Function
_listing_identity
Shape Yahoo-declared listing identity, distinct from issuer fundamentals. Only fields the provider explicitly supplies are used here; none of thi
agent/src/tools/stock_profile_tool.py:195
↓ 1 callers
Function
_literal_assignment
(path: Path, name: str)
agent/tests/test_distribution_skill_manifest.py:23
↓ 1 callers
Function
_literal_safe_value
Return a value that can be faithfully represented as a Python literal.
agent/src/shadow_account/codegen.py:33
↓ 1 callers
Function
_live_action_frame_from_tool_result
Build a live.action SSE frame from an order-guard tool_result.
agent/src/api/sessions_routes.py:354
↓ 1 callers
Function
_live_broker_sdk_connectors
Return the recognized broker_sdk connector keys from the profile registry. These are direct-SDK connectors (e.g. Longbridge) that appear in `
agent/src/api/live_routes.py:474
↓ 1 callers
Function
_live_client
An ASGI client bound to the *running* loop (no lifespan, no portal thread). ``TestClient`` opens a throwaway event loop per request unless it is
agent/tests/test_api_live_runtime.py:306
↓ 1 callers
Function
_live_mcp_tool_count
Return how many tools the MCP server actually serves. Returns: Length of ``mcp.list_tools()`` — decorator-registered wrappers plus
agent/tests/test_distribution_skill_manifest.py:39
↓ 1 callers
Function
_live_status
Return the running manager's status entry for *name* ({} if no runtime).
agent/src/api/channels_config_routes.py:239
↓ 1 callers
Function
_llm_tool_names
Extract tool names from an OpenAI-format tool-definitions list.
agent/tests/test_swarm_m5_trust_model.py:314
↓ 1 callers
Function
_load
(index)
agent/tests/test_fundamentals_ttm_quarter_gap.py:17
↓ 1 callers
Method
_load
Load all skill subdirectories from user and bundled directories. User skills are loaded first so they override bundled skills with the same n
agent/src/agent/skills.py:120
↓ 1 callers
Function
_load_artifact_manifest
Load and validate the ``run_card.json`` artifacts manifest. The manifest is the trust anchor for non-alias artifact paths: an entry is follow
agent/src/tools/run_artifact_tool.py:122
↓ 1 callers
Function
_load_baostock_valuation
Serve ``val:*`` fields from free, no-auth baostock daily bars. Fallback for users without a TUSHARE_TOKEN (#1789 follow-up #3): ``query_histo
agent/backtest/loaders/valuation_loader.py:138
↓ 1 callers
Function
_load_btc_panel
Single-instrument BTC-USDT panel via OKX. Adds vwap = typical price.
agent/src/tools/alpha_bench_tool.py:625
↓ 1 callers
Function
_load_cache
Read the on-disk code map; any failure yields an empty mapping.
agent/backtest/loaders/gildata_codes.py:63
↓ 1 callers
Function
_load_csi300_panel
CSI 300 panel via Tushare. Includes ``amount`` (required by gtja191). Constituents are taken from the most recent ``index_weight`` snapshot in
agent/src/tools/alpha_bench_tool.py:316
↓ 1 callers
Function
_load_css
Load CSS, prepending a CJK ``@font-face`` if we have a font.
agent/src/shadow_account/reporter.py:297
↓ 1 callers
Function
_load_engle_granger
()
agent/tests/test_correlation_analysis_skill.py:25
↓ 1 callers
Function
_load_env_file
Load a single .env file into os.environ without clobbering real vars. Exported environment variables are explicit operator intent and outrank
agent/src/providers/llm.py:1290
↓ 1 callers
Function
_load_env_into_environ
Populate ``os.environ`` with ``TAP_*`` vars from the project ``.env`` files. Scans **every** candidate (not just the first that exists) and only
agent/src/trading/tap_forward.py:49
↓ 1 callers
Function
_load_equity_curve
Load the equity curve as [(iso_date, equity), ...].
agent/src/shadow_account/backtester.py:487
↓ 1 callers
Function
_load_example_module
()
agent/tests/test_fundamental_filter_example.py:12
↓ 1 callers
Function
_load_factor_summary
Load a factor summary while removing non-finite numeric leaves. Args: path: Path to ``ic_summary.json``. Returns: Sanitized
agent/src/api/runs_routes.py:204
↓ 1 callers
Function
_load_ftd_map
Merge one fails-to-deliver archive into ``into`` as ticker -> (cusip, description). The pipe-delimited payload is ``SETTLEMENT DATE|CUSIP|SYMBOL|
agent/src/tools/institutional_holdings_tool.py:454
↓ 1 callers
Function
_load_full_proposal
Reload a persisted ``mandate.proposal`` payload by id, broker-agnostic. The propose tool persists the full proposal under ``<runtime_root>/li
agent/cli/_legacy.py:967
↓ 1 callers
Function
_load_full_proposal
Reload a persisted mandate proposal by id, broker-agnostic.
agent/src/api/sessions_routes.py:262
↓ 1 callers
Function
_load_golden
Load a golden CSV and coerce the index dtype to match the live panel.
agent/tests/factors/test_alpha101_samples.py:81
↓ 1 callers
Function
_load_golden
(alpha_id: str)
agent/tests/factors/test_academic_samples.py:49
↓ 1 callers
Function
_load_group_equity_csv
Load a ``group_equity.csv`` file into dated rows of float group values. The first column is the date; every remaining column is kept in file
agent/src/api/runs_routes.py:157
↓ 1 callers
Function
_load_i18n
Load the Chinese notes / nicknames / theme names (empty when absent). Returns: ``{"notes": {id: {"en", "zh"}}, "nicknames": {...}, "theme
wiki/scripts/build_alpha_library.py:322
↓ 1 callers
Function
_load_ic_series_csv
Load an ``ic_series.csv`` file into ``{"date", "ic"}`` rows. The first CSV column is treated as the date column regardless of its header name
agent/src/api/runs_routes.py:115
↓ 1 callers
Method
_load_lid_mappings
(self)
agent/src/channels/whatsapp.py:302
← previous
next →
6,401–6,500 of 26,887, ranked by callers