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
↓ 2 callers
Method
_update_frontmatter_field
Update a single frontmatter field in a memory file. Uses an atomic write-then-rename strategy to prevent file corruption if the proce
agent/src/memory/lifecycle.py:429
↓ 2 callers
Function
_us_match
Find fund share classes by exact ticker, then by name substring. A theme query such as "semiconductor" matches far more mutual fund share cla
agent/src/tools/etf_holdings_tool.py:487
↓ 2 callers
Function
_us_series_index
Return ``(index_year, records)`` for the SEC series/class index, memoized. Returns: The calendar year of the file actually used and its p
agent/src/tools/etf_holdings_tool.py:414
↓ 2 callers
Function
_us_symbols
(count: int)
agent/tests/api/test_positions_sectors.py:416
↓ 2 callers
Method
_use_responses_api
Route a model whose chat endpoint refused tools to /v1/responses.
agent/src/providers/llm.py:591
↓ 2 callers
Function
_user_agent
Return the compliant contact UA, honoring the ``VIBE_TRADING_SEC_UA`` override.
agent/backtest/loaders/sec_edgar_client.py:71
↓ 2 callers
Function
_uses_immediate_intrinsic
Report whether pricing must use immediate intrinsic value. Args: S: Underlying spot price. K: Strike price. T: Time to ex
agent/src/quantlib/options.py:183
↓ 2 callers
Function
_utc_now
()
agent/src/pixel_agents/office.py:23
↓ 2 callers
Function
_utc_timestamp
(value: pd.Timestamp, name: str)
agent/backtest/binance_shadow_evidence.py:243
↓ 2 callers
Function
_utc_today
Return today's UTC calendar date as ``YYYY-MM-DD``.
agent/src/live/daily_count.py:47
↓ 2 callers
Function
_utf16_offset_to_index
Convert a Signal BodyRange UTF-16 code-unit offset to a Python (code-point) string index. Any character outside the Basic Multilingual Plane
agent/src/channels/signal.py:68
↓ 2 callers
Function
_validate_deals
Check a deal-by-deal input before any arithmetic touches it. Args: deals: Deal-id -> that deal's own cash flows. Returns: Th
agent/src/quantlib/fundmath.py:1890
↓ 2 callers
Function
_validate_function_def
Reject import-time execution in function definitions.
agent/backtest/runner.py:287
↓ 2 callers
Function
_validate_grid
Return a validated one-dimensional numeric grid.
agent/backtest/options_payoff.py:127
↓ 2 callers
Function
_validate_id_token
(token: str, kind: str)
agent/src/factors/registry.py:146
↓ 2 callers
Function
_validate_legs
Validate option-leg fields at the calculation boundary.
agent/backtest/options_payoff.py:77
↓ 2 callers
Function
_validate_market_inputs
Validate common market and cost inputs.
agent/backtest/options_payoff.py:94
↓ 2 callers
Function
_validate_number
(value: Any, name: str, *, non_negative: bool = False)
agent/backtest/binance_shadow_evidence.py:361
↓ 2 callers
Function
_validate_optional_journal_path
Validate a journal_path kwarg that may be missing/empty. Returns the resolved path string, or None when the caller didn't pass one. Raises Va
agent/src/tools/shadow_account_tool.py:66
↓ 2 callers
Method
_validate_remote_media_url
(self, media_ref: str)
agent/src/channels/dingtalk.py:348
↓ 2 callers
Function
_validate_row_for_write
Reject rows containing NaN/Inf or otherwise unwritable values.
agent/src/strategy_discovery/evidence_store.py:142
↓ 2 callers
Function
_validate_signal_engine_source
Reject import-time executable statements before loading signal_engine.py.
agent/backtest/runner.py:791
↓ 2 callers
Method
_validate_strict_resolution
(self, config: dict[str, Any])
agent/backtest/engines/crypto.py:115
↓ 2 callers
Function
_validate_weights
Check that a pair of capital-structure weights is usable. Args: equity_weight: Proposed ``E / (D + E)``. debt_weight: Proposed ``
agent/src/quantlib/valuation/dcf.py:282
↓ 2 callers
Function
_validation_fields
Return error field locations from a ValidationError (never values).
agent/src/api/channels_config_routes.py:308
↓ 2 callers
Function
_venue_currency
Return the one currency a symbol's venue pool accepts, or None if unconstrained.
agent/backtest/loaders/base.py:47
↓ 2 callers
Function
_visual_line
Shape Arabic and apply the Unicode bidi algorithm to one logical line.
agent/src/tools/pdf_report.py:40
↓ 2 callers
Method
_vol_adjust
(self, signals: dict, data_map: dict)
agent/src/skills/cross-market-strategy/example_signal_engine.py:64
↓ 2 callers
Function
_volume_through
(window: int)
agent/tests/factors/test_qlib158_regression.py:68
↓ 2 callers
Function
_wait_for_id
Drain *q* until a JSON-RPC response with matching ``id`` arrives. Returns ``(response_dict, elapsed_seconds)`` on success, or ``(None, "TIMEO
agent/tests/test_mcp_server_smoke.py:84
↓ 2 callers
Function
_wait_for_registered_process
( manager: BackgroundManager, task_id: str, timeout: float = 5.0, )
agent/tests/test_background_tools.py:239
↓ 2 callers
Function
_warn_fsync_failure
Log the first fsync failure for this process, then stay quiet. Mirrors ``src.agent.trace.TraceWriter._warn_fsync_failure``: on an unsupported
agent/src/governance/ledger.py:105
↓ 2 callers
Method
_warning
(self, monkeypatch, caplog)
agent/tests/test_stooq_loader.py:343
↓ 2 callers
Function
_watch_swarm_run
Keep the CLI alive while a swarm run streams to its dashboard.
agent/cli/_legacy.py:2325
↓ 2 callers
Method
_weighted_holding_bars
Derive compressed-position age from immutable fill evidence. Reductions consume every accumulated opening delta proportionally, match
agent/backtest/engines/base.py:2294
↓ 2 callers
Function
_weights
(values: np.ndarray)
agent/src/quantlib/neutralization.py:84
↓ 2 callers
Function
_wide_block
Declare the wide ledger's two endpoints and one derived figure.
agent/tests/test_grounding_release.py:990
↓ 2 callers
Function
_with_close_panel
Attach the close panel BaseEngine pre-extracts for a run.
agent/tests/test_korea_equity_engine.py:45
↓ 2 callers
Function
_worker_background
Return the canonical background handle for a worker.
agent/src/swarm/worker.py:603
↓ 2 callers
Function
_worker_retry_budget_s
Return the maximum cumulative backoff included in a task deadline.
agent/src/swarm/runtime.py:156
↓ 2 callers
Function
_worker_retry_delay_ceiling_s
Return the capped exponential ceiling for a one-based retry number.
agent/src/swarm/runtime.py:134
↓ 2 callers
Method
_write
(self, payload: dict[str, Any])
agent/src/providers/custom_profiles.py:111
↓ 2 callers
Function
_write_action
(path: Path, action: PendingAction)
agent/src/live/pending_action.py:341
↓ 2 callers
Function
_write_atomic
(path: Path, document: dict[str, Any])
agent/tests/fixtures/paper_trade/record_market_fixtures.py:273
↓ 2 callers
Function
_write_flow_file
Write a two-row broker-style cash-flow CSV. Args: tmp_path: pytest temporary directory. Returns: Path to the written file.
agent/tests/test_cashflow_analytics_tool.py:34
↓ 2 callers
Function
_write_legacy_fixture
Legacy one-row-per-trade artifacts: date/benchmark aliases, no marker.
agent/tests/test_strategy_discovery_harness.py:344
↓ 2 callers
Function
_write_llm_usage
Stamp and atomically persist the usage summary; a write failure is logged.
agent/src/agent/llm_usage.py:136
↓ 2 callers
Function
_write_ohlcv
(path: Path)
agent/tests/test_pattern_tool.py:261
↓ 2 callers
Function
_write_original
Save immutable content inside the workspace, or refuse a changed path.
agent/src/agent/result_artifacts.py:16
↓ 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:680
↓ 2 callers
Method
_written_symbol
The instrument the answer's own text attaches a figure to, if one. The table row's symbol column, then the figure's punctuation segment,
agent/src/agent/grounding/policies.py:793
↓ 2 callers
Function
_zh_texts
Chinese note and nickname for one alpha, or None where stale / missing. Args: alpha: One manifest alpha entry. Returns: ``{"
wiki/scripts/build_alpha_library.py:336
↓ 2 callers
Function
abbreviate_num
Abbreviate a number with magnitude suffix. Use this for status-bar numbers where horizontal space is scarce. Currency amounts under ``$1`` ke
agent/cli/utils/format.py:110
↓ 2 callers
Function
account_response
Count each attempt, retaining cache fields and estimated provenance.
agent/src/swarm/worker.py:745
↓ 2 callers
Method
account_usage
(self, **_kwargs)
agent/tests/test_grounding_release.py:889
↓ 2 callers
Function
acquireVerifiedArchive
({ target, expected, download, attempts = DOWNLOAD_ATTEMPTS, timeoutMs = DOWNLOAD_TIMEOUT_MS, slee
desktop/electron/scripts/prepare-electron.mjs:79
↓ 2 callers
Function
activate_custom_provider
Activate tested vault metadata through the canonical settings writer. Secrets remain in the vault. The runtime resolves model, URL and key from
agent/src/api/settings_routes.py:583
↓ 2 callers
Function
active_provider_credentials
()
agent/src/providers/custom_profiles.py:119
↓ 2 callers
Method
after_position_adjustment
Allow engines to update risk state/evidence after a committed delta fill.
agent/backtest/engines/base.py:797
↓ 2 callers
Function
aggregateWeights
( weights: Record<string, number>, grouping: (symbol: string) => string, )
frontend/src/lib/positions.ts:160
↓ 2 callers
Function
aggregate_portfolio_path
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/client.py:241
↓ 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:179
↓ 2 callers
Function
applyMessage
(result: ChannelPutResult)
frontend/src/components/settings/ChannelConfigPanel.tsx:421
↓ 2 callers
Method
apply_slippage
Apply market slippage and Canada's official price-increment grid.
agent/backtest/engines/global_equity.py:210
↓ 2 callers
Method
apply_slippage
(self, price, direction)
agent/tests/test_terminal_close_accounting.py:24
↓ 2 callers
Function
argentina_can_execute
Long only, a traded bar, and CEDEAR credit protection for a sale.
agent/backtest/engines/argentina_equity.py:669
↓ 2 callers
Method
as_langchain_tool_call
(self)
agent/src/providers/openai_codex.py:216
↓ 2 callers
Function
assertSha256
(value: unknown, label: string)
desktop/electron/src/update-recovery.ts:212
↓ 2 callers
Function
assetClassLabel
(assetClass: AssetClass)
frontend/src/components/run/PositionsTab.tsx:137
↓ 2 callers
Function
attach
(raw_tool_call: Any, index: int)
agent/src/agent/context_compact.py:487
↓ 2 callers
Method
band_rejection
``limit_up``/``limit_down`` at the close-fill price, else None. cn_a only (§4: hk/us have no bands; us circuit breakers are NOT simul
agent/src/tools/paper_trade/rules.py:194
↓ 2 callers
Function
barStyle
(start: number, end: number, min: number, max: number)
frontend/src/components/charts/ValidationPanel.tsx:206
↓ 2 callers
Method
bars
(self, symbol: str, frequency: int, start: int = 0, offset: int = 800)
agent/tests/test_mootdx_loader.py:67
↓ 2 callers
Function
bidAskSpreadPct
(bid: number | null, ask: number | null)
frontend/src/lib/options.ts:384
↓ 2 callers
Function
bindDocLinks
(lang, root = document)
wiki/docs/main.js:193
↓ 2 callers
Method
bind_tools
Return a copy that offers *tools* to the model. Args: tools: Tool definitions in OpenAI function format. Returns:
agent/src/providers/claude_cli.py:520
↓ 2 callers
Function
broad_python_kill_error
Return an error when a shell command broadly kills Python by name. Args: command: Shell source submitted to a shell-capable tool. Re
agent/src/tools/_shell_safety.py:38
↓ 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:270
↓ 2 callers
Function
build
(page: list[Any], paging: dict[str, Any])
agent/src/tools/etf_holdings_tool.py:1288
↓ 2 callers
Function
buildPatch
()
frontend/src/components/settings/ChannelConfigPanel.tsx:386
↓ 2 callers
Function
buildSwarmStatusFromRunDetail
( payload: Record<string, unknown>, runId: string, )
frontend/src/lib/swarmStatus.ts:494
↓ 2 callers
Function
buildToolTimelineMessages
( entries: readonly ToolTimelineEntry[], options: ToolTimelineOptions = {}, )
frontend/src/pages/agentToolTimeline.ts:31
↓ 2 callers
Function
build_config
Resolve profile settings and approved overrides, without a secret file.
agent/src/trading/connectors/mstock/sdk.py:44
↓ 2 callers
Function
build_day_plan
( market: str, from_date: str, to_date: str, market_data: data.MarketDataResult, calendar_
agent/src/tools/paper_trade/engine.py:105
↓ 2 callers
Function
build_indicator_series
Compute moving-average overlays from normalized price rows. Args: price_rows: Flat list of normalized OHLC rows. periods: Moving-
agent/src/ui_services.py:309
↓ 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:286
↓ 2 callers
Function
bull_call_spread
Build a long lower-strike/short upper-strike call spread.
agent/backtest/options_payoff.py:460
↓ 2 callers
Method
buy_cost
Settled buy cost = 2dp notional + fee (§4 cash gate: qty×price+fee ≤ cash).
agent/src/tools/paper_trade/rules.py:188
↓ 2 callers
Function
cacheFromRun
(run: RunData | null, requestedSymbol?: string)
frontend/src/pages/RunDetail.tsx:101
↓ 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
B3 fees (bilateral) plus the configured broker commission.
agent/backtest/engines/brazil_equity.py:75
↓ 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:481
↓ 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:635
↓ 2 callers
Function
canonical_comparison
Return the canonical operator spelling for *op*, or ``None``. Args: op: An operator as written in a rule condition. Returns:
agent/src/shadow_account/models.py:46
↓ 2 callers
Function
check
(ref)
agent/tests/test_gildata_fin_query.py:143
↓ 2 callers
Method
check_available
(cls)
agent/src/tools/gildata_fin_query_tool.py:125
↓ 2 callers
Function
check_frame
Validate normalized OHLCV and return safe diagnostic metadata. Args: frame: A single source's candidate DataFrame. today: UTC dat
agent/backtest/loader_health.py:147
← previous
next →
4,601–4,700 of 26,887, ranked by callers