MCPcopy Create free account

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

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

↓ 9 callersFunction_make_channel
Build a DingTalk channel that has NOT been started (no ``self._http``).
agent/tests/test_dingtalk_connection_test.py:44
↓ 9 callersFunction_make_run
(run_id: str, status: RunStatus)
agent/tests/test_swarm_retry.py:20
↓ 9 callersFunction_make_specs
Build a list of fake MCPRemoteToolSpec for testing.
agent/tests/test_mcp_specs_cache.py:80
↓ 9 callersFunction_mapping
(value: Mapping[str, pd.DataFrame], name: str)
agent/src/quantlib/neutralization.py:77
↓ 9 callersFunction_monkeypatch_upgrade_env
Point PyPI + install-kind detection at deterministic fakes.
agent/tests/test_cli_update.py:57
↓ 9 callersFunction_normalize_tool_run_dir
Normalize ``run_dir`` in tool args to an absolute path when possible. If the model supplies a relative ``run_dir`` (for example ``"."`` or ``
agent/src/agent/tool_results.py:128
↓ 9 callersFunction_ns
(**overrides)
agent/tests/test_alpha_bench_strict_cli.py:13
↓ 9 callersFunction_observed
(outcome)
agent/tests/test_paper_trade_5m_limit_price.py:213
↓ 9 callersFunction_parse_pages
Parse '1-10' / '5' / '1,3,5-8' into zero-based indices.
agent/src/tools/doc_reader_tool.py:105
↓ 9 callersFunction_parse_period
Return (start_date, end_date) as YYYY-MM-DD strings.
agent/src/tools/alpha_bench_tool.py:87
↓ 9 callersFunction_patch_kite
(monkeypatch, fake: Any)
agent/tests/test_zerodha_sdk.py:88
↓ 9 callersFunction_profile
Build a minimal ShadowProfile for scanner tests.
agent/tests/test_shadow_scanner.py:14
↓ 9 callersFunction_readers
Build the three injected READ callables from fabricated snapshots.
agent/tests/test_runtime_reconcile.py:37
↓ 9 callersFunction_reject_mixed_currency
Refuse a code set whose members do not settle in one currency. The shared capital pool holds a single scalar of cash and sums position values
agent/backtest/engines/composite.py:86
↓ 9 callersFunction_request
(market: str, cash: float, positions: list[dict], orders: list[dict], day: str)
agent/tests/test_paper_trade_corporate_actions.py:94
↓ 9 callersFunction_request
(**kwargs)
agent/tests/test_openbb_bridge/test_context_injector.py:80
↓ 9 callersFunction_reset_crumb
Clear the process-wide crumb cache so each test handshakes fresh.
agent/tests/test_yahoo_client.py:43
↓ 9 callersFunction_returns
(value: float)
agent/tests/test_grounding_container_field_refs.py:149
↓ 9 callersFunction_row
(side="buy", quantity=1, price=100, symbol="AAPL", day=1, fee=1)
agent/tests/test_trade_journal_invalid_quantity.py:13
↓ 9 callersFunction_rows_to_frame
Build the OHLCV frame from chart rows, clipped to the inclusive window. For daily-and-coarser intervals the DatetimeIndex is normalized to midnig
agent/backtest/loaders/yahoo_loader.py:139
↓ 9 callersFunction_rule_with_rsi
( rsi_min: float, rsi_max: float, hour_min: int = 0, hour_max: int = 23, )
agent/tests/test_shadow_account.py:2014
↓ 9 callersFunction_run
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, llm: Any, max_iterations: int = 5, )
agent/tests/test_agent_loop_content_filter.py:82
↓ 9 callersFunction_run
(**kwargs: Any)
agent/tests/test_financial_rigor_tool.py:285
↓ 9 callersFunction_run
(capsys: pytest.CaptureFixture[str], args: argparse.Namespace)
agent/tests/factors/test_alpha_compare.py:172
↓ 9 callersMethod_run
(self, query, yahoo_hits, eastmoney_rows=None)
agent/tests/test_symbol_search_tool.py:1118
↓ 9 callersMethod_run_worker_with_retries
Run a worker with automatic retry on failure. Retries up to agent_spec.max_retries times. Emits a "task_retry" event before each retr
agent/src/swarm/runtime.py:1154
↓ 9 callersFunction_seed
(directory: Path, filename: str = "record.json")
agent/tests/test_state_migration.py:10
↓ 9 callersFunction_seed_original_run
Persist a failed/cancelled run: t-a completed (with an artifact), t-b failed, t-c blocked.
agent/tests/test_swarm_replay.py:59
↓ 9 callersFunction_sizes
(state)
agent/tests/test_base_engine.py:115
↓ 9 callersFunction_to_futu_symbol
Convert project symbol to Futu OpenAPI format. Examples: 700.HK -> HK.00700 5.HK -> HK.00005 000001.SZ -> SZ.0000
agent/backtest/loaders/futu.py:40
↓ 9 callersFunction_tool_call
(call_id: str, tool_name: str, **arguments: Any)
agent/tests/test_agent_grounding.py:158
↓ 9 callersFunction_trading_dates
(count: int, start: str = "2024-01-01")
agent/tests/test_attribution_api.py:41
↓ 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:40
↓ 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:85
↓ 9 callersMethodaclose
Asynchronously release HTTP clients owned by this adapter.
agent/src/providers/chat.py:381
↓ 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 callersFunctionbind_llm_session_id
Bind ``session_id`` as the active LLM session in the current context. Args: session_id: Vibe session id; empty or ``None`` clears the bin
agent/src/providers/session_context.py:20
↓ 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:67
↓ 9 callersFunctionbuy_and_hold_return
Total buy-and-hold return as a price relative, not a compounded product. ``(1 + close.pct_change()).prod() - 1`` telescopes to ``P_end / P_start
agent/backtest/metrics.py:315
↓ 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 callersFunctioncheck_budget
Raise :class:`TimeoutError` if the monotonic clock has crossed ``deadline``. Use this between pages of a paginated fetch to fail fast instead of
agent/backtest/loaders/base.py:381
↓ 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 callersMethodclear
Drop all entries (used in test setup).
agent/src/api/live_routes.py:219
↓ 9 callersMethodclose
(self)
agent/src/tools/paper_trade/strategy_process.py:59
↓ 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 callersMethodcreate
(self, **kwargs: Any)
agent/tests/test_responses_stream_compat.py:20
↓ 9 callersMethodcreate_attempt
Create an execution attempt. Args: attempt: Attempt to create. Returns: The persisted Attempt.
agent/src/session/store.py:213
↓ 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:311
↓ 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:247
↓ 9 callersMethodfit
(self, values, labels)
agent/tests/test_ml_strategy_skill.py:42
↓ 9 callersFunctionfit_gpd_tail
Fit the loss tail with a generalised Pareto distribution (POT method). Extreme value theory says the exceedances over a high enough threshold
agent/src/quantlib/risk.py:633
↓ 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:111
↓ 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:222
↓ 9 callersFunctionis_portfolio_connection_profile
Report whether a profile can back a read-only portfolio connection. A profile qualifies only when it is read-only and declares both ``account
agent/src/trading/connections.py:39
↓ 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 callersFunctionlast_tick
Return a runner's last recorded heartbeat timestamp. Args: runner_id: The runner to read. Returns: The last-tick timestamp i
agent/src/live/runtime/liveness.py:103
↓ 9 callersMethodlatest
Return the scripted snapshot (``None`` when nothing is stored).
agent/tests/test_cli_portfolio.py:29
↓ 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 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:49
↓ 9 callersMethodlogin
Perform channel-specific interactive login (e.g. QR code scan). Args: force: If True, ignore existing credentials and force re-au
agent/src/channels/base.py:66
↓ 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:43
↓ 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 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 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 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 callersFunctionrecords_to_dataframe
Parse and sort datetimes, retaining source order for equal timestamps.
agent/src/tools/trade_journal_parsers.py:764
↓ 9 callersFunctionregistry
()
agent/tests/test_deferred_tool_loading.py:29
↓ 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:112
↓ 9 callersFunctionreset_llm_session_id
Restore the binding that was active before :func:`bind_llm_session_id`.
agent/src/providers/session_context.py:32
↓ 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:74
↓ 9 callersFunctionrun
()
agent/tests/test_llm.py:658
↓ 9 callersFunctionsaved_profile
Persist a rule with the given ``entry_condition`` and load it back.
agent/tests/test_shadow_codegen_condition_bounds.py:67
← previousnext →901–1,000 of 26,887, ranked by callers