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
↓ 4 callers
Function
_resolve_console
Return the shared CLI console.
agent/cli/commands/session.py:20
↓ 4 callers
Function
_row
One RPT_LIFT_STOCK-shaped record.
agent/tests/test_lockup_expiry_tool.py:25
↓ 4 callers
Function
_rows_to_frame
Convert Tiingo's per-day records into the normalized OHLCV frame. Args: rows: JSON array decoded from the prices endpoint; each item carr
agent/backtest/loaders/tiingo_loader.py:82
↓ 4 callers
Function
_run
(tmp_path: Path)
agent/tests/test_swarm_error_surfacing.py:31
↓ 4 callers
Function
_run
Run a tool-less worker against the given scripted LLM. Args: monkeypatch: pytest monkeypatch fixture (zeroes the retry sleep). tm
agent/tests/test_swarm_worker_stream_retry.py:100
↓ 4 callers
Function
_run
(rid: str = "r")
agent/tests/test_swarm_store_atomic_write.py:33
↓ 4 callers
Function
_sample_mandate
(expires_at: str, *, flatten_on_halt: bool = False)
agent/tests/test_mandate_model.py:31
↓ 4 callers
Function
_sample_rows
()
agent/tests/test_tiingo_loader.py:71
↓ 4 callers
Function
_save
(data: dict[str, Any])
agent/src/channels/pairing/store.py:60
↓ 4 callers
Method
_save_refs_locked
Persist conversation references (caller must hold _refs_guard).
agent/src/channels/msteams.py:765
↓ 4 callers
Function
_seed_hypothesis
Create a persisted hypothesis in an isolated registry.
agent/tests/test_autopilot_tool.py:20
↓ 4 callers
Function
_seed_job
(job_id: str, **over: Any)
agent/tests/test_alpha_compare_api.py:70
↓ 4 callers
Function
_selected_profile_or
Resolve the selected or explicit trading profile.
agent/cli/_legacy.py:3743
↓ 4 callers
Method
_send_pairing_code_if_private
(self, sender_id: str, message, user)
agent/src/channels/telegram.py:1102
↓ 4 callers
Function
_session_id
(client: TestClient)
agent/tests/test_goal_api.py:22
↓ 4 callers
Method
_session_id
(self, kwargs: dict[str, Any])
agent/src/tools/goal_tool.py:128
↓ 4 callers
Function
_session_store
Return a process-wide :class:`SessionStore` rooted at ``agent/sessions``. Cached on the module so repeat ``_append_message`` / ``_new_session``
agent/cli/main.py:364
↓ 4 callers
Function
_severity
Map a numeric score to low/medium/high given (med_cutoff, high_cutoff).
agent/src/tools/trade_journal_tool.py:168
↓ 4 callers
Function
_should_skip
Return True when *rel_path* falls in a skipped or allowed zone.
tools/ci_env_var_gate.py:221
↓ 4 callers
Function
_simple_data_and_signals
Build minimal data_map and signal_map for alignment tests.
agent/tests/test_base_engine.py:22
↓ 4 callers
Function
_status_style
Return a consistent Rich color for status labels.
agent/cli/_legacy.py:345
↓ 4 callers
Method
_stop_typing
Stop typing indicator updates for a chat.
agent/src/channels/signal.py:1298
↓ 4 callers
Method
_stop_typing
Stop the typing indicator for a chat.
agent/src/channels/telegram.py:1519
↓ 4 callers
Function
_strip_markup
(value: Any)
agent/cli/ui/rail.py:53
↓ 4 callers
Function
_stub_llm_factory
Build a callable that reads as ``ChatLLM(model_name=...)`` would. The worker does ``llm = ChatLLM(model_name=...)`` once per run; we swap tha
agent/tests/test_swarm_m4_e2e.py:147
↓ 4 callers
Function
_task
(*, task_id: str, agent_id: str, prompt: str = "Run the tool.")
agent/tests/test_swarm_m4_e2e.py:185
↓ 4 callers
Function
_terminal_width
Return the active console width with a conservative fallback.
agent/cli/_legacy.py:381
↓ 4 callers
Function
_to_float
Safely cast to float; return default on failure.
agent/src/tools/trade_journal_parsers.py:144
↓ 4 callers
Function
_tool_call_response
( *, call_id: str, tool: str, arguments: dict[str, Any], )
agent/tests/test_swarm_m4_e2e.py:189
↓ 4 callers
Function
_unsupported
Return a standard unsupported-capability payload.
agent/src/trading/service.py:547
↓ 4 callers
Function
_upper_shadow
上影线长度。 Args: o: 开盘价序列。 c: 收盘价序列。 h: 最高价序列。 Returns: 每根K线的上影线长度。
agent/src/skills/candlestick/example_signal_engine.py:48
↓ 4 callers
Function
_utc_now
()
agent/src/hypotheses/registry.py:45
↓ 4 callers
Function
_valid_mandate_state
Build a committed, unexpired active-mandate snapshot for stubbing.
agent/tests/test_api_live_runtime.py:35
↓ 4 callers
Function
_validate_status
(status: str)
agent/src/hypotheses/registry.py:74
↓ 4 callers
Function
_winerr
(code: int)
agent/tests/test_swarm_store_atomic_write.py:27
↓ 4 callers
Function
_wrapped_by_name
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:117
↓ 4 callers
Function
_write_agent_json
Write a minimal AgentConfig JSON file pinning a single MCP server. The server name is used in assertions to verify *which* file the resolver
agent/tests/test_swarm_m3_boot_wiring.py:38
↓ 4 callers
Method
_write_json
(path: Path, data: Dict[str, Any])
agent/src/session/store.py:230
↓ 4 callers
Function
_write_mandate
Write a structurally valid mandate.json under the patched root.
agent/tests/test_cli_live.py:56
↓ 4 callers
Function
_write_mandate
(broker_path: Path, mandate: Mandate)
agent/tests/test_mandate_model.py:59
↓ 4 callers
Function
_write_mandate
(live_runtime: Path, mandate: Mandate)
agent/tests/test_advisory.py:116
↓ 4 callers
Function
_write_mandate
(live_runtime: Path, *, max_order_notional_usd: float = 750.0)
agent/tests/test_enforcement_l6.py:138
↓ 4 callers
Function
allowed_file_roots
Return all roots allowed for document and broker-file reads.
agent/src/tools/path_utils.py:115
↓ 4 callers
Function
allowed_write_roots
Return all roots allowed for file writes and edits.
agent/src/tools/path_utils.py:128
↓ 4 callers
Function
authHeaders
()
frontend/src/lib/apiAuth.ts:16
↓ 4 callers
Function
benford_check
First-digit Benford's-law check on a list of financial values. Args: values: Numeric values to inspect. Returns: Dict with `
agent/src/tools/financial_rigor_tool.py:286
↓ 4 callers
Function
broker_halt_path
Return the path to a per-broker kill-switch sentinel. Args: broker: Broker key, e.g. ``"robinhood"``. Returns: ``<runtime_ro
agent/src/live/halt.py:56
↓ 4 callers
Function
by_exit_reason_stats
Per-exit-reason trade statistics. Args: trades: Completed round-trip trades. Returns: {reason: {count, total_pnl}}.
agent/backtest/metrics.py:128
↓ 4 callers
Function
by_symbol_stats
Per-symbol trade statistics. Args: trades: Completed round-trip trades. Returns: {symbol: {count, win_rate, total_pnl, avg_p
agent/backtest/metrics.py:102
↓ 4 callers
Method
close
(self)
agent/cli/ui/rail.py:312
↓ 4 callers
Function
compute
Return cross-sectional z-scored earnings yield.
agent/src/factors/zoo/fundamental/earnings_yield.py:32
↓ 4 callers
Method
compute
(self, aid: str, panel: dict)
agent/tests/factors/test_bench_strict.py:428
↓ 4 callers
Function
compute_random_ic_series
Mean IC series across ``n_seeds`` row-shuffled random controls. Returns one IC value per date, averaged across **all** ``n_seeds`` seeds on d
agent/src/factors/bench_runner_strict.py:141
↓ 4 callers
Function
config_path
Return the user-level IBKR local config path.
agent/src/trading/connectors/ibkr/local.py:119
↓ 4 callers
Function
default_goal_criteria
Return the default research goal acceptance checklist.
agent/src/goal/context.py:18
↓ 4 callers
Method
disconnect
()
agent/src/channels/mochat.py:424
↓ 4 callers
Function
enrich_price_frames_with_events
Attach a point-in-time-safe ``event_score`` column to price frames. For each bar ``t`` the score aggregates only events whose ``knowable_date``
agent/backtest/loaders/rsshub_events.py:501
↓ 4 callers
Method
execute
Call ``POST /tools/execute`` and hydrate truncated results. Args: tool_id: QVeris tool identifier returned by search.
agent/backtest/loaders/qveris_loader.py:162
↓ 4 callers
Method
find_trace_dir
Find the trace directory for a run/session id. Args: run_id: Run or session ID. runs_dir: Base runs directory. Defaul
agent/src/agent/trace.py:255
↓ 4 callers
Function
format_duration
Render a duration as a short, human-readable string. Args: value: Numeric duration. Treated as milliseconds by default — this
agent/cli/utils/format.py:27
↓ 4 callers
Function
getApiAuthKey
()
frontend/src/lib/apiAuth.ts:3
↓ 4 callers
Method
get_channel
Get a channel by name.
agent/src/channels/manager.py:456
↓ 4 callers
Function
get_runtime_subdir
Return a runtime subdirectory for *name* under the VT data dir.
agent/src/channels/utils.py:28
↓ 4 callers
Method
get_status
Get status of all channels.
agent/src/channels/manager.py:460
↓ 4 callers
Function
halt_path
Return the path to the global kill-switch sentinel. Returns: ``<runtime_root>/live/HALT``. The file is NOT created here; use :fun
agent/src/live/halt.py:46
↓ 4 callers
Function
has_cached_oauth_token
Return whether a cached OAuth token already exists for a live channel. FastMCP's OAuth provider persists tokens through the same :func:`~src.
agent/src/live/registry.py:106
↓ 4 callers
Function
has_qveris_credentials
Return whether a QVeris API key is saved or provided.
agent/src/tools/qveris_tool.py:132
↓ 4 callers
Method
index_message
Index a single message. Args: session_id: Session ID. role: Message role (user/assistant/tool). content:
agent/src/session/search.py:167
↓ 4 callers
Method
index_session
Upsert a session record. Args: session_id: Session ID. title: Session title. ts: Session start time as a
agent/src/session/search.py:134
↓ 4 callers
Function
inspect_channels
Inspect all built-in channels and annotate configured/enabled state. Args: config: Optional channels config map or model. Extra keys are
agent/src/channels/registry.py:193
↓ 4 callers
Method
interval_ms
Return the recurrence interval in ms, or ``None`` for one-shot jobs. Returns: The interval for an ``"interval:<ms>"`` schedule, `
agent/src/live/runtime/scheduler.py:78
↓ 4 callers
Function
is_due
Return whether *job* should fire at ``now_ms``. Cancelled and failed jobs are terminal and never re-dispatched; a failed job in particular ke
agent/src/scheduled_research/executor.py:54
↓ 4 callers
Function
is_paper_account
Return whether an account number is a Tiger paper account (17 digits).
agent/src/trading/connectors/tiger/sdk.py:56
↓ 4 callers
Method
list_entries
Return all persisted memory entries, filename-sorted.
agent/src/memory/persistent.py:205
↓ 4 callers
Function
list_profiles
Return built-in trading connector profiles.
agent/src/trading/profiles.py:45
↓ 4 callers
Function
live_broker_key_for_entry
Resolve the canonical broker key for a config entry. Args: server_key: The MCP server key from config. server: The server config
agent/src/config/schema.py:109
↓ 4 callers
Function
live_broker_key_for_url
Resolve a live broker key from an MCP server URL host. Args: url: The MCP server ``url`` from config. Returns: The canonical
agent/src/config/schema.py:90
↓ 4 callers
Function
loadChartSymbol
(symbol: string)
frontend/src/pages/RunDetail.tsx:168
↓ 4 callers
Function
load_channels_config
Load the operator IM channel config from the structured agent config. Args: config_path: Optional explicit config path. Returns:
agent/src/channels/config.py:11
↓ 4 callers
Function
load_json_file
Load a JSON file if it exists. Args: path: JSON file path. Returns: The decoded object when the file exists and is valid JSO
agent/src/ui_services.py:48
↓ 4 callers
Function
load_run_context
Load normalized request context for a run detail page. Falls back to planner_output.json when req.json context is empty (common in session mo
agent/src/ui_services.py:100
↓ 4 callers
Function
localizeToolName
(tool: string, fallback?: string)
frontend/src/lib/tools.ts:27
↓ 4 callers
Function
navigate
(path)
wiki/docs/main.js:164
↓ 4 callers
Function
normalize_symbol
Normalize a symbol to ccxt unified ``BASE/QUOTE`` format. Accepts ``BTC/USDT`` (passed through, uppercased), ``BTC-USDT`` (hyphen rewritten t
agent/src/trading/connectors/binance/sdk.py:59
↓ 4 callers
Function
on_progress
(n_done: int, n_total: int, aid: str)
agent/src/factors/cli_handlers.py:415
↓ 4 callers
Function
pick_thinking_verb
Pick a random verb suffixed with an ellipsis. Args: seed: Optional deterministic seed (used by tests). When ``None`` the modu
agent/cli/utils/thinking_verbs.py:24
↓ 4 callers
Function
positive_env_float
Read a positive float env var, warning and falling back on invalid values.
agent/backtest/loaders/base.py:128
↓ 4 callers
Method
read_events
Read the event log with optional offset for SSE incremental streaming. Args: run_id: Run identifier. after_index: Ski
agent/src/swarm/store.py:262
↓ 4 callers
Method
register
Register a tool.
agent/src/agent/tools.py:60
↓ 4 callers
Function
render_hint_bar
Return a Rich :class:`Text` row with ``left`` and right-aligned ``right``. The bar always fits the terminal width: * If ``left + right``
agent/cli/components/hint_bar.py:27
↓ 4 callers
Function
render_shadow_report
Render the full Shadow Account report. Returns: Dict with keys: ``html_path`` : rendered HTML (always present) `
agent/src/shadow_account/reporter.py:56
↓ 4 callers
Function
run_options_backtest
Options backtest entry point. Day-by-day simulation: 1. Read underlying price for the current day 2. Mark all open option positions to ma
agent/backtest/engines/options_portfolio.py:225
↓ 4 callers
Function
run_preflight
Run all preflight checks and print results. Args: console: Rich console for output. Creates one if not provided. Returns: Li
agent/src/preflight.py:260
↓ 4 callers
Function
run_validation
Run configured validation checks. Reads from config["validation"]: - monte_carlo: {n_simulations, seed} - bootstrap: {n_bootstrap, co
agent/backtest/validation.py:237
↓ 4 callers
Function
runner_tool_name
Map a runner operation to a connector-specific remote MCP tool name.
agent/src/trading/service.py:403
↓ 4 callers
Function
runtime_dir
Return the runtime state directory (``live_root()/runtime``). Returns: The directory path. Not created here; :meth:`JobStore.save` create
agent/src/live/runtime/jobstore.py:66
↓ 4 callers
Function
safe_run_id
Resolve a bare run id to an existing allowed run directory. Args: run_id: Bare run directory name, not a path. Returns: Exis
agent/src/tools/path_utils.py:339
↓ 4 callers
Function
sample_points
Draw a random sample, clamped to [3, 30], ordered by line number. Args: points: Data points returned by :func:`extract_data_points`.
agent/src/tools/report_audit_tool.py:190
↓ 4 callers
Function
save_profile
Persist a ShadowProfile to disk as JSON.
agent/src/shadow_account/storage.py:66
↓ 4 callers
Function
save_proposal
Persist a synthesized proposal so a later commit can re-validate it. Called by the read-only ``propose_mandate_profiles`` tool. Writing a pro
agent/src/live/mandate/commit.py:173
← previous
next →
701–800 of 8,953, ranked by callers