MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 5 callersFunction_wrapped_by_name
()
agent/tests/test_default_deny_unknown_robinhood_tool.py:132
↓ 5 callersFunction_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 callersMethod_write_json
(path: Path, data: Dict[str, Any])
agent/src/session/store.py:336
↓ 5 callersFunction_write_metrics_csv
(run_dir: Path, header: str, row: str)
agent/tests/test_session_load_metrics.py:14
↓ 5 callersFunction_write_ohlcv
(run_dir: Path, symbol: str, dates: List[str], first_close: float, last_close: float)
agent/tests/test_attribution_api.py:47
↓ 5 callersFunctionadapt_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 callersFunctionadditive_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:428
↓ 5 callersFunctionadf_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 callersFunctionagent_factory
Return a builder for an AgentLoop wired to a run dir and one tool.
agent/tests/test_agent_loop_deterministic_cache.py:78
↓ 5 callersFunctionallowed_file_roots
Return all roots allowed for document and broker-file reads.
agent/src/tools/path_utils.py:163
↓ 5 callersMethodamounts
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 callersMethodanalysis_context
(self, snapshot_id=None)
agent/tests/test_portfolio_routes.py:42
↓ 5 callersFunctionanalyze_mc_results
Summarise the terminal distribution of a simulated price matrix. Args: paths: Price matrix of shape ``(n_paths, n_steps + 1)`` as returne
agent/src/quantlib/risk.py:589
↓ 5 callersMethodappend_message
(self, message)
agent/tests/test_openbb_bridge/test_adapter.py:38
↓ 5 callersMethodapply_slippage
Apply slippage to execution price. Args: price: Raw price. direction: 1 (buying / covering short) or -1 (selling / sh
agent/backtest/engines/base.py:669
↓ 5 callersFunctionaverage_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:349
↓ 5 callersFunctionbarrier_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 callersFunctionbash_policy
Resolve an explicitly configured cross-provider policy or prior defaults.
agent/src/providers/tool_policy.py:39
↓ 5 callersFunctionbond_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 callersMethodbudget
Return the same window/cost ceiling used by the main agent.
agent/src/swarm/context.py:41
↓ 5 callersFunctionbuild_gateway_services
Build a gateway service bundle from optional overrides.
agent/src/channelsui/gateway_services.py:273
↓ 5 callersFunctionbuild_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 callersMethodbuild_messages
Build full message list. Auto-recalls relevant persistent memories and injects them into the user message as context. This keeps the
agent/src/agent/context.py:387
↓ 5 callersFunctionbuild_rates
Build the production rates map, anchored on one USD.
agent/src/portfolio/fx.py:30
↓ 5 callersFunctioncalc_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:479
↓ 5 callersFunctioncalibrate_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 callersMethodcancel_run
Signal cancellation for a running swarm. Args: run_id: ID of the run to cancel. Returns: True if cancellatio
agent/src/swarm/runtime.py:456
↓ 5 callersFunctioncandlestick_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:66
↓ 5 callersFunctioncds_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 callersMethodchat
(self, messages, tools=None, timeout=None)
agent/tests/test_swarm_m4_e2e.py:143
↓ 5 callersFunctionclassify_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 callersFunctionclassify_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 callersFunctionclearAnalysisState
(key: string)
frontend/src/hooks/useAnalysisState.ts:7
↓ 5 callersMethodclose
(self)
agent/cli/ui/rail.py:313
↓ 5 callersMethodclose
(self)
agent/tests/test_chat_llm_lifecycle.py:14
↓ 5 callersFunctioncmd_connector_halt
Trip the halt switch for a live remote MCP connector profile.
agent/cli/_legacy.py:5301
↓ 5 callersFunctioncmd_live_halt
Trip the kill switch — write the HALT sentinel (privileged). With no broker, trips the global switch (halts all brokers); with a broker, trip
agent/cli/_legacy.py:3734
↓ 5 callersFunctioncombinatorial_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 callersMethodcommunicate
(self, timeout: float | None = None)
agent/tests/test_bash_tool.py:26
↓ 5 callersMethodcompact
Offload only old results needed to get below the pressure threshold. Args: messages: Mutable current worker conversation.
agent/src/swarm/context.py:58
↓ 5 callersMethodcompress_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:197
↓ 5 callersFunctioncompute
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 callersFunctioncompute_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:154
↓ 5 callersMethodcompute_stale_threshold
Per-run silence budget before a ``running`` run looks abandoned. With ``HeartbeatTimer`` wrapping ``registry.execute`` in the swarm w
agent/src/swarm/store.py:336
↓ 5 callersFunctioncompute_tfidf
Compute IDF scores across a corpus of documents (sentences). Args: documents: List of document texts (typically sentences). Returns:
agent/src/memory/compression.py:83
↓ 5 callersFunctionconsolidate
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 callersFunctionconvexity
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 callersMethodcreate_session
Create a new session. Args: title: Session title. config: Session configuration. owner: Principal the ses
agent/src/session/service.py:275
↓ 5 callersFunctioncredential_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 callersFunctioncredential_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 callersFunctioncross_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 callersFunctionctrl_c_within_window
Return True if the most recent Ctrl+C press was a "second press". A "second press" means the user pressed Ctrl+C twice within ``window_sec``
agent/cli/input.py:339
↓ 5 callersFunctioncurrent_llm_session_id
Return the active LLM session id, or ``""`` outside a bound run.
agent/src/providers/session_context.py:37
↓ 5 callersMethoddates
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 callersFunctiondecode_text
Decode a CVM/B3 text file (UTF-8 when valid, else Latin-1).
agent/src/br_data/_download.py:39
↓ 5 callersFunctiondigits
Keep only the digits (CNPJ normalization).
agent/src/br_data/_download.py:76
↓ 5 callersFunctiondistance_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 callersMethodedit_position_stops
(self, config, **kwargs)
agent/tests/test_etoro_live_actions.py:35
↓ 5 callersFunctionemail_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:127
↓ 5 callersFunctionenrich_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:525
↓ 5 callersMethodestimate_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:339
↓ 5 callersMethodexecute
Synthesize, persist, and return a ``mandate.proposal`` payload. Args: **kwargs: ``broker`` and ``ceilings`` required; optional ``
agent/src/tools/propose_mandate_tool.py:104
↓ 5 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/portfolio_risk_tool.py:88
↓ 5 callersMethodfetch
Return snapshot rows, fetching symbols it lacks through ``inner``. Frames from ``inner`` go through the same OHLC sanitisation as the
agent/backtest/runner.py:2260
↓ 5 callersFunctionfetch_bytes
GET ``url``; ``None`` on 404 (file not published), raise on other errors.
agent/src/br_data/_download.py:20
↓ 5 callersMethodfill
(prompt: string)
frontend/src/components/chat/Composer.tsx:59
↓ 5 callersFunctionfind_hedge_ratio
Fit the pair-trading hedge ratio ``y = α + β·x + ε``. The tradeable spread is ``y - β·x``; its mean and standard deviation define the z-score
agent/src/quantlib/timeseries.py:331
↓ 5 callersMethodfind_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:376
↓ 5 callersFunctionfit_ornstein_uhlenbeck
Fit an Ornstein-Uhlenbeck (OU) mean-reverting process by exact discrete MLE. The continuous-time OU process is: dX_t = θ(μ - X_t)dt + σ d
agent/src/quantlib/timeseries.py:234
↓ 5 callersFunctionformat_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
↓ 5 callersFunctionframe
(age=0)
agent/tests/test_loader_health.py:31
↓ 5 callersFunctionfrank_copula_cdf
Evaluate bivariate Frank copula CDF: C(u, v) = -1/theta * ln(1 + (exp(-theta*u) - 1)*(exp(-theta*v) - 1)/(exp(-theta) - 1)).
agent/src/quantlib/copula.py:142
↓ 5 callersMethodfrom_mapping
Build a config from a JSON-like mapping.
agent/src/trading/connectors/kis/sdk.py:138
↓ 5 callersFunctiongetApiAuthKey
()
frontend/src/lib/apiAuth.ts:5
↓ 5 callersMethodget_current_goal
Return the current goal for a session.
agent/src/goal/store.py:464
↓ 5 callersFunctionget_env_or
Read an env var with a backward-compatible alias fallback. Several env vars were renamed during the centralization effort (e.g. ``VIBE_TRADIN
agent/src/config/accessor.py:116
↓ 5 callersFunctionget_env_value
Read a dynamically named environment value through the config layer. Most application settings should use typed :class:`EnvConfig` fields. Th
agent/src/config/accessor.py:141
↓ 5 callersMethodget_revision
Return one immutable revision by its stable ID.
agent/src/research_artifacts/store.py:327
↓ 5 callersFunctionget_store
Return the process-wide strategy store singleton.
agent/src/strategy_store/_shared.py:16
↓ 5 callersFunctiongp_clawback
Test whether a deal-by-deal GP owes money back at fund termination. Compares carry actually received (summed deal by deal, each deal's carry
agent/src/quantlib/fundmath.py:2208
↓ 5 callersMethodhandle_event
Update the dashboard from AgentLoop UI events.
agent/cli/_legacy.py:604
↓ 5 callersFunctioninspect_channel
Inspect one channel module without raising dependency errors. Args: name: Built-in or plugin channel name. Returns: Availabi
agent/src/channels/registry.py:167
↓ 5 callersFunctioninspect_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:264
↓ 5 callersFunctioninverse_variance_weights
Calculate inverse-variance weights w_i = (1/sigma_i^2) / sum(1/sigma_k^2). Args: cov: Covariance matrix. Returns: Normalized
agent/src/quantlib/portfolio.py:72
↓ 5 callersMethodis_allowed
Preserve Telegram's legacy id|username allowlist matching.
agent/src/channels/telegram.py:497
↓ 5 callersFunctionis_secret_key
Return whether *key* holds a credential for channel *name*. A hand-written hint's ``secret`` flag is authoritative for the keys it covers (an
agent/src/channels/config_meta.py:451
↓ 5 callersMethodjobs
Return a snapshot list of the current jobs. Returns: A new list of the live :class:`Job` objects (the list is a copy;
agent/src/live/runtime/scheduler.py:250
↓ 5 callersFunctionkrx_round_up
Round *price* up onto the tick grid (KRX ``절상``), never below one tick.
agent/backtest/engines/korea_equity.py:105
↓ 5 callersFunctionkrx_tick_size
Return the KRX tick unit applicable at *price*. Args: price: Price in KRW. Non-positive input returns the finest tick. Returns:
agent/backtest/engines/korea_equity.py:80
↓ 5 callersFunctionkyles_lambda
Estimate Kyle's (1985) price impact coefficient lambda from linear regression. ΔP_t = alpha + lambda * OrderFlow_t + epsilon_t Fits with an
agent/src/quantlib/microstructure.py:90
↓ 5 callersFunctionlarge_result
()
agent/tests/test_result_artifacts.py:26
↓ 5 callersMethodlist
(self, zoo=None)
agent/tests/test_alpha_cli_dotenv.py:19
↓ 5 callersFunctionload
()
frontend/src/components/portfolio/ConnectionCenter.tsx:32
↓ 5 callersFunctionload_cached_result
Load the cached backtest result matching this window and journal. The cache is keyed by shadow + run parameters; a different window or a re-e
agent/src/shadow_account/backtester.py:347
↓ 5 callersFunctionload_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
↓ 5 callersMethodload_relations
Read relations from .relations.json sidecar. Args: entry_path: Path to the source memory file. Returns: List
agent/src/memory/semantic_links.py:282
↓ 5 callersMethodload_task
Load a task by ID. Args: task_id: Task ID. Returns: SwarmTask instance. Raises: FileNot
agent/src/swarm/task_store.py:63
↓ 5 callersFunctionlocalizeToolName
(tool: string, fallback?: string)
frontend/src/lib/tools.ts:43
↓ 5 callersFunctionmacaulay_duration
Present-value-weighted average time to the bond's cash flows. Args: face: Par/redemption amount. coupon_rate: Annual coupon rate
agent/src/quantlib/fixedincome.py:353
↓ 5 callersMethodmark_context_restored
Grant one run-scoped grace iteration after compaction restores evidence. Replaying a cached readonly result is not a new external observation
agent/src/agent/tool_progress.py:113
← previousnext →1,901–2,000 of 26,887, ranked by callers