MCPcopy Create free account

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

Functions15,301 in github.com/HKUDS/Vibe-Trading

↓ 15 callersFunction_make_config
(**overrides: Any)
agent/tests/test_mcp_client_adapter.py:78
↓ 15 callersFunction_make_trades
Create TradeRecord list from PnL values.
agent/tests/test_validation.py:34
↓ 15 callersFunction_normalize_symbol
Normalize a symbol onto one canonical identity for exact comparison. Args: value: Any provider- or model-supplied symbol spelling. R
agent/src/agent/grounding.py:397
↓ 15 callersFunction_run_cli
Drive the real argparse dispatcher, returning its exit code.
agent/tests/test_playbooks_surface.py:104
↓ 15 callersMethod_run_sync
Run _sync_provider_env with a clean env and return relevant keys.
agent/tests/test_llm.py:130
↓ 15 callersFunction_write
(directory: Path, slug: str, text: str)
agent/tests/test_research_playbooks.py:54
↓ 15 callersFunction_write_config
( path, *, enabled: bool = True, api_key: str = "sk_test", mode: str = "paid", budget:
agent/tests/test_qveris_loader.py:71
↓ 15 callersFunctionappend_record
Append one hash-chained record to a JSONL ledger, durably. Reads and verifies the ledger's ENTIRE existing chain under an exclusive advisory
agent/src/governance/ledger.py:368
↓ 15 callersFunctionbond_price
Present value of a bullet bond settling on a coupon date. The result is a *clean* price: settlement is assumed to sit on a coupon date so no
agent/src/quantlib/fixedincome.py:266
↓ 15 callersMethodclose
(self)
agent/tests/test_loader_retry_helpers.py:192
↓ 15 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/sentiment_tool.py:130
↓ 15 callersMethodget_content
Return the full documentation for a skill (used by the load_skill tool). Falls back to disk lookup for user skills created mid-session.
agent/src/agent/skills.py:166
↓ 15 callersMethodget_current_snapshot
Return the current goal plus ledger rows for a session.
agent/src/goal/store.py:579
↓ 15 callersFunctionhalt_flag_set
Return whether live trading is halted — a pure filesystem check. This is the authoritative kill-switch check the enforcement gate calls before
agent/src/live/halt.py:135
↓ 15 callersFunctionpurged_kfold_splits
K contiguous test blocks, each with training purged and embargoed. Folds are contiguous in time rather than shuffled: shuffling destroys the
agent/src/quantlib/crossvalidation.py:209
↓ 14 callersFunction_build_args
Build a Namespace pre-populated with sane defaults that ``_registry`` and handlers expect to read.
agent/tests/test_cli_hypothesis.py:47
↓ 14 callersFunction_call
(path: Path, pages: str = "")
agent/tests/test_doc_reader.py:14
↓ 14 callersFunction_flow
Small constructor to keep the isolated unit tests below readable.
agent/tests/quantlib/valuation/test_comps.py:59
↓ 14 callersFunction_generate_signals
Render + load + execute a SignalEngine against a data_map.
agent/tests/test_shadow_account.py:1622
↓ 14 callersFunction_intent
(notional=500.0, qty=None, asset=AssetClass.US_EQUITY)
agent/tests/test_sdk_order_gate.py:112
↓ 14 callersFunction_make_bar
(close: float = 60000.0, open_: float | None = None)
agent/tests/test_crypto_engine.py:38
↓ 14 callersFunction_paper_cfg
()
agent/tests/test_alpaca_tap_routing.py:23
↓ 14 callersFunction_resolver_payload
( symbol: str = "562500.SS", *, candidates: list[dict[str, Any]] | None = None, query: str = "
agent/tests/test_agent_grounding.py:24
↓ 14 callersFunction_router
Return a ``_sec_get`` stub that answers by URL, as the live endpoints do. Full-text search is filtered by the ``ciks`` parameter the way the live
agent/tests/test_institutional_holdings_tool.py:177
↓ 14 callersMethodconnect
(self, host, port, *, clientId, timeout, readonly=True, account="")
agent/tests/test_ibkr_local.py:41
↓ 14 callersFunctiondispatch
Dispatch ``alpha <sub>`` to the matching handler. Returns the exit code; ``cli.py`` propagates it via ``_coerce_exit_code``.
agent/src/factors/cli_handlers.py:1048
↓ 14 callersFunctionfetch
(*, codes, start_date, end_date, source, interval, **kwargs)
agent/tests/test_risk_xray.py:204
↓ 14 callersFunctionfn
()
agent/tests/test_loader_retry_helpers.py:62
↓ 14 callersFunctionhistorical_var
Value at Risk from the empirical distribution of past returns. Makes no distributional assumption: it simply reads the loss off the sorted sa
agent/src/quantlib/risk.py:142
↓ 14 callersFunctionload_config
Load Trading 212 settings from ``~/.vibe-trading/trading212.json``.
agent/src/trading/connectors/trading212/sdk.py:139
↓ 14 callersFunctionnormalize_date
Coerce a supported date input to a plain ``datetime.date``. ``datetime`` instances are truncated to their date, because a cash flow settles o
agent/src/entities/models.py:95
↓ 14 callersFunctionproject_three_statement
Project linked income, cash flow and balance-sheet statements forward. Args: opening: The opening balance sheet plus trailing revenue. Mu
agent/src/quantlib/valuation/threestatement.py:636
↓ 14 callersFunctionredact_internal_paths
Replace internal root prefixes with '<redacted>', keep relative tail. Every occurrence of an internal root is replaced when it ends at a real
agent/src/tools/redaction.py:194
↓ 14 callersFunctionredact_payload
Recursively redact sensitive keys in a structured payload. Walks dicts and lists; any dict value whose key :func:`is_sensitive_arg` is replac
agent/src/tools/redaction.py:291
↓ 14 callersFunctionresolve_longbridge_credentials
Resolve credentials atomically from environment or the legacy runtime file.
agent/src/trading/connectors/longbridge/credentials.py:49
↓ 14 callersMethodsave
Atomically persist the job set. Write sequence (durable even under SIGKILL): temp file in the same dir → ``os.fsync`` the temp fd → `
agent/src/live/runtime/jobstore.py:124
↓ 14 callersFunctionscenario
()
agent/tests/test_channels_runtime.py:224
↓ 13 callersFunction_bar
(close: float = 100.0, pre_close: float | None = None, open_: float | None = None)
agent/tests/test_korea_equity_engine.py:37
↓ 13 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:25
↓ 13 callersFunction_closes
(series_map: dict[str, list[float]], start: str = "2026-01-01")
agent/tests/test_risk_xray.py:21
↓ 13 callersMethod_emit
Fire an event via the callback.
agent/src/agent/loop.py:1906
↓ 13 callersFunction_facts
Wrap unit rows in the companyfacts envelope shape.
agent/tests/test_sec_period_frames.py:40
↓ 13 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/sessions_routes.py:313
↓ 13 callersFunction_make_bar
Build a minimal bar Series for testing.
agent/tests/test_china_a_engine.py:31
↓ 13 callersFunction_profile
(rule: ShadowRule)
agent/tests/test_shadow_account.py:1677
↓ 13 callersFunction_propose
Run the propose tool and return the parsed proposal payload.
agent/tests/test_consent_commit.py:55
↓ 13 callersFunction_remote_client
Return a TestClient that simulates a non-loopback caller.
agent/tests/test_security_auth_api.py:14
↓ 13 callersFunction_run_adjustments
( engine: _AdjustmentEngine, weights: dict[str, list[float]], *, execution_prices: dict[str, l
agent/tests/test_base_engine.py:73
↓ 13 callersFunction_with_profile
Add connector profile metadata to an operation payload.
agent/src/trading/service.py:873
↓ 13 callersFunctionact
()
frontend/src/pages/Agent.tsx:72
↓ 13 callersFunctionbootstrap_sharpe_ci
Resample daily returns to estimate Sharpe confidence interval. Args: equity_curve: Equity time series. n_bootstrap: Number of boo
agent/backtest/validation.py:136
↓ 13 callersFunctionbrinson_fachler
Decompose one period's active return into allocation, selection and interaction. Sector returns may be omitted only where the corresponding weigh
agent/src/quantlib/attribution.py:209
↓ 13 callersFunctionbuild_run_manifest
Build a :class:`RunManifest` from raw run composition data. Args: run_id: Run/session identifier (provenance only, not hashed). t
agent/src/governance/manifest.py:356
↓ 13 callersMethodcheck_available
Check if this tool's dependencies are met. Override in subclasses to check for API keys, packages, etc. Tools that return False are e
agent/src/agent/tools.py:30
↓ 13 callersMethodcreate_session
Create and persist a session. Args: session: Session instance to create. Returns: The persisted Session.
agent/src/session/store.py:59
↓ 13 callersFunctionfit_records
Serialize the largest whole-record page of ``records[offset:]`` that fits. Args: records: All available records, newest first by the call
agent/src/tools/_result_paging.py:23
↓ 13 callersMethodfrom_mapping
Build a table from ``{(base_currency, date): rate}`` pairs. Args: mapping: Each value is units of ``quote_currency`` per 1 unit o
agent/src/entities/cashflow.py:584
↓ 13 callersMethodget
(self, aid: str)
agent/tests/factors/test_bench_strict.py:443
↓ 13 callersFunctionlist_playbooks
Load every available playbook, sorted by slug. A slug found in an earlier directory shadows the same slug later, so a user file overrides the
agent/src/scheduled_research/playbooks.py:352
↓ 13 callersMethodload
Load the persisted jobs. A missing store (never written) is the *only* clean empty result. A store that exists but fails to parse is
agent/src/live/runtime/jobstore.py:98
↓ 13 callersFunctionload_preset
Load a YAML preset by name (user directory first, then bundled). Args: name: Preset name (without .yaml extension). Returns:
agent/src/swarm/presets.py:81
↓ 13 callersFunctionmake_client
Build the REST client for a config (tests may override via ``set_client_factory``).
agent/src/trading/connectors/etoro/client.py:301
↓ 13 callersFunctionmigrate_legacy_state
Move legacy code-relative state directories under the runtime root. Idempotent: once a legacy entry has been moved (or was never there), late
agent/src/config/migrate.py:114
↓ 13 callersMethodreconcile_run
Single source of truth for "what does this run actually look like". Three layered transforms, applied in order to ``run``: 1. **Hydr
agent/src/swarm/store.py:364
↓ 13 callersMethodregister_artifact
Register a new artifact, assigning an ID and timestamps. Returns: The assigned ``artifact_id``.
agent/src/strategy_store/store.py:161
↓ 13 callersFunctionrun_bench_strict
Strict-mode bench: like ``run_bench`` but with mandatory random control. Args: zoo: Zoo id (e.g. ``alpha101``, ``gtja191``, ``qlib158``,
agent/src/factors/bench_runner_strict.py:317
↓ 13 callersMethodsave_task
Save or overwrite task state. Args: task: SwarmTask instance.
agent/src/swarm/task_store.py:47
↓ 13 callersFunctionvalidate_ohlc
Drop, flag, or reject bars that violate OHLC invariants. Loaders only drop NaN rows, so structurally dirty bars — ``high < low``, a non-posit
agent/backtest/loaders/base.py:50
↓ 12 callersFunction_bars
(closes)
agent/tests/test_alpha_bench_qfq.py:24
↓ 12 callersFunction_calc_options_metrics
Calculate options backtest metrics. Args: equity: Equity series. initial_cash: Initial capital. trades: List of trade rec
agent/backtest/engines/options_portfolio.py:554
↓ 12 callersFunction_create_market_engine
Create the appropriate market engine based on data source and market type. Routing priority: 1. Detect market type from symbol patterns (fu
agent/backtest/runner.py:1247
↓ 12 callersMethod_ctx
(self, n_assets: int = 5, seed: int = 42)
agent/tests/test_turnover_aware_optimizer.py:153
↓ 12 callersMethod_fetch_daily_frame
Fetch and normalize one daily OHLCV frame, routing by symbol type.
agent/backtest/loaders/tushare.py:204
↓ 12 callersFunction_install_session
(monkeypatch, responses: list[_FakeResponse])
agent/tests/test_qveris_loader.py:115
↓ 12 callersFunction_is_error_result
Did a tool call return a top-level error envelope? Parses the result as JSON and checks for a top-level ``status == "error"``. Also treats ``
agent/src/swarm/worker.py:865
↓ 12 callersFunction_make_registry
(tmp_path: Path)
agent/tests/test_cli_hypothesis.py:18
↓ 12 callersFunction_mandate
( *, max_order=1_000_000.0, max_trades=100, assets=(AssetClass.US_EQUITY,), instruments=(I
agent/tests/test_sdk_order_gate.py:70
↓ 12 callersFunction_market
Normalize one gamma market through the tool and return the record.
agent/tests/test_prediction_market_tool.py:168
↓ 12 callersFunction_patch_gate
(monkeypatch, *, mandate, halted=False)
agent/tests/test_sdk_order_gate.py:103
↓ 12 callersFunction_rendered_prompt
()
agent/tests/test_agent_output_discipline.py:46
↓ 12 callersMethod_rule_for
Get the sub-engine that provides rules for this symbol.
agent/backtest/engines/composite.py:149
↓ 12 callersFunction_screened_ledger
Return a ledger that screened broadly, then locked one candidate.
agent/tests/test_agent_grounding.py:964
↓ 12 callersFunction_trade
( symbol: str = "X", pnl: float = 100.0, direction: int = 1, exit_reason: str = "signal",
agent/tests/test_metrics.py:34
↓ 12 callersFunctionar1
Generate a mean-zero AR(1) series, the discrete analogue of an OU process. Args: phi: Persistence coefficient; |phi| < 1 gives a stationa
agent/tests/quantlib/test_timeseries.py:46
↓ 12 callersMethodauthorize_tool_call
Authorize against identity state frozen before the whole LLM batch. Args: tool_name: Requested tool. arguments: Model
agent/src/agent/grounding.py:811
↓ 12 callersFunctioncategorise_strict
Bucket a strict bench row into one of four ``StrictCategory`` values. Required keys on ``row``: - ``alpha_t_full`` (float) - ``al
agent/src/factors/bench_runner_strict.py:242
↓ 12 callersMethodclear
Clear all issued tokens.
agent/src/channelsui/gateway_services.py:44
↓ 12 callersMethodclose
Close the database connection.
agent/src/memory/search_index.py:447
↓ 12 callersMethodcompute
Lazy-import the alpha module and run its ``compute(panel)``. Raises: KeyError: alpha_id unknown. SkipAlpha: required
agent/src/factors/registry.py:321
↓ 12 callersFunctionfcff_bridge
Build the EBIT -> FCFF bridge for every projection year. Args: ebit: EBIT forecast, one entry per projection year, oldest first.
agent/src/quantlib/valuation/dcf.py:540
↓ 12 callersMethodfetch
Return preloaded rows for requested codes.
agent/backtest/runner.py:1571
↓ 12 callersFunctionfetch_market_data
Fetch normalized OHLCV data through the repository loader layer. When ``source="auto"`` (or any resolved source), if the chosen loader raises
agent/src/market_data.py:97
↓ 12 callersMethodfocus
()
frontend/src/components/chat/Composer.tsx:49
↓ 12 callersMethodformat_assistant_tool_calls
Format an assistant tool_calls message, preserving thinking text. Args: tool_calls: List of tool call objects. conten
agent/src/agent/context.py:373
↓ 12 callersFunctionget_json
Issue a throttled Eastmoney GET and decode the body as JSON. Args: url: Fully-qualified Eastmoney endpoint URL. params: Query par
agent/backtest/loaders/eastmoney_client.py:81
↓ 12 callersMethodindex_session
(self, session_id: str, title: str)
agent/tests/test_session_tool_trail.py:18
↓ 12 callersMethodis_available
Probe public candles with a short timeout (honours proxy env).
agent/backtest/loaders/okx.py:109
↓ 12 callersMethodlist
Return alpha IDs matching the (optional) filters.
agent/src/factors/registry.py:264
↓ 12 callersMethodread
(self)
agent/tests/test_tap_forward.py:32
↓ 12 callersFunctionrender_verdict
Render a PASS/FAIL verdict from per-point verification results. Each result with a ``fetched_value`` is judged against the reported value at
agent/src/tools/report_audit_tool.py:265
← previousnext →201–300 of 15,301, ranked by callers