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
↓ 2 callers
Function
_last_event_timestamp
Return the timestamp of the last line in ``events.jsonl``. Used by the stale-run reaper. Returns ``None`` when the file is missing, empty, or
agent/src/swarm/store.py:39
↓ 2 callers
Method
_leading_placeholder_span
Detect a leading Signal mention placeholder when mention metadata is missing. Some clients/integrations deliver mentions as a leadin
agent/src/channels/signal.py:1145
↓ 2 callers
Method
_line_has_noqa
Return True when the source line contains ``# noqa: env-gate``.
tools/ci_env_var_gate.py:92
↓ 2 callers
Function
_live_api_base
Return the base URL of the running API server for runner-control calls. Mirrors :func:`cli.main._commit_mandate`: the base is read from ``VIB
agent/cli/_legacy.py:2814
↓ 2 callers
Function
_load_config
()
agent/backtest/loaders/local_loader.py:59
↓ 2 callers
Function
_load_json_file
Load JSON from disk if present.
agent/src/api/runs_routes.py:23
↓ 2 callers
Method
_load_refs_from_disk
Load refs from disk with compatibility fallback for legacy layouts.
agent/src/channels/msteams.py:589
↓ 2 callers
Function
_load_skill_dir
Load a skill from a directory. Args: dir_path: Skill directory path (must contain SKILL.md). Returns: Skill instance or None
agent/src/agent/skills.py:58
↓ 2 callers
Method
_load_state
Load saved account state. Returns True if a valid token was found.
agent/src/channels/weixin.py:186
↓ 2 callers
Function
_loader_cache_metadata_path
(cache_path: Path)
agent/backtest/loaders/base.py:436
↓ 2 callers
Function
_lookup_codes
(universe: str)
agent/src/tools/autopilot_tool.py:203
↓ 2 callers
Function
_loopback_proxy_bypass
Keep local FastMCP fixture traffic out of developer/system HTTP proxies.
agent/tests/mcp_http_test_helpers.py:166
↓ 2 callers
Function
_make_agent_spec
Build a minimal SwarmAgentSpec for direct worker invocation.
agent/tests/test_swarm_m1_config_plumbing.py:31
↓ 2 callers
Function
_make_contract
(symbol: str, *, exchange: str, currency: str, sec_type: str)
agent/src/trading/connectors/ibkr/local.py:457
↓ 2 callers
Method
_make_daily_df
(self)
agent/tests/test_tushare_loader.py:284
↓ 2 callers
Function
_make_frontend_with_vite
Create a fake frontend directory with a placeholder Vite binary so that ``cmd_dev``'s pre-flight check (``node_modules/.bin/vite``) passes dur
agent/tests/test_cli_setup_dev.py:198
↓ 2 callers
Method
_make_loader
(self)
agent/tests/test_tushare_loader.py:279
↓ 2 callers
Function
_make_minute_df
()
agent/tests/test_tushare_loader.py:205
↓ 2 callers
Function
_make_progress_cb
Return an on_progress closure that updates the job entry in-place.
agent/src/api/alpha_routes.py:222
↓ 2 callers
Function
_make_task
Build a minimal SwarmTask bound to ``test_agent``.
agent/tests/test_swarm_m1_config_plumbing.py:45
↓ 2 callers
Function
_mandate
(asset_classes: tuple[AssetClass, ...])
agent/tests/test_india_mandate.py:29
↓ 2 callers
Function
_markdown_to_telegram_html
Convert markdown to Telegram-safe HTML.
agent/src/channels/telegram.py:198
↓ 2 callers
Function
_market_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:596
↓ 2 callers
Function
_max_wait_seconds
()
agent/src/tools/swarm_tool.py:24
↓ 2 callers
Method
_mention_id_candidates
Extract possible identifier fields from a mention payload.
agent/src/channels/signal.py:1111
↓ 2 callers
Method
_mention_span
Extract a safe (start, length) span from a mention.
agent/src/channels/signal.py:1132
↓ 2 callers
Function
_merge_dicts
Recursively merge two plain dictionaries. Args: base: Base dictionary. override: Override dictionary applied on top of ``base``.
agent/src/config/loader.py:327
↓ 2 callers
Function
_message_chunks_from_events
(events: Iterable[dict[str, Any]])
agent/src/providers/openai_codex.py:296
↓ 2 callers
Method
_messages_file
(self, session_id: str)
agent/src/session/store.py:48
↓ 2 callers
Function
_min_interval
Resolve the minimum interval between QVeris requests.
agent/backtest/loaders/qveris_loader.py:111
↓ 2 callers
Function
_missing_fields
(config: Trading212Config)
agent/src/trading/connectors/trading212/sdk.py:454
↓ 2 callers
Function
_missing_fields
(cfg: ShoonyaConfig)
agent/src/trading/connectors/shoonya/sdk.py:571
↓ 2 callers
Function
_ms
(year: int, month: int, day: int, hour: int, minute: int)
agent/tests/test_scheduled_research_executor.py:20
↓ 2 callers
Method
_new_client
(self)
agent/src/channels/whatsapp.py:309
↓ 2 callers
Function
_nonzero_balances
Extract non-zero per-asset balances from a ccxt ``fetch_balance`` result. ccxt returns a dict keyed by asset (each ``{free, used, total}``) plus
agent/src/trading/connectors/binance/sdk.py:704
↓ 2 callers
Method
_normalize_address
Normalize an address or mailbox-like identifier for comparisons.
agent/src/channels/email.py:607
↓ 2 callers
Method
_normalize_html_whitespace
Normalize common HTML whitespace/entities from Teams into plain text spacing.
agent/src/channels/msteams.py:387
↓ 2 callers
Function
_normalize_limits
Project ``source`` onto canonical limit names for ceiling comparison. Only the keys that name a clamped limit (those in :data:`_CEILING_ALIASES`)
agent/src/live/mandate/commit.py:78
↓ 2 callers
Function
_normalize_preset_name
Normalize an explicit preset name and validate it against bundled presets.
agent/src/tools/swarm_tool.py:436
↓ 2 callers
Function
_normalize_price_rows
Normalize stored price rows for charting. Args: rows: Raw rows loaded from CSV or generated data frames. Returns: Normalized
agent/src/ui_services.py:569
↓ 2 callers
Function
_now_iso
()
agent/src/api/alpha_routes.py:116
↓ 2 callers
Function
_now_ms
Current wall-clock time in epoch milliseconds, UTC. Returns: Epoch milliseconds for the current instant.
agent/src/live/runtime/triggers.py:307
↓ 2 callers
Function
_oauth_token_present
Return whether an OAuth token cache exists for a broker (C2 auth state).
agent/src/api/live_routes.py:281
↓ 2 callers
Function
_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/okx/sdk.py:641
↓ 2 callers
Function
_ocr_image_array
Run OCR on a numpy image; return joined lines or empty string.
agent/src/tools/doc_reader_tool.py:88
↓ 2 callers
Function
_ok_page
()
agent/tests/test_okx_loader_bounded.py:35
↓ 2 callers
Function
_ok_payload
Three ascending observations with one FRED missing-value gap (".").
agent/tests/test_fred_macro_tool.py:17
↓ 2 callers
Method
_open_dm_for_user
(self, user_id: str)
agent/src/channels/slack.py:289
↓ 2 callers
Method
_open_imap_client
(self, mailbox: str, *, missing_mailbox_ok: bool = False)
agent/src/channels/email.py:560
↓ 2 callers
Function
_order_error
Build a fail-closed order error envelope tagged with the profile.
agent/src/trading/connectors/futu/sdk.py:633
↓ 2 callers
Function
_order_refused
(config: Trading212Config, message: str, **extra: Any)
agent/src/trading/connectors/trading212/sdk.py:481
↓ 2 callers
Function
_order_result
Interpret an OKX order/cancel response, failing closed on any non-zero code. Success requires both the outer ``code == "0"`` and the first data r
agent/src/trading/connectors/okx/sdk.py:529
↓ 2 callers
Function
_order_spec
()
agent/tests/test_killswitch_blocks_orders.py:52
↓ 2 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/trading212/sdk.py:552
↓ 2 callers
Function
_order_to_dict
(order: Any)
agent/src/trading/connectors/ibkr/local.py:535
↓ 2 callers
Method
_output_columns
( self, schema: TableSchema, frame: pd.DataFrame, fields: Iterable[str] | None
agent/backtest/loaders/tushare_fundamentals.py:187
↓ 2 callers
Function
_parse_aes_key
Parse a base64-encoded AES key, handling both encodings seen in the wild. From ``pic-decrypt.ts parseAesKey``: * ``base64(raw 16 bytes)``
agent/src/channels/weixin.py:1482
↓ 2 callers
Function
_parse_iso
(value: str | None)
agent/src/swarm/store.py:27
↓ 2 callers
Function
_partial_path
()
agent/cli/onboard.py:93
↓ 2 callers
Method
_payload_via_runtime
Mirror ``invoke``: convert the raw OpenAI-format input first (where ``_convert_input`` re-attaches signatures), then build the request payload
agent/tests/test_kimi_reasoning_content.py:587
↓ 2 callers
Function
_pct_diff
Absolute relative percent difference (inf when reported is 0 and fetched isn't).
agent/src/tools/report_audit_tool.py:219
↓ 2 callers
Function
_pick
Project selected Yahoo fields into a flat, raw-unwrapped row.
agent/src/tools/stock_profile_tool.py:51
↓ 2 callers
Function
_pick_verb
Pick a thinking verb via the shared helper, with a local fallback.
agent/cli/components/working_indicator.py:34
↓ 2 callers
Function
_pin_mandate_prompt
Build the autonomous-turn prompt with the full mandate pinned inline. The mandate text is embedded directly in the prompt this runner owns so it
agent/src/live/runtime/runner.py:210
↓ 2 callers
Function
_planted_signal_panel
Build a panel where the close price *is* the latent factor — the test can then ask for a factor that uses close.pct_change(5) and knows the an
agent/tests/factors/test_bench_strict.py:501
↓ 2 callers
Method
_post_json
(self, path: str, body: dict[str, Any])
agent/backtest/loaders/qveris_loader.py:194
↓ 2 callers
Function
_price_limit
Determine price limit based on board. Args: symbol: Stock code (e.g. 300001.SZ, 688001.SH, 000001.SZ). Returns: Limit as fra
agent/backtest/engines/china_a.py:137
↓ 2 callers
Function
_print
(msg: str)
agent/src/hypotheses/cli_handlers.py:50
↓ 2 callers
Function
_print_interactive_result
Print the assistant answer after the rail without boxed run panels.
agent/cli/main.py:769
↓ 2 callers
Function
_print_status_bar
Print a static status bar using Rich (fallback without prompt_toolkit). Args: stats: Session statistics.
agent/cli/_legacy.py:191
↓ 2 callers
Function
_print_swarm_vars_json_error
Print actionable JSON diagnostics for ``--swarm-run`` vars.
agent/cli/_legacy.py:86
↓ 2 callers
Function
_print_welcome
Print the welcome screen.
agent/cli/_legacy.py:1682
↓ 2 callers
Method
_process_forward_command
Process a queued slash command.
agent/src/channels/telegram.py:1365
↓ 2 callers
Method
_process_message_update
Process a queued Telegram message update.
agent/src/channels/telegram.py:1401
↓ 2 callers
Function
_promoted_numeric_features
Return the numeric feature set used for clustering. Always includes the journal-derived ``_NUMERIC_FEATURES``. A price feature joins only whe
agent/src/shadow_account/extractor.py:332
↓ 2 callers
Function
_prompt_rule
()
agent/cli/input.py:334
↓ 2 callers
Function
_prompt_secret
Read a masked secret. Returns string, BACK, or CANCEL.
agent/cli/onboard.py:261
↓ 2 callers
Function
_provider_key_env
Return the credential environment variable for a provider.
agent/cli/_legacy.py:399
↓ 2 callers
Method
_prune_conversation_refs
Remove stale and unsupported conversation refs from memory.
agent/src/channels/msteams.py:674
↓ 2 callers
Function
_prune_old_jobs
Drop completed/errored bench + compare jobs older than ``_JOB_TTL_SECONDS``.
agent/src/api/alpha_routes.py:130
↓ 2 callers
Method
_qr_login
Perform QR code login flow. Returns True on success.
agent/src/channels/weixin.py:340
↓ 2 callers
Function
_qualify_contract
(ib: Any, contract: Any)
agent/src/trading/connectors/ibkr/local.py:471
↓ 2 callers
Function
_queue_prompt
Stash ``prompt`` on ``ctx.pending_prompt`` for the loop to consume. Returns ``True`` if the context exposes a writable ``pending_prompt`` att
agent/cli/commands/chat.py:100
↓ 2 callers
Function
_quote_client
(cfg: TigerConfig)
agent/src/trading/connectors/tiger/sdk.py:582
↓ 2 callers
Function
_quote_context
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:562
↓ 2 callers
Function
_quote_ctx
Open an ``OpenQuoteContext`` against the local OpenD gateway.
agent/src/trading/connectors/futu/sdk.py:686
↓ 2 callers
Function
_raw_tool_call
( call_id: str, name: str, arguments: dict, thought_signature: str | None = None, )
agent/tests/test_agent_loop_thought_signature.py:14
↓ 2 callers
Function
_read
Resolve a path through the read_file tool and return the parsed body. Args: path: Path argument passed to read_file (no run_dir; skills/
agent/tests/test_skill_reference_links.py:55
↓ 2 callers
Function
_read_audit_records
(live_runtime: Path)
agent/tests/test_mandate_enforcement.py:369
↓ 2 callers
Function
_read_config_file
Read the persisted QVeris config without env overrides.
agent/src/tools/qveris_tool.py:44
↓ 2 callers
Function
_read_input
Read user input with arrow key support if prompt_toolkit is available. Falls back to Rich Prompt.ask() when prompt_toolkit is not installed or
agent/cli/_legacy.py:222
↓ 2 callers
Function
_read_json
Safely read JSON.
agent/cli/_legacy.py:312
↓ 2 callers
Function
_read_json
Parse a document-reader JSON envelope.
agent/tests/test_doc_reader_security.py:19
↓ 2 callers
Method
_read_tools
Return connector-specific read tools, falling back to legacy names.
agent/src/live/order_guard.py:588
↓ 2 callers
Function
_read_trace
Read trace.jsonl entries from a run directory.
agent/tests/test_content_filter_e2e.py:144
↓ 2 callers
Method
_rebuild_index
Rebuild MEMORY.md from all existing entry files.
agent/src/memory/persistent.py:364
↓ 2 callers
Method
_recover_terminal
Pure: derive a terminal SwarmRun from already-terminal tasks.
agent/src/swarm/store.py:423
↓ 2 callers
Function
_ref_ts_argmax
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:54
↓ 2 callers
Function
_ref_ts_argmin
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:64
↓ 2 callers
Method
_refresh_context_token_if_stale
Return a fresh context_token if the cached one is too old. iLink context_token expires server-side after a short idle period (empiric
agent/src/channels/weixin.py:972
← previous
next →
1,301–1,400 of 8,953, ranked by callers