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
_write_ohlcv
(path: Path)
agent/tests/test_pattern_tool.py:241
↓ 2 callers
Function
_write_proposal_to_disk
Persist a full mandate.proposal exactly as ``propose_mandate_profiles`` does. The propose tool writes ``<runtime_root>/live/<broker>/proposals/<i
agent/tests/test_cli_live.py:572
↓ 2 callers
Function
alpha_series_paired
Per-date paired alpha = signal_IC - random_IC, on the common index.
agent/src/factors/bench_runner_strict.py:177
↓ 2 callers
Function
applySwarmEvent
(current: SwarmRunStatus, rawEvent: unknown, now = Date.now())
frontend/src/lib/swarmStatus.ts:131
↓ 2 callers
Function
asNumber
(value: unknown)
frontend/src/lib/swarmStatus.ts:17
↓ 2 callers
Function
attachStream
(newJobId: string)
frontend/src/pages/AlphaZoo.tsx:710
↓ 2 callers
Function
audit_ledger_path
Return the path to the dedicated live-action ledger. Returns: ``<runtime_root>/live/audit.jsonl``. The file/parent is NOT created here;
agent/src/live/audit.py:96
↓ 2 callers
Function
authQuerySuffix
()
frontend/src/lib/apiAuth.ts:21
↓ 2 callers
Function
barStyle
(start: number, end: number, min: number, max: number)
frontend/src/components/charts/ValidationPanel.tsx:155
↓ 2 callers
Method
bars
(self, symbol: str, frequency: int, start: int = 0, offset: int = 800)
agent/tests/test_mootdx_loader.py:65
↓ 2 callers
Function
bindDocLinks
(root = document)
wiki/docs/main.js:170
↓ 2 callers
Function
broadening
Detect broadening (megaphone) patterns. Args: close: Closing price series. window: Detection window size. Returns: S
agent/src/tools/pattern_tool.py:256
↓ 2 callers
Function
broker_supports_live_runner
Return whether any configured profile exposes live runner management.
agent/src/trading/service.py:383
↓ 2 callers
Function
buildSwarmStatusFromStarted
(data: AnyRecord, now = Date.now())
frontend/src/lib/swarmStatus.ts:86
↓ 2 callers
Function
buildSwarmStatusFromToolResultPreview
(preview: string, now = Date.now())
frontend/src/lib/swarmStatus.ts:254
↓ 2 callers
Function
build_filtered_registry
Build a ToolRegistry with only specified tools. Local-tools-only filtered builder. Swarm workers should call :func:`build_swarm_registry` ins
agent/src/tools/__init__.py:248
↓ 2 callers
Function
build_gateway_services
Build a gateway service bundle from optional overrides.
agent/src/channelsui/gateway_services.py:275
↓ 2 callers
Function
build_run_from_preset
Create a SwarmRun from a preset with user variables applied. Steps: 1. Load preset YAML 2. Create SwarmAgentSpec list from agents
agent/src/swarm/presets.py:214
↓ 2 callers
Function
cacheFromRun
(run: RunData | null, requestedSymbol?: string)
frontend/src/pages/RunDetail.tsx:70
↓ 2 callers
Function
calcBOLL
(data: number[], period = 20, mult = 2)
frontend/src/lib/indicators.ts:32
↓ 2 callers
Function
calcKDJ
(highs: number[], lows: number[], closes: number[], period = 9)
frontend/src/lib/indicators.ts:91
↓ 2 callers
Function
calcMACD
(data: number[], fast = 12, slow = 26, sig = 9)
frontend/src/lib/indicators.ts:47
↓ 2 callers
Function
calcRSI
(data: number[], period = 14)
frontend/src/lib/indicators.ts:71
↓ 2 callers
Method
calc_commission
Calculate commission for a trade. Args: size: Trade size. price: Execution price. direction: 1 or -1.
agent/backtest/engines/base.py:306
↓ 2 callers
Function
calc_crypto_funding_fee
Calculate crypto funding fee for one symbol. Args: symbol: Instrument code. bar: Current bar data. timestamp: Bar timesta
agent/backtest/engines/_market_hooks.py:151
↓ 2 callers
Function
calc_forex_swap
Calculate forex swap for one symbol. Args: symbol: Forex pair. timestamp: Bar timestamp. positions: Shared positions dict
agent/backtest/engines/_market_hooks.py:253
↓ 2 callers
Method
call_tool
Call one remote MCP tool and normalize its result. Args: remote_name: Remote tool identifier. arguments: Tool argumen
agent/src/tools/mcp.py:381
↓ 2 callers
Method
chat
Call the LLM synchronously. Args: messages: Message list (OpenAI format). tools: Tool definition list (OpenAI functio
agent/src/providers/chat.py:233
↓ 2 callers
Function
check_connection
Check a connector profile without mutating broker state.
agent/src/trading/service.py:39
↓ 2 callers
Function
check_crypto_liquidation
Check if a crypto position should be liquidated. Args: symbol: Instrument code. bar: Current bar data. positions: Shared
agent/backtest/engines/_market_hooks.py:200
↓ 2 callers
Function
cjk_font_path
Resolve a CJK font file path. Resolution order: 1. Cached copy in ``fonts_dir()``. 2. First available system font from ``_system_
agent/src/shadow_account/fonts.py:57
↓ 2 callers
Function
cmd_code
Show generated code.
agent/cli/_legacy.py:2303
↓ 2 callers
Function
cmd_connector_resume
Clear the halt switch for a live remote MCP connector profile.
agent/cli/_legacy.py:4236
↓ 2 callers
Function
cmd_continue
Continue an existing run.
agent/cli/_legacy.py:1462
↓ 2 callers
Function
cmd_journal
Queue an "analyze my trade journal at <path>" agent turn. With a path: ``/journal trades.csv`` becomes the prompt ``Analyze my trade journal
agent/cli/commands/chat.py:116
↓ 2 callers
Function
cmd_list
List run history.
agent/cli/_legacy.py:2228
↓ 2 callers
Function
cmd_live_mandate
Print the committed mandate for a broker (read-only). Args: broker: Broker key. ``None`` uses the default broker (``robinhood``). Re
agent/cli/_legacy.py:3472
↓ 2 callers
Function
cmd_live_stop
Stop the persistent live runner (SPEC §7.5). Relays a stop request to ``POST /live/runner/stop``. Stopping the runner halts autonomous activi
agent/cli/_legacy.py:3635
↓ 2 callers
Function
cmd_memory_forget
Remove a memory entry by name.
agent/cli/_legacy.py:4916
↓ 2 callers
Function
cmd_memory_list
List persisted memory entries.
agent/cli/_legacy.py:4829
↓ 2 callers
Function
cmd_memory_search
Run keyword recall and display the top matches.
agent/cli/_legacy.py:4887
↓ 2 callers
Function
cmd_memory_show
Show full content of a single memory entry.
agent/cli/_legacy.py:4865
↓ 2 callers
Function
cmd_pine
Show Pine Script for a run.
agent/cli/_legacy.py:2317
↓ 2 callers
Function
cmd_shadow
Queue a Shadow Account agent turn. ``/shadow`` opens / inspects the shadow account. ``/shadow <path>`` trains a new shadow from a trade journ
agent/cli/commands/chat.py:147
↓ 2 callers
Function
cmd_show
Show run details.
agent/cli/_legacy.py:2264
↓ 2 callers
Function
cmd_swarm_cancel
Cancel a swarm run.
agent/cli/_legacy.py:2614
↓ 2 callers
Function
cmd_swarm_inspect
Inspect a swarm preset without starting workers.
agent/cli/_legacy.py:2455
↓ 2 callers
Function
cmd_swarm_list
List swarm run history.
agent/cli/_legacy.py:2527
↓ 2 callers
Function
cmd_swarm_presets
List available swarm presets.
agent/cli/_legacy.py:2417
↓ 2 callers
Function
cmd_swarm_show
Show swarm run details.
agent/cli/_legacy.py:2563
↓ 2 callers
Function
cmd_trace
Replay trace.jsonl to show full execution.
agent/cli/_legacy.py:2345
↓ 2 callers
Function
compute_content_filter_warnings
Compute content-filter warnings based on the hit ratio. Args: content_filter_count: Number of LLM responses blocked by content
agent/src/providers/content_filter.py:75
↓ 2 callers
Function
compute_hv
计算年化历史波动率。 Args: close: 收盘价序列。 window: 波动率计算窗口。 annualize: 年化系数(A股252,加密365)。 Returns: 年化历史波动率序列。
agent/src/skills/volatility/example_signal_engine.py:13
↓ 2 callers
Function
compute_hv_percentile
计算 HV 的滚动百分位排名。 Args: hv: 历史波动率序列。 lookback: 百分位排名回看期。 Returns: 百分位值(0-100)。
agent/src/skills/volatility/example_signal_engine.py:28
↓ 2 callers
Method
compute_signal
Compose the requested alphas into a single signal panel. Args: panel: Wide panel dict with at minimum ``panel["close"]`` -- index
agent/src/skills/multi-factor/zoo_signal_engine.py:146
↓ 2 callers
Function
config_path
Return the trading connector config path.
agent/src/trading/profiles.py:40
↓ 2 callers
Function
config_path
Return the user-level Binance config path.
agent/src/trading/connectors/binance/sdk.py:180
↓ 2 callers
Function
config_path
()
agent/src/trading/connectors/dhan/sdk.py:149
↓ 2 callers
Function
config_path
Return the user-level Trading 212 config path.
agent/src/trading/connectors/trading212/sdk.py:134
↓ 2 callers
Function
config_path
()
agent/src/trading/connectors/shoonya/sdk.py:136
↓ 2 callers
Function
config_path
Return the user-level Tiger config path.
agent/src/trading/connectors/tiger/sdk.py:149
↓ 2 callers
Function
config_path
Return the user-level Longbridge config path.
agent/src/trading/connectors/longbridge/sdk.py:150
↓ 2 callers
Function
config_path
Return the user-level Alpaca config path.
agent/src/trading/connectors/alpaca/sdk.py:133
↓ 2 callers
Function
config_path
Return the user-level Futu config path.
agent/src/trading/connectors/futu/sdk.py:186
↓ 2 callers
Function
config_path
Return the user-level OKX config path.
agent/src/trading/connectors/okx/sdk.py:149
↓ 2 callers
Method
consume_outbound
Consume the next outbound message (blocks until available).
agent/src/channels/bus/queue.py:31
↓ 2 callers
Function
criterionEvidenceCount
(snapshot: GoalSnapshot, criterionId: string)
frontend/src/pages/Agent.tsx:175
↓ 2 callers
Function
criterion_is_covered
Return whether a criterion is already covered by status or evidence.
agent/src/goal/context.py:66
↓ 2 callers
Function
default_hypotheses_path
Return the configured hypotheses JSON path. Returns: Env override path when ``VIBE_TRADING_HYPOTHESES_PATH`` is set, otherwise ``
agent/src/hypotheses/registry.py:32
↓ 2 callers
Method
delete_session_goals
Delete all goal ledger rows for a session. Args: session_id: Session whose goal ledger should be removed. Returns:
agent/src/goal/store.py:548
↓ 2 callers
Function
detect_format
Detect broker format by column-name signature. Args: df: Raw DataFrame from load_dataframe. Returns: Format identifier; "unk
agent/src/tools/trade_journal_parsers.py:94
↓ 2 callers
Function
discover_plugins
Discover external channel plugins registered via entry_points.
agent/src/channels/registry.py:223
↓ 2 callers
Function
due_jobs
Return jobs whose ``next_run_at`` is at or before ``now_ms``. Args: jobs: The current job set. now_ms: The reference time in epoc
agent/src/live/runtime/scheduler.py:115
↓ 2 callers
Function
dw
(s: str)
agent/src/channels/signal.py:78
↓ 2 callers
Function
dw
(s: str)
agent/src/channels/telegram.py:169
↓ 2 callers
Function
earliest_next_run
Return the smallest ``next_run_at`` across ``jobs``. Args: jobs: The current job set. Returns: The earliest scheduled fire t
agent/src/live/runtime/scheduler.py:100
↓ 2 callers
Function
enrich_price_frames_with_fundamentals
Attach PIT-safe fundamental snapshots to daily price frames. Fundamental columns are prefixed with their table name, for example ``income_tot
agent/backtest/loaders/tushare_fundamentals.py:214
↓ 2 callers
Function
errorFromResponse
(res: Response)
frontend/src/lib/api.ts:22
↓ 2 callers
Function
escapeCsvField
(value: unknown)
frontend/src/pages/RunDetail.tsx:48
↓ 2 callers
Method
event
Build an event trigger driven by a pure predicate. Args: predicate: A callable taking the runner-supplied event-state mapping
agent/src/live/runtime/triggers.py:195
↓ 2 callers
Method
execute
Call ``POST /tools/execute`` and hydrate truncated results.
agent/src/tools/qveris_tool.py:288
↓ 2 callers
Method
execute
(self, **kwargs: Any)
agent/src/tools/shadow_account_tool.py:88
↓ 2 callers
Method
export_manifest
Return a JSON-serialisable snapshot for wiki rendering.
agent/src/factors/registry.py:399
↓ 2 callers
Method
fetch_ohlcv
(self, symbol, timeframe, since=None, limit=None)
agent/tests/test_ccxt_loader_bounded.py:42
↓ 2 callers
Function
fmt
(v: unknown, type: "pct" | "num" | "int" | "days" = "num")
frontend/src/pages/Compare.tsx:19
↓ 2 callers
Function
fmtNum
(v: unknown, digits = 3)
frontend/src/pages/AlphaZoo.tsx:102
↓ 2 callers
Function
formatLeverage
(leverage: MandateProfile["leverage"])
frontend/src/components/chat/MandateProposalCard.tsx:30
↓ 2 callers
Function
formatRunCardValue
(value: unknown)
frontend/src/pages/RunDetail.tsx:453
↓ 2 callers
Function
formatTimestamp
(ts: number)
frontend/src/lib/formatters.ts:85
↓ 2 callers
Function
formatUniverse
(universe: MandateProfile["universe"])
frontend/src/components/chat/MandateProposalCard.tsx:38
↓ 2 callers
Function
formatUsd
(value: number)
frontend/src/components/chat/MandateProposalCard.tsx:25
↓ 2 callers
Function
format_mcp_server_name_collision_warning
Build operator-facing warning text for sanitized server-name collisions. Args: server_name: Raw MCP server name from config. loca
agent/src/tools/mcp.py:164
↓ 2 callers
Function
format_robinhood_mcp_config_guidance
Build operator-facing guidance for enabling Robinhood MCP safely.
agent/src/config/schema.py:284
↓ 2 callers
Function
format_robinhood_mcp_server_seed_json
Format the canonical Robinhood read-only ``mcpServers`` seed as JSON.
agent/src/config/schema.py:279
↓ 2 callers
Method
from_mapping
Build a config from a JSON-like mapping. Args: data: Mapping with any subset of config fields. Returns: A no
agent/src/trading/connectors/ibkr/local.py:69
↓ 2 callers
Function
getMetricLabel
(k: string)
frontend/src/lib/formatters.ts:43
↓ 2 callers
Function
get_account
Read account summary for a connector profile.
agent/src/trading/service.py:65
↓ 2 callers
Function
get_account_snapshot
Fetch account codes and account summary values.
agent/src/trading/connectors/ibkr/local.py:239
↓ 2 callers
Method
get_definitions
Return all tools in OpenAI function calling format.
agent/src/agent/tools.py:68
↓ 2 callers
Function
get_history
Read historical bars for a connector profile. ``duration``/``bar_size``/``what_to_show``/``use_rth`` are the IBKR (``local_tws``) vocabulary.
agent/src/trading/service.py:147
← previous
next →
1,501–1,600 of 8,953, ranked by callers