MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 9 callersFunction_two_regime_series
Build a series alternating between a calm and a turbulent regime.
agent/tests/quantlib/test_timeseries.py:714
↓ 9 callersFunction_verdict
( status: VerdictStatus, code: str, expected: Any, observed: Any, *refs: str, detail:
agent/evals/harness/assertions.py:42
↓ 9 callersFunction_write_factor_bundle
( run_dir: Path, name: str, ic_csv: str, summary: dict | None, group_equity_csv: str | Non
agent/tests/test_factor_api.py:20
↓ 9 callersFunction_write_five_records
(path: Path)
agent/tests/test_governance.py:299
↓ 9 callersFunction_write_metrics
(run_dir: Path, extra: Dict[str, str] | None = None)
agent/tests/test_attribution_api.py:94
↓ 9 callersFunction_write_run_card
Write a run_card.json carrying the given artifacts manifest.
agent/tests/test_run_artifact_tool.py:89
↓ 9 callersMethodaclose
Asynchronously release HTTP clients owned by this adapter.
agent/src/providers/chat.py:68
↓ 9 callersFunctionallowed_write_roots
Return all roots allowed for file writes and edits. Child tools receive only the workspace specified by their file policy.
agent/src/tools/path_utils.py:214
↓ 9 callersFunctionamerican_waterfall
Run a deal-by-deal (American) waterfall. Each deal is its own miniature fund: its own contributed capital, its own preferred return accrued f
agent/src/quantlib/fundmath.py:1993
↓ 9 callersFunctionasString
(value: unknown, fallback = "")
frontend/src/lib/swarmStatus.ts:13
↓ 9 callersMethodbegin_turn
Close stale turns as interrupted before replay and return the new recorder. Args: turn_id: The new turn or attempt ID.
agent/src/session/runtime.py:427
↓ 9 callersFunctionbuild_dcf_artifact
Wrap a completed :func:`~.dcf.run_dcf` call into a versioned artifact. ``capital_structure_basis``, ``discounting_convention``, ``terminal_va
agent/src/quantlib/valuation/artifact.py:691
↓ 9 callersFunctionbuild_loop
(tmp_path: Path, tool: DiscoveryTool, llm: DiscoveryLLM)
agent/tests/test_agent_loop_no_progress.py:71
↓ 9 callersFunctionbuild_worker_prompt
Build the worker's system prompt with role, upstream context, and skills. Args: agent_spec: The agent's role specification. upstr
agent/src/swarm/node.py:137
↓ 9 callersFunctioncarino_link
Link single-period Brinson results into a residual-free multi-period attribution. Every period's effects are scaled by ``k_t / k`` and summed. Be
agent/src/quantlib/attribution.py:384
↓ 9 callersFunctionchristoffersen_independence
Test whether breaches cluster in time. Fits a first-order Markov chain to the breach sequence and tests the restriction that the two transiti
agent/src/quantlib/var_backtest.py:396
↓ 9 callersMethodclose_position
(self, config, **kwargs)
agent/tests/test_etoro_live_actions.py:26
↓ 9 callersFunctioncompute_decay_metrics
Compute baseline and rolling metrics from bench history. For factor artifacts: uses ``ic_mean`` to compute baseline/rolling IC metrics. For s
agent/src/strategy_store/metrics.py:29
↓ 9 callersFunctioncompute_input_hash
Hash an arbitrary payload the same way ``build_*_artifact`` hashes inputs. Public mainly so the normalization scheme (:func:`_flatten` / :fun
agent/src/quantlib/valuation/artifact.py:518
↓ 9 callersFunctioncost_sensitivity
Re-execute the same strategy and price inputs under declared costs. Args: request: Source run and named execution-cost scenarios.
agent/src/research_lab/studies.py:24
↓ 9 callersFunctiondata_market
Resolve a data identity without the legacy backtest A-share default. Raises: ValueError: No public market rule recognizes the symbol.
agent/src/market_data.py:74
↓ 9 callersFunctiondetect_boundary_leakage
Audit a split for the three ways training can see the test period. This is the assertion that makes the off-by-one class of bug testable. Point
agent/src/quantlib/crossvalidation.py:563
↓ 9 callersFunctionenrich_price_frames_with_fundamentals
Attach PIT-safe fundamental snapshots to daily price frames. Sub-daily frames (``subdaily``): Tushare's ``ann_date`` / ``f_ann_date`` is a da
agent/backtest/loaders/tushare_fundamentals.py:313
↓ 9 callersFunctionescapeHtml
(value: string)
frontend/src/lib/escapeHtml.ts:16
↓ 9 callersFunctionestimate_market_model
Fit a normal-return model on an estimation window. Args: asset_returns: Asset returns over the estimation window. market_returns:
agent/src/quantlib/eventstudy.py:213
↓ 9 callersMethodexecute
Load a skill as a skeleton, a named section, or a character page. Args: **kwargs: Must include ``name``; may include ``section``
agent/src/tools/load_skill_tool.py:207
↓ 9 callersMethodfetch
(self, codes, start, end, interval="1D")
agent/tests/test_additive_conversion.py:246
↓ 9 callersMethodfit
(self, values, labels)
agent/tests/test_ml_strategy_skill.py:42
↓ 9 callersMethodfive_minute_calls
(self)
agent/tests/paper_trade_5m_fixtures.py:199
↓ 9 callersMethodgenerate
(self, data)
agent/tests/test_risk_xray.py:368
↓ 9 callersMethodhandle_query
Yield ``openbb_ai`` SSE objects for an OpenBB ``QueryRequest``. Args: request: The parsed ``openbb_ai.models.QueryRequest``.
agent/src/openbb_bridge/adapter.py:82
↓ 9 callersFunctionheston_price
Price a European option under the Heston stochastic volatility model. Uses Lewis (2001) / Carr-Madan single-integral formulation with stable char
agent/src/quantlib/volatility.py:119
↓ 9 callersFunctionhierarchical_risk_parity
Allocate portfolio weights using Hierarchical Risk Parity (López de Prado 2016). Args: cov: Asset covariance matrix (N x N). corr
agent/src/quantlib/portfolio.py:102
↓ 9 callersFunctionhistorical_cvar
Conditional VaR (expected shortfall) from the empirical distribution. The average loss *given* that the VaR threshold was breached. Unlike VaR it
agent/src/quantlib/risk.py:223
↓ 9 callersFunctionis_registered
Whether *name* is a well-formed AND registered key. Never raises.
agent/src/scheduling/registry.py:134
↓ 9 callersFunctionis_system_job_id
Whether *job_id* carries the protected ``system:`` prefix. The single predicate the mutation guards consume. Pure prefix test — never raises,
agent/src/scheduling/system_jobs.py:282
↓ 9 callersFunctionkupiec_pof
Test whether the breach *count* matches the model's claimed level. The Kupiec proportion-of-failures test compares the realised breach rate a
agent/src/quantlib/var_backtest.py:331
↓ 9 callersMethodlatest
Return the scripted snapshot (``None`` when nothing is stored).
agent/tests/test_cli_portfolio.py:32
↓ 9 callersMethodlease
Hold a nonblocking process lease; stale jobs are resumable after exit.
agent/src/data_gateway/history_store.py:190
↓ 9 callersFunctionleg_iv
Return the implied vol a single leg is priced at. Every site that prices a leg must go through this — opening, marking to market, Greeks, and
agent/backtest/engines/options_portfolio.py:102
↓ 9 callersMethodlist
(self, *, zoo: str)
agent/tests/factors/test_bench_strict.py:498
↓ 9 callersMethodlist_pending_inputs
Return the messages waiting to join a session, oldest first. Args: session_id: Session ID. Returns: Client v
agent/src/session/service.py:563
↓ 9 callersFunctionload_5m
One symbol-day's raw bars; a header-only file is zero bars, not an error.
agent/tests/paper_trade_5m_fixtures.py:86
↓ 9 callersFunctionload_config
()
agent/src/trading/connectors/dhan/sdk.py:160
↓ 9 callersFunctionload_config
()
agent/src/trading/connectors/shoonya/sdk.py:160
↓ 9 callersFunctionload_config
()
agent/src/trading/connectors/upbit/sdk.py:154
↓ 9 callersFunctionload_config
Load Toss settings from ``~/.vibe-trading/toss.json``.
agent/src/trading/connectors/toss/sdk.py:156
↓ 9 callersFunctionload_config
()
agent/src/trading/connectors/kis/sdk.py:218
↓ 9 callersFunctionload_config
Load OKX settings from ``~/.vibe-trading/okx.json``.
agent/src/trading/connectors/okx/sdk.py:156
↓ 9 callersFunctionload_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:53
↓ 9 callersMethodload_run
(self, run_id)
agent/tests/test_cli_swarm_retry.py:73
↓ 9 callersFunctionmarket_is_open_at
Pure core: is ``market`` open at the instant ``now_ms``. Deterministic — reads no clock. 24/7 markets (``always_open``) are always open. Sess
agent/src/live/runtime/triggers.py:277
↓ 9 callersFunctionmemory_lock
Acquire exclusive file lock; yields True if acquired, False on timeout.
agent/src/memory/persistent.py:44
↓ 9 callersFunctionmerton_model
Estimate default probability and credit spread from equity market data. Args: equity_value: Market capitalisation. equity_vol: An
agent/src/quantlib/credit.py:359
↓ 9 callersFunctionmigrate_session
Atomically migrate once before exposing a session's thread. Args: session_dir: Session directory containing legacy data. session_
agent/src/session/migration.py:231
↓ 9 callersFunctionneutralize_special_tokens
Defang chat-template control tokens in untrusted external content. A zero-width space (U+200B) is inserted right after the opening delimiter
agent/src/security/scanner.py:117
↓ 9 callersFunctionpaid_in_capital
Total capital drawn into the fund, as a positive magnitude. Args: series: The cash flows. contribution_kinds: Kind labels counted
agent/src/quantlib/fundmath.py:598
↓ 9 callersFunctionparse_settings
Validate untrusted Web settings against the local connection registry. Args: payload: Raw settings dict from the Web UI, CLI or a setting
agent/src/portfolio/config.py:144
↓ 9 callersMethodpercentile
(values: list[float], q: float)
agent/tests/test_institutional_commands.py:479
↓ 9 callersFunctionprobability_of_backtest_overfitting
Combinatorially-symmetric cross-validation (CSCV) overfitting diagnostic. Splits the sample into ``n_splits`` contiguous subsets, then for every
agent/src/quantlib/multipletesting.py:463
↓ 9 callersMethodquery_events
(self, codes: Iterable[str], *, as_of, feeds=None, scorer=None)
agent/tests/test_rsshub_events_lookahead.py:28
↓ 9 callersFunctionread_calendar_csv
Read a saved calendar without losing floats or inventing a source zone. Args: raw: CSV bytes containing a timestamp index. timezo
agent/backtest/frozen.py:49
↓ 9 callersFunctionread_trade_activity
Round-trip exit dates and peak concurrency from ``trades.csv``. Returns ``(exit_dates, max_concurrent)``: * ``exit_dates`` — one date per cl
agent/src/strategy_discovery/run_artifacts.py:128
↓ 9 callersFunctionrebalance_cost
Price one rebalance: capacity, then impact, then borrow. Args: target_weights: Desired weights, shorts negative. current_weights:
agent/backtest/factor_costs.py:297
↓ 9 callersMethodrecord
(self, scope, source, success, elapsed)
agent/src/data_gateway/routing.py:24
↓ 9 callersFunctionrecords_to_dataframe
Parse and sort datetimes, retaining source order for equal timestamps.
agent/src/tools/trade_journal_parsers.py:764
↓ 9 callersMethodrecv
(self)
agent/src/tools/paper_trade/strategy_process.py:50
↓ 9 callersFunctionregistry
()
agent/tests/test_deferred_tool_loading.py:34
↓ 9 callersMethodreinforce
Update quality score based on usage feedback. Args: name: Memory entry name (exact match). event: One of "task_succes
agent/src/memory/lifecycle.py:135
↓ 9 callersFunctionrelease_sessions_dir
Release a claim held by the supplied owner. Args: sessions_dir: Sessions directory passed to claim_sessions_dir. owner: Owner tha
agent/src/session/runtime_lock.py:87
↓ 9 callersFunctionrender_shadow_report
Render the full Shadow Account report. Returns: Dict with keys: ``html_path`` : rendered HTML (always present) `
agent/src/shadow_account/reporter.py:59
↓ 9 callersFunctionresolve_benchmark
Resolve the appropriate benchmark ticker and fetch its return series. Args: strategy_codes: Instruments being backtested (used for market
agent/backtest/benchmark.py:121
↓ 9 callersFunctionrows
(stamps)
agent/tests/test_gateway_calendars.py:10
↓ 9 callersFunctionrun
()
agent/tests/test_llm.py:682
↓ 9 callersFunctionsaved_profile
Persist a rule with the given ``entry_condition`` and load it back.
agent/tests/test_shadow_codegen_condition_bounds.py:67
↓ 9 callersFunctionscaffold_connector
Create a read-only local connector starter for a developer to fill in. Args: connector_id: Lowercase connector id used for the directory
agent/src/trading/plugin_scaffold.py:49
↓ 9 callersFunctionsession_service
Return the session service or raise 501.
agent/src/api/session_http.py:38
↓ 9 callersMethodstart_run
(self, preset_name, variables, **kwargs)
agent/tests/test_swarm_retry.py:222
↓ 9 callersFunctionstate_hash
Return ``sha256(JCS(value))`` as lowercase hex (AM-4-1).
agent/src/tools/paper_trade/state_hash.py:171
↓ 9 callersFunctionstore
()
agent/src/api/connection_routes.py:63
↓ 9 callersFunctionswarm_runs_root
Resolve the configured swarm storage root. Returns: Directory under which swarm runs are persisted.
agent/src/swarm/store.py:55
↓ 9 callersFunctionts_cov
Rolling sample covariance per column, min_periods=n.
agent/src/factors/base.py:252
↓ 9 callersFunctionvalidate_timezone
Raise ``ValueError`` when *tz* is not a resolvable IANA timezone key. ``None`` is always valid and means legacy UTC semantics. Resolution goes
agent/src/scheduling/triggers.py:172
↓ 9 callersMethodwait
(self, timeout=None)
agent/tests/test_swarm_cancel_mid_flight_worker.py:174
↓ 9 callersFunctionwait_for
(store, job, predicate, seconds=12)
agent/tests/test_history_auto_resume.py:15
↓ 8 callersFunction_adapter
(client: httpx.Client, model: str, **overrides: Any)
agent/tests/test_llm_responses_self_heal.py:188
↓ 8 callersFunction_alternating_close
Deterministic zigzag whose 30-bar rolling std is non-zero and stable.
agent/tests/test_options_hv_bars_per_year.py:31
↓ 8 callersFunction_analyze
(tmp_path, monkeypatch, rows, mode="full", filter_expr="", excel=False)
agent/tests/test_trade_journal_invalid_datetime.py:18
↓ 8 callersFunction_artifact_problem
( bundle: ArtifactBundle, key: str, *, missing_invalid: bool )
agent/evals/harness/assertions.py:53
↓ 8 callersFunction_assemble
(payload: dict, request, outcome: engine.MatchOutcome)
agent/tests/test_paper_trade_v13_schema.py:222
↓ 8 callersFunction_assert_profile
Fail closed when the account does not match the declared environment.
agent/src/trading/connectors/tiger/sdk.py:593
↓ 8 callersFunction_bars
(days, closes, volume=1000.0)
agent/tests/test_argentina_equity_engine.py:34
↓ 8 callersFunction_bars
(closes: list[float])
agent/tests/test_offline_benchmark.py:29
↓ 8 callersFunction_body
实体长度(绝对值)。 Args: o: 开盘价序列。 c: 收盘价序列。 Returns: 每根K线的实体长度。
agent/src/skills/candlestick/example_signal_engine.py:22
↓ 8 callersFunction_bound_mandate
(account_ref: str = ACCOUNT, **caps: Any)
agent/tests/test_robinhood_live_account_binding.py:68
↓ 8 callersFunction_build_codex_token_storage
Build the Vibe-owned Codex token store.
agent/src/providers/openai_codex.py:94
↓ 8 callersFunction_build_direct_agent
( tmp_path: Path, resolver_result: str, )
agent/tests/test_agent_grounding.py:171
↓ 8 callersFunction_build_panel
Hand-built 2-date x 4-symbol panel, two industries of two names each.
agent/tests/factors/test_fundamental_ind_neutral_samples.py:54
↓ 8 callersFunction_build_synthetic_dataset
Build data_map, signal_map, codes for testing.
agent/tests/test_signal_alignment_perf.py:68
↓ 8 callersMethod_calc_pnl
Realised PnL for a closed position.
agent/backtest/engines/base.py:951
← previousnext →1,101–1,200 of 30,405, ranked by callers