Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 5 callers
Method
_send_typing
Best-effort sendtyping wrapper.
agent/src/channels/weixin.py:1067
↓ 5 callers
Method
_sender_id
Build sender_id with username for allowlist matching.
agent/src/channels/telegram.py:1162
↓ 5 callers
Function
_session_id
Return the active CLI session id, optionally creating one.
agent/cli/commands/goal.py:74
↓ 5 callers
Method
_session_id
(self, kwargs: dict[str, Any])
agent/src/tools/goal_tool.py:138
↓ 5 callers
Function
_set_environment
(monkeypatch: pytest.MonkeyPatch, values: dict[str, str])
agent/tests/test_longbridge_credentials.py:30
↓ 5 callers
Method
_setup_mocks
(self, monkeypatch, n_alphas=5)
agent/tests/test_bench_parallel.py:72
↓ 5 callers
Method
_should_suppress_outbound
(self, msg: OutboundMessage)
agent/src/channels/manager.py:436
↓ 5 callers
Function
_shuffle_within_rows
Cross-sectionally permute finite values within each row. This preserves the per-date cross-sectional distribution of the factor while destroy
agent/src/factors/bench_runner_strict.py:108
↓ 5 callers
Method
_stop_typing
Stop typing indicator for a channel.
agent/src/channels/discord.py:822
↓ 5 callers
Function
_stopped_turn
(log: ThreadLog, end: str | None)
agent/tests/test_session_thread_replay.py:218
↓ 5 callers
Function
_store
(tmp_path)
agent/tests/test_swarm_events_partial_tail.py:11
↓ 5 callers
Function
_strategy_discovery_execute
Delegate to a strategy-discovery agent tool with an honest error envelope. Registry or facade failures never propagate to the MCP client as a bar
agent/mcp_server.py:1613
↓ 5 callers
Function
_strip_jsonp
Extract the JSON array embedded in Sina's JSONP wrapper. Args: raw: Raw response body, e.g. ``var x=([{"d":"2024-01-02",...}]);``. R
agent/backtest/loaders/sina_loader.py:54
↓ 5 callers
Function
_suggest_commands
Return up to three "did you mean" suggestions for ``unknown``.
agent/cli/main.py:359
↓ 5 callers
Function
_sync_provider_env
Legacy initialization hook; no longer rewrites another provider's keys.
agent/src/providers/settings.py:164
↓ 5 callers
Function
_tail_cut_index
First index of the preserved ``body`` tail that fits ``budget`` tokens.
agent/src/session/compaction_ops.py:194
↓ 5 callers
Function
_text
(result)
agent/tests/test_mcp_json_string_args.py:73
↓ 5 callers
Function
_three_periods
Return three single-period attributions with deliberately different signs. Returns: Three :class:`BrinsonResult` objects in chronological
agent/tests/quantlib/test_attribution.py:235
↓ 5 callers
Function
_to_float
Coerce a reported value to ``float``, or ``None`` when non-numeric.
agent/src/tools/etf_holdings_tool.py:707
↓ 5 callers
Method
_tool
(name: str, content: str)
agent/tests/test_loop_helpers.py:171
↓ 5 callers
Function
_tool_arguments
(tool, arguments, workspace)
agent/tests/test_swarm_tool_run_dir.py:68
↓ 5 callers
Function
_trade_client
(cfg: TigerConfig)
agent/src/trading/connectors/tiger/sdk.py:579
↓ 5 callers
Function
_truncate_body
Clip `content` to `limit` chars, leaving room for the marker.
agent/src/memory/persistent.py:166
↓ 5 callers
Method
_usage
(self)
agent/src/data_gateway/history_store.py:218
↓ 5 callers
Function
_utc_now
Return an audit-friendly UTC timestamp.
agent/src/product/identity/ledger.py:59
↓ 5 callers
Function
_validate_confidence
Check that a confidence level is a strict probability. Args: confidence: Confidence level, e.g. 0.95. Raises: ValueError: If
agent/src/quantlib/risk.py:101
↓ 5 callers
Method
_validate_rebalance_values
(*values: float, positive: bool = False)
agent/backtest/engines/base.py:2103
↓ 5 callers
Function
_valuations
Return the fixture path: +10% on 100, 900 arrives, then -10%.
agent/tests/test_cashflow_analytics_tool.py:17
↓ 5 callers
Function
_workflow
()
agent/tests/test_docker_workflow_publish_guard.py:24
↓ 5 callers
Function
_wrapped_by_name
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:132
↓ 5 callers
Function
_wrapper
(adapter: object)
agent/tests/test_chat_llm_lifecycle.py:34
↓ 5 callers
Method
_write
(self, session_id: str, items: List[PendingInput])
agent/src/session/pending_inputs.py:324
↓ 5 callers
Function
_write_alpha
(zoo_dir: Path, short_id: str, zoo_id: str, *, body: str = GOOD_COMPUTE, meta: str | None = None)
agent/tests/factors/test_registry.py:67
↓ 5 callers
Function
_write_hooks
(root: Path, event: str, command: str, matcher: str = "*")
agent/tests/test_tool_safety_hooks_sandbox_sdk.py:53
↓ 5 callers
Function
_write_metrics_csv
(run_dir: Path, header: str, row: str)
agent/tests/test_session_load_metrics.py:14
↓ 5 callers
Function
_write_ohlcv
(run_dir: Path, symbol: str, dates: List[str], first_close: float, last_close: float)
agent/tests/test_attribution_api.py:47
↓ 5 callers
Method
account_usage
Account usage and move the goal to budget_limited if needed.
agent/src/goal/store.py:773
↓ 5 callers
Method
acquire
(self, config: IBKRLocalConfig)
agent/src/trading/connectors/ibkr/local.py:548
↓ 5 callers
Function
acquire_groups
Drive independent routes without new threads or source-slot replacement. Args: gateway: Owner of the unchanged source pool, pacer and cap
agent/src/data_gateway/fanout.py:20
↓ 5 callers
Function
acquisition_error_kind
Classify transport failures without retaining exception tracebacks or bodies.
agent/backtest/loaders/base.py:33
↓ 5 callers
Function
adapt_and_validate_payloads
Adapt connector-specific reads and validate the portfolio contract. The returned payloads are shallow copies. Connector responses are never
agent/src/portfolio/compatibility.py:131
↓ 5 callers
Function
additive_caliber_warning
Build the served-additive-caliber warning for a run, or None. ``stamps`` maps each served symbol to the (source, caliber) pair that served it
agent/backtest/loaders/registry.py:440
↓ 5 callers
Function
adf_test
Augmented Dickey-Fuller unit-root (stationarity) test. H0 = a unit root exists (non-stationary); H1 = stationary. Regressing non-stationary s
agent/src/quantlib/timeseries.py:112
↓ 5 callers
Function
agent_factory
Return a builder for an AgentRuntime wired to a run dir and one tool.
agent/tests/test_agent_loop_deterministic_cache.py:74
↓ 5 callers
Method
amounts
Return every signed amount, in date order. Returns: Tuple of amounts aligned with ``dates()``; empty for an empty series.
agent/src/entities/cashflow.py:320
↓ 5 callers
Method
analysis_context
(self, snapshot_id=None)
agent/tests/test_portfolio_routes.py:42
↓ 5 callers
Method
apply_compression
Execute compression: archive original, compute compressed content. Args: entry_path: Path to the memory .md file. con
agent/src/memory/compression.py:309
↓ 5 callers
Function
average_invested_weights
Derive the run's average basket from the target position frame. Returns ``(weights, avg_invested)``: the mean target weight per symbol restri
agent/backtest/risk_xray.py:432
↓ 5 callers
Function
barrier_option_price
Analytical Black-Scholes pricing for single-barrier options (Reiner-Rubinstein 1991). Supports all 8 standard barrier option combinations:
agent/src/quantlib/options.py:517
↓ 5 callers
Function
bond_cashflows
Coupon schedule of a bullet bond, in periods and amounts. Args: face: Redemption amount paid with the final coupon. coupon_rate:
agent/src/quantlib/fixedincome.py:215
↓ 5 callers
Method
budget
Return the same window/cost ceiling used by the main agent. Args: messages: Current worker conversation. tools: Tool
agent/src/swarm/context.py:42
↓ 5 callers
Function
build_gateway_services
Build a gateway service bundle from optional overrides.
agent/src/channelsui/gateway_services.py:271
↓ 5 callers
Function
build_job
Load a playbook by slug and turn it into a schedulable job. Args: slug: Playbook slug. directory: Search only this directory inst
agent/src/scheduled_research/playbooks.py:428
↓ 5 callers
Function
build_rates
Build the production rates map, anchored on one USD.
agent/src/portfolio/fx.py:30
↓ 5 callers
Function
build_result_dict
Build the caller-facing result for a finished run. Args: outcome: Terminal decision supplying status, degradation, and reason. ru
agent/src/product/outcome.py:136
↓ 5 callers
Function
calc_trade_turnover_series
Per-bar turnover from actual entry and exit allocations. Each filled leg contributes its margin-equivalent traded value. Dividing gross trade
agent/backtest/metrics.py:526
↓ 5 callers
Function
calibrate_tolerance
Derive a versioned tolerance that bounds the recorded sample set. Raises: ValueError: If inputs are invalid or any field group holds fewe
agent/backtest/binance_tolerance_calibration.py:84
↓ 5 callers
Method
cancel_order
Cancel an unfinished order outright (terminal ``canceled``). This is the synchronous cancel the 5m matcher uses when a market order's
agent/src/tools/paper_trade/order_lifecycle.py:180
↓ 5 callers
Function
candlestick_patterns
Detect candlestick patterns: doji, hammer, and engulfing. Args: open_: Open price series. high: High price series. low: L
agent/src/tools/pattern_tool.py:68
↓ 5 callers
Function
cds_price
Flat-hazard single-name Credit Default Swap (CDS) valuation engine. Computes the implied hazard rate, survival probability curve, Risky Present V
agent/src/quantlib/credit.py:755
↓ 5 callers
Function
classify_decay
Decay verdict from the evidence window recency (pure, read-time). Boundary semantics: ``age >= stale_days`` ⇒ ``stale``, elif ``age >= aging_
agent/src/strategy_discovery/models.py:329
↓ 5 callers
Function
classify_mt5_symbol
Map an MT5 symbol to its mandate ``(InstrumentType, AssetClass)``. Currency pairs (including Exness-style suffixed forms) classify as ``(FORE
agent/src/trading/connectors/mt5/symbols.py:65
↓ 5 callers
Function
cleanup
(label, action)
tools/gateway_soak.py:820
↓ 5 callers
Method
close
Signal the background refresh ticker to stop.
agent/cli/ui/rail.py:329
↓ 5 callers
Method
close
(self)
agent/src/data_gateway/streams.py:429
↓ 5 callers
Method
close
(self)
agent/tests/test_chat_llm_lifecycle.py:22
↓ 5 callers
Method
close_block
Fill missing tool results and release messages held behind the block.
agent/src/providers/messages.py:139
↓ 5 callers
Function
cmd_connector_halt
Trip the halt switch for a live remote MCP connector profile. Args: profile_id: Runner-enabled live connector profile ID, or None to use
agent/cli/commands/connectors.py:1182
↓ 5 callers
Function
collect_artifacts
Collect regular artifacts as deterministic run-relative paths. Args: run_dir: Root directory for the swarm run. artifact_dir: Pat
agent/src/swarm/artifacts.py:88
↓ 5 callers
Function
combinatorial_purged_splits
Every combination of ``n_test_groups`` blocks held out at once. A single K-fold gives one estimate of generalisation per fold; combinatorial
agent/src/quantlib/crossvalidation.py:490
↓ 5 callers
Method
compact
Offload only old results needed to get below the pressure threshold. Args: messages: Mutable current worker conversation.
agent/src/swarm/context.py:82
↓ 5 callers
Method
compact_session
Compact a session's replayed history through the existing L3 path. Args: session_id: Session whose replayed history should be com
agent/src/session/service.py:291
↓ 5 callers
Method
compress_to_daily
Compress raw content to daily level (~50% size). Strategy: TF-IDF key-sentence extraction. - Split into sentences - Score eac
agent/src/memory/compression.py:228
↓ 5 callers
Function
compute
Return the cross-sectional z-scored negative correlation-rewiring score. At each bar, each asset's rewiring score is the mean over peers of the
agent/src/factors/zoo/academic/corr_rewire.py:159
↓ 5 callers
Function
compute_regime_timeline
Fetch price data and compute the correlation-regime timeline. Args: codes: List of asset codes, as for :func:`compute_correlation_matrix`
agent/backtest/regime.py:155
↓ 5 callers
Method
compute_stale_threshold
Compute how long a running swarm can go without an event. Args: run: Run whose agent timeouts and retries bound the silence budge
agent/src/swarm/store.py:387
↓ 5 callers
Function
compute_tfidf
Compute IDF scores across a corpus of documents (sentences). Args: documents: List of document texts (typically sentences). Returns:
agent/src/memory/compression.py:84
↓ 5 callers
Function
consolidate
Run one consolidation pass: archive-only GC (+ its compression handoff). Invoked with no arguments by the internal-run supervisor (``memory_dir``
agent/src/memory/consolidation.py:64
↓ 5 callers
Function
convexity
Second-order price sensitivity to yield, ``(d2P/dy2)/P``. Args: face: Par/redemption amount. coupon_rate: Annual coupon rate as a
agent/src/quantlib/fixedincome.py:486
↓ 5 callers
Function
credential_field_catalog
Return the credential fields a profile declares. Args: profile_id: Profile to inspect. Returns: Field metadata declared by a
agent/src/trading/connections.py:461
↓ 5 callers
Function
credential_fields
Return the credential field names a profile declares. Args: profile_id: Profile to inspect. Returns: The declared field name
agent/src/trading/connections.py:479
↓ 5 callers
Function
cross_validate
Compare one field across sources, flag deviations over a tolerance. The median of the supplied values is used as the reference, and each sour
agent/src/tools/financial_rigor_tool.py:250
↓ 5 callers
Function
ctrl_c_within_window
Read the most recent two-press Ctrl+C exit decision. Args: session: Active prompt session supplying the Ctrl+C state. window_sec:
agent/cli/input.py:266
↓ 5 callers
Method
dates
Return every flow date, in order. Returns: Tuple of dates, possibly with repeats; empty for an empty series.
agent/src/entities/cashflow.py:312
↓ 5 callers
Function
decode_text
Decode a CVM/B3 text file (UTF-8 when valid, else Latin-1).
agent/src/br_data/_download.py:39
↓ 5 callers
Function
diagnostic_records
Derive the run diagnostic view used by evaluation and CLI readers. Args: items: Recorded thread items in write order. Returns:
agent/src/session/replay.py:339
↓ 5 callers
Function
digits
Keep only the digits (CNPJ normalization).
agent/src/br_data/_download.py:76
↓ 5 callers
Function
distance_to_default
Merton distance to default, in standard deviations of log asset value. Args: asset_value: Market value of assets. asset_vol: Annu
agent/src/quantlib/credit.py:412
↓ 5 callers
Method
edit_position_stops
(self, config, **kwargs)
agent/tests/test_etoro_live_actions.py:35
↓ 5 callers
Function
email_tls_context
Return the TLS context for every email connection, implicit SSL or STARTTLS. ``verify=True`` (the default) verifies the server certificate and ho
agent/src/channels/utils.py:128
↓ 5 callers
Function
emit
(kind, data=None)
agent/src/swarm/node.py:854
↓ 5 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:534
↓ 5 callers
Function
enumerate_protected_runtime_paths
Find broker/auth runtime paths from the source's path declarations. Root-level JSON config files and credential directories are hidden inside a
agent/src/tools/sandbox.py:212
↓ 5 callers
Method
estimate_retention
Estimate information retention as Jaccard token overlap (0.0-1.0). Computes |intersection| / |union| of token sets between original a
agent/src/memory/compression.py:353
↓ 5 callers
Method
execute
Synthesize, persist, and return a ``mandate.proposal`` payload. Args: **kwargs: ``broker`` and ``ceilings`` required; optional ``
agent/src/tools/propose_mandate_tool.py:104
↓ 5 callers
Method
execute
Dispatch a list / describe / call request. Args: **kwargs: See :attr:`parameters`. Returns: A JSON envelope.
agent/src/tools/quantlib_tool.py:353
↓ 5 callers
Function
execute_batch
Run adjacent parallel calls together and deliver results in call order. Args: calls: Bound calls in execution order, each with its own pa
agent/src/kernel/tool_runner.py:16
↓ 5 callers
Method
fetch
Return snapshot rows, fetching symbols it lacks through ``inner``. Frames from ``inner`` go through the same OHLC sanitisation as the
agent/backtest/runner.py:2383
↓ 5 callers
Method
fetch
()
agent/src/data_gateway/skill_sources.py:104
↓ 5 callers
Function
fetch_bytes
GET ``url``; ``None`` on 404 (file not published), raise on other errors.
agent/src/br_data/_download.py:20
← previous
next →
2,201–2,300 of 30,405, ranked by callers