Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
8,953 in github.com/HKUDS/Vibe-Trading
⨍
Functions
8,953
◇
Types & classes
1,150
↳
Endpoints
64
↓ 6 callers
Function
_profile_id
Normalize an optional connector profile id.
agent/cli/_legacy.py:3735
↓ 6 callers
Function
_read_ledger
()
agent/tests/test_audit_redact.py:27
↓ 6 callers
Function
_render
(renderable)
agent/tests/test_cli_ui_redesign.py:10
↓ 6 callers
Function
_require_openapi
Return the ``openapi`` submodule from whichever SDK package is installed.
agent/src/trading/connectors/longbridge/sdk.py:529
↓ 6 callers
Function
_rule_with_rsi
( rsi_min: float, rsi_max: float, hour_min: int = 0, hour_max: int = 23, )
agent/tests/test_shadow_account.py:1321
↓ 6 callers
Function
_run
(**kwargs: Any)
agent/tests/test_financial_rigor_tool.py:229
↓ 6 callers
Function
_run_serve
Invoke serve_main with uvicorn stubbed; return the host it bound to. The frontend mount / static-file branches are short-circuited because uv
agent/tests/test_serve_bind.py:47
↓ 6 callers
Function
_safe_call
Call ``obj.name(*args, **kwargs)`` if it exists, retrying without kwargs. python-okx signatures vary across versions (some read methods accept ex
agent/src/trading/connectors/okx/sdk.py:764
↓ 6 callers
Function
_sample_data
Return (ret, pos, dates) for a small long-only universe.
agent/tests/test_turnover_aware_optimizer.py:11
↓ 6 callers
Function
_sanitize_body
Strip C0/C1 control bytes from `content` while keeping ``\n`` and ``\t``.
agent/src/memory/persistent.py:100
↓ 6 callers
Function
_spec
()
agent/tests/test_swarm_grounding.py:228
↓ 6 callers
Method
_stop_typing_keepalive
(self, room_id: str, *, clear_typing: bool)
agent/src/channels/matrix.py:716
↓ 6 callers
Function
_str_field
Return the first non-empty str value found for *keys*, stripped.
agent/src/channels/mochat.py:79
↓ 6 callers
Function
_to_futu_symbol
Convert project symbol to Futu OpenAPI format. Examples: 700.HK -> HK.00700 5.HK -> HK.00005 000001.SZ -> SZ.0000
agent/backtest/loaders/futu.py:31
↓ 6 callers
Function
_trading_common_args
Build shared optional trading connector arguments.
agent/mcp_server.py:652
↓ 6 callers
Function
_unwrap
Return the data payload from a Futu ``(ret_code, data[, page_key])`` tuple. Futu read calls return ``(ret_code, data)``; ``request_history_kline`
agent/src/trading/connectors/futu/sdk.py:761
↓ 6 callers
Function
_valid_body
(**kw: Any)
agent/tests/test_alpha_compare_api.py:59
↓ 6 callers
Method
_write_transaction
Open an immediate write transaction for cross-connection safety.
agent/src/goal/store.py:245
↓ 6 callers
Function
act
()
frontend/src/pages/Agent.tsx:47
↓ 6 callers
Function
asString
(value: unknown, fallback = "")
frontend/src/lib/swarmStatus.ts:13
↓ 6 callers
Function
canonicalPath
(pageId, version = DOCS_LATEST_ALIAS)
wiki/docs/main.js:72
↓ 6 callers
Function
cap_rows
Bound a per-symbol row list to keep tool payloads within budget.
agent/src/market_data.py:49
↓ 6 callers
Function
check_budget
Raise :class:`TimeoutError` if the monotonic clock has crossed ``deadline``. Use this between pages of a paginated fetch to fail fast instead of
agent/backtest/loaders/base.py:144
↓ 6 callers
Method
close
()
frontend/src/hooks/__tests__/useSSE.test.ts:32
↓ 6 callers
Method
close
Close the database connection.
agent/src/session/search.py:336
↓ 6 callers
Function
compute_ic_series
Compute daily Spearman rank correlation (IC) between factor values and returns. Vectorised via ``rank().corrwith()`` (Spearman = Pearson on ranks
agent/src/factors/factor_analysis_core.py:8
↓ 6 callers
Method
create_session
Create and persist a session. Args: session: Session instance to create. Returns: The persisted Session.
agent/src/session/store.py:59
↓ 6 callers
Method
diagnostics
Return non-blocking diagnostics for assertion messages.
agent/tests/mcp_http_test_helpers.py:40
↓ 6 callers
Method
execute
Fetch news headlines for one stock or the broad market. Args: **kwargs: ``scope`` ('stock' | 'global', default 'stock'), ``code``
agent/src/tools/stock_news_tool.py:285
↓ 6 callers
Function
getChartTheme
()
frontend/src/lib/chart-theme.ts:59
↓ 6 callers
Function
get_data_dir
Return and create the runtime data directory derived from config path. Args: config_path: Optional explicit config file path. Return
agent/src/config/paths.py:59
↓ 6 callers
Method
get_descriptions
Return skills grouped by category for the system prompt. Returns: Grouped skill list with category headers.
agent/src/agent/skills.py:136
↓ 6 callers
Function
get_shared_index
Return a process-wide singleton SessionSearchIndex. Thread-safe via double-checked locking. Used by both SessionService (indexing) and Sessio
agent/src/session/search.py:349
↓ 6 callers
Method
health
(self)
agent/src/factors/registry.py:312
↓ 6 callers
Function
infer_market
Infer market key from a ticker symbol.
agent/backtest/correlation.py:16
↓ 6 callers
Function
is_content_filter_triggered
Return True when ``finish_reason`` indicates content moderation blocked the response. Recognises both OpenAI's ``"content_filter"`` and Gemini's
agent/src/providers/content_filter.py:50
↓ 6 callers
Function
is_live_broker
Return whether an MCP server denotes a live-trading broker. Detection is by config key OR by URL host, so a live-broker URL parked under an a
agent/src/live/registry.py:59
↓ 6 callers
Function
is_sensitive_arg
Return whether a tool-argument / payload key name should be redacted. A key is sensitive when its normalized (stripped, lower-cased) form either
agent/src/tools/redaction.py:142
↓ 6 callers
Function
list_presets
Return summary info for all available presets. Returns: List of dicts with keys: name, title, description, agent_count, variables.
agent/src/swarm/presets.py:47
↓ 6 callers
Function
load_alpha_meta_from_py
AST-extract the ``__alpha_meta__`` dict literal from a zoo module. No import is performed — purely static parsing. Raises ``RegistryError`` on
agent/src/factors/registry.py:147
↓ 6 callers
Function
load_preset
Load a YAML preset by name. Args: name: Preset name (without .yaml extension). Returns: Parsed YAML dict. Raises:
agent/src/swarm/presets.py:26
↓ 6 callers
Function
load_profile
Load a ShadowProfile back from disk. Raises: FileNotFoundError: No profile with that id.
agent/src/shadow_account/storage.py:76
↓ 6 callers
Function
load_runtime_agent_config
Load disk config and apply runtime overrides. Args: config_path: Optional explicit config file path. overrides: Runtime override
agent/src/config/loader.py:137
↓ 6 callers
Function
loader_cache_path
Return the parquet cache path for one loader payload.
agent/backtest/loaders/base.py:271
↓ 6 callers
Method
login
Perform channel-specific interactive login (e.g. QR code scan). Args: force: If True, ignore existing credentials and force re-au
agent/src/channels/base.py:47
↓ 6 callers
Method
observe
()
frontend/src/tests/setup.ts:11
↓ 6 callers
Function
parse_file
End-to-end: load file, detect format, parse. Args: path: File path. Returns: (format_name, records). Falls back to generic i
agent/src/tools/trade_journal_parsers.py:334
↓ 6 callers
Method
prepare_and_append
Record a generated transcript event for the current process.
agent/src/channelsui/gateway_services.py:204
↓ 6 callers
Function
provider_env_names
Return the API-key and base-URL env names for a provider/model pair.
agent/src/providers/capabilities.py:180
↓ 6 callers
Function
read_url
Fetch web page content via the Jina Reader API. The full URL (including query string) is sent to the third-party Jina Reader service (r.jina.
agent/src/tools/web_reader_tool.py:61
↓ 6 callers
Function
records_to_dataframe
Convert records to a standardized DataFrame (datetime column parsed).
agent/src/tools/trade_journal_parsers.py:360
↓ 6 callers
Method
request
(self, method: str, url: str, **kwargs: Any)
agent/tests/test_qveris_loader.py:55
↓ 6 callers
Function
resolve_secid
Map a Vibe-Trading symbol to its Eastmoney secid. Supported suffixes: ``.SH`` / ``.SZ`` / ``.BJ`` (A-share), ``.HK`` (Hong Kong, code zero-pa
agent/backtest/loaders/eastmoney_client.py:206
↓ 6 callers
Method
resolved_transport
Resolve the effective transport from explicit type or implied fields.
agent/src/config/schema.py:363
↓ 6 callers
Function
running_http_mcp_server_on_random_port
Context manager that runs a FastMCP HTTP server on a retryable free port.
agent/tests/mcp_http_test_helpers.py:388
↓ 6 callers
Function
split_message
Split content into chunks within max_len, preferring line breaks. Args: content: The text content to split. max_len: Maximum leng
agent/src/channels/utils.py:53
↓ 6 callers
Method
start
Begin rendering. ``verb`` rerolls per turn if not supplied.
agent/cli/stream.py:118
↓ 6 callers
Method
start_run
Start a swarm run. Returns immediately, execution happens in background. Args: preset_name: YAML preset name to execute.
agent/src/swarm/runtime.py:86
↓ 6 callers
Method
submit
(self, request: dict[str, Any])
agent/tests/test_runtime_flatten.py:40
↓ 6 callers
Function
swarm_runs_root
Single source of truth for where swarm runs are persisted. The swarm store (mcp_server) and the run-dir sandbox allow-list (src.tools.path_ut
agent/src/swarm/store.py:64
↓ 6 callers
Method
to_dict
Serialize the hypothesis to plain JSON-compatible data.
agent/src/hypotheses/registry.py:114
↓ 5 callers
Function
_as_float
(df: pd.DataFrame)
agent/src/factors/base.py:55
↓ 5 callers
Function
_as_iter
(value: Any)
agent/src/trading/connectors/tiger/sdk.py:631
↓ 5 callers
Function
_assert_profile
(config: IBKRLocalConfig, accounts: Iterable[str])
agent/src/trading/connectors/ibkr/local.py:443
↓ 5 callers
Method
_build_client
Create the default FastMCP client from MCP transport config. Returns: Configured async FastMCP client.
agent/src/tools/mcp.py:417
↓ 5 callers
Function
_cache_frame
(value: float = 1.0)
agent/tests/test_loader_retry_helpers.py:214
↓ 5 callers
Function
_calc_pct_change
Calculate price change percentage from bar data.
agent/backtest/engines/china_a.py:123
↓ 5 callers
Function
_call
(codes)
agent/tests/test_get_market_data_unresolved.py:59
↓ 5 callers
Method
_call_with_retry
Call an async Telegram API function with retry on pool/network timeout and RetryAfter.
agent/src/channels/telegram.py:826
↓ 5 callers
Function
_check
(intent: OrderIntent, mandate: Mandate, *, positions=None, daily_count=0)
agent/tests/test_mandate_enforcement.py:170
↓ 5 callers
Function
_clip
(text: str, limit: int)
agent/cli/ui/rail.py:214
↓ 5 callers
Function
_clip_inline
Collapse whitespace and clip text for single-line terminal cells.
agent/cli/_legacy.py:437
↓ 5 callers
Function
_cluster_to_rule
Summarize a cluster as one ShadowRule. Entry condition uses p10–p90 numeric bounds + dominant market. This is lighter than a decision tree an
agent/src/shadow_account/extractor.py:459
↓ 5 callers
Function
_coerce_ids
Normalise the ``alpha_ids`` argument to a clean list of ids. Accepts a list (the contract) or a comma/space-separated string (LLMs occasional
agent/src/tools/alpha_compare_tool.py:21
↓ 5 callers
Function
_coerce_str
Coerce frontmatter values to a display string. ``parse_frontmatter`` returns lists for ``[a, b]`` syntax and bools for ``true``/``false``. ``
agent/src/memory/persistent.py:123
↓ 5 callers
Function
_configured_api_key
Return the current API auth key, if configured. Resolves the ``VIBE_TRADING_API_KEY`` alias server-side via :func:`get_env_config` so both ``
agent/src/api/security.py:134
↓ 5 callers
Function
_connect
(config: IBKRLocalConfig)
agent/src/trading/connectors/ibkr/local.py:388
↓ 5 callers
Function
_daily_index
(start: str = "2026-01-02", periods: int = 30)
agent/tests/test_shadow_account.py:1376
↓ 5 callers
Function
_dhan_client
(cfg: DhanConfig)
agent/src/trading/connectors/dhan/sdk.py:541
↓ 5 callers
Function
_disconnect
(ib: Any)
agent/src/trading/connectors/ibkr/local.py:412
↓ 5 callers
Method
_dispatch
(self, argv: List[str])
agent/tests/test_cli_runtime.py:107
↓ 5 callers
Function
_dispatch_connector
Route parsed ``connector`` subcommands.
agent/cli/_legacy.py:4252
↓ 5 callers
Method
_emit_event
Persist an event and forward to live callback if registered. Args: run_id: Run identifier. event: Event to persist.
agent/src/swarm/runtime.py:166
↓ 5 callers
Function
_ensure_registered
Import every known loader module so ``@register`` decorators fire. Safe to call multiple times — only runs the imports once. Loaders whose de
agent/backtest/loaders/registry.py:67
↓ 5 callers
Method
_error
Render a failure envelope as a JSON string. Args: message: Human-readable error text. Returns: ``{"ok": fals
agent/src/tools/stock_news_tool.py:399
↓ 5 callers
Function
_extract_items
(payload: Any)
agent/src/trading/connectors/trading212/sdk.py:500
↓ 5 callers
Function
_fake_response
(payload: dict, status_ok: bool = True)
agent/tests/test_research_reports_tool.py:52
↓ 5 callers
Function
_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/trading212/sdk.py:527
↓ 5 callers
Function
_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/tiger/sdk.py:647
↓ 5 callers
Method
_get_exchange
Create exchange instance.
agent/backtest/loaders/ccxt_loader.py:84
↓ 5 callers
Function
_get_existing_session_or_404
Return (service, session) or raise 404.
agent/src/api/sessions_routes.py:317
↓ 5 callers
Function
_get_goal_store
Return the shared goal store, lazily initialized.
agent/cli/commands/goal.py:26
↓ 5 callers
Function
_get_swarm_store
()
agent/mcp_server.py:1509
↓ 5 callers
Function
_handle_exception
Print one-line error; emit traceback only when ``--verbose`` is set.
agent/src/factors/cli_handlers.py:118
↓ 5 callers
Function
_handle_proposal_reply
Intercept a reply while a mandate proposal is outstanding. Must be called only when ``ctx.pending_proposal`` is set. A bare numeric pick is a
agent/cli/main.py:1064
↓ 5 callers
Function
_hourly_index
(start: str = "2026-01-02", periods: int = 24)
agent/tests/test_shadow_account.py:1372
↓ 5 callers
Function
_import_mcp_server
Import agent/mcp_server.py without executing main(). Returns: The imported mcp_server module. Raises: ImportError: If the mo
agent/tests/test_mcp_regression.py:89
↓ 5 callers
Function
_intent
(**overrides: Any)
agent/tests/test_mandate_enforcement.py:158
↓ 5 callers
Function
_is_crypto
Detect crypto symbols (e.g. BTC-USDT, ETH/USDT).
agent/backtest/loaders/tushare.py:44
↓ 5 callers
Function
_is_hk_equity
Detect Hong Kong equity symbols (e.g. 00700.HK).
agent/backtest/loaders/tushare.py:34
← previous
next →
401–500 of 8,953, ranked by callers