MCPcopy Create free account

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

Functions16,853 in github.com/HKUDS/Vibe-Trading

↓ 17 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/technical_indicator_tool.py:207
↓ 17 callersMethodexecute
(self, tool_id: str, **kwargs: Any)
agent/tests/test_tools_type_value_safety.py:290
↓ 17 callersMethodget_positions
(self, config)
agent/tests/test_sdk_order_gate.py:60
↓ 17 callersFunctionpatch_module_os
Point ``module.os`` at a stand-in carrying ``overrides``. Args: monkeypatch: The test's ``monkeypatch`` fixture. module: The modu
agent/tests/module_os_helpers.py:31
↓ 17 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
↓ 17 callersMethodrow_count
Total number of stored evidence rows.
agent/src/strategy_discovery/evidence_store.py:356
↓ 17 callersFunctionrun_comps
Run a full comparable-companies valuation: EV bridge, multiples, implied range. Args: target: The company being valued. peers: Th
agent/src/quantlib/valuation/comps.py:1072
↓ 16 callersFunction_capture_kwargs
Run build_llm in a replaced environment and return the adapter kwargs. Args: env: Full environment for the call; every other variable is
agent/tests/test_llm_reasoning_effort.py:95
↓ 16 callersFunction_chain_router
Return a ``_sec_get`` stub serving a whole quarter's chain of filings. Each entry is ``{adsh, form, file_date, cover, rows}``: ``cover`` is the
agent/tests/test_institutional_holdings_tool.py:209
↓ 16 callersFunction_fts_hit
Build one EDGAR full-text search hit in the live ``_source`` shape.
agent/tests/test_institutional_holdings_tool.py:143
↓ 16 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:561
↓ 16 callersFunction_overrides
Build the local-connector override dict, rejecting malformed numerics. Args: kwargs: Raw tool arguments. Returns: Override m
agent/src/tools/trading_connector_tool.py:184
↓ 16 callersFunction_resp
A range-mode /candles body: {candles, truncated, coverage, stopReason, ...}.
agent/tests/test_tickerall_loader.py:40
↓ 16 callersFunction_seed
Populate a tmp memory dir with one entry per type.
agent/tests/test_cli_memory.py:14
↓ 16 callersMethodappend_evidence
Append traceable evidence after stale-goal validation. Args: session_id: Owning session id. goal_id: Goal being mutat
agent/src/goal/store.py:602
↓ 16 callersMethodclose
No-op: the stub owns no HTTP client.
agent/tests/test_swarm_m4_e2e.py:146
↓ 16 callersFunctionfetch
(*, codes, start_date, end_date, source, interval, **kwargs)
agent/tests/test_risk_xray.py:204
↓ 16 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:123
↓ 16 callersFunctionget_media_dir
Return a media directory for *channel_name* under the VT uploads root. Inbound media must land inside ``~/.vibe-trading/uploads`` — one of the
agent/src/channels/utils.py:16
↓ 16 callersFunctionload_config
Load Futu settings from ``~/.vibe-trading/futu.json``.
agent/src/trading/connectors/futu/sdk.py:191
↓ 16 callersFunctionload_panel
Load an entity x date x metric panel file into an ``EntityPanel``. The ingest module's generic counterpart to ``load_cashflows``, for data th
agent/src/entities/ingest.py:1181
↓ 16 callersFunctionload_playbook_file
Parse one playbook markdown file. Args: path: Path to a ``.md`` playbook file. Returns: The parsed :class:`ResearchPlaybook`
agent/src/scheduled_research/playbooks.py:250
↓ 16 callersFunctionmake_client
Build the REST client for a config (tests may override via ``set_client_factory``).
agent/src/trading/connectors/etoro/client.py:354
↓ 16 callersMethodoptimize
Apply optimizer to position weights. Args: ret: Return matrix (dates x codes). For a decision at ``dt``, only row
agent/backtest/optimizers/base.py:36
↓ 16 callersFunctiontime_weighted_return
Chain-link the true time-weighted return across a valuation series. Each interval's return removes that interval's external flow before divid
agent/src/quantlib/performance.py:512
↓ 16 callersFunctionts_argmin
Rolling argmin (0-based index into the window), warmup → NaN. Uses ``bottleneck.move_argmin`` when available (~350x faster). Correction: ``bn
agent/src/factors/base.py:238
↓ 15 callersFunction_baseline_peer
A self-consistent, LTM-ready peer for tests that are not about the big hand-computed fixture (EV bridge signs, exclusion, warnings, ...).
agent/tests/quantlib/valuation/test_comps.py:77
↓ 15 callersFunction_baseline_target
(name: str = "TARGET", **overrides: object)
agent/tests/quantlib/valuation/test_comps.py:98
↓ 15 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:51
↓ 15 callersFunction_engine
(**overrides)
agent/tests/test_india_equity_engine.py:23
↓ 15 callersFunction_event
A gamma event wrapping the supplied markets.
agent/tests/test_prediction_market_tool.py:116
↓ 15 callersFunction_is_china_futures
Check whether a futures code belongs to a Chinese exchange. Recognises two forms: 1. ``<product><delivery>.<exchange>`` where exchange is o
agent/backtest/engines/_market_hooks.py:157
↓ 15 callersFunction_make_config
(**overrides: Any)
agent/tests/test_mcp_client_adapter.py:80
↓ 15 callersFunction_make_store
Construct EvidenceStore tolerantly across positional/keyword db path.
agent/tests/test_strategy_discovery_store.py:36
↓ 15 callersFunction_make_trades
Create TradeRecord list from PnL values.
agent/tests/test_validation.py:34
↓ 15 callersMethod_numbers_without_dates_or_percent
Extract the numbers in a claim that could plausibly be prices. Digits that belong to a canonical symbol, a calendar date, an aggregate
agent/src/agent/grounding.py:2489
↓ 15 callersFunction_resolver_payload
( symbol: str = "562500.SS", *, candidates: list[dict[str, Any]] | None = None, query: str = "
agent/tests/test_agent_grounding.py:27
↓ 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 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/sentiment_tool.py:130
↓ 15 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:578
↓ 15 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
↓ 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 callersMethodget_quote
(self, symbol, *, config=None)
agent/tests/test_sdk_order_gate.py:369
↓ 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
↓ 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_close
Close an OpenD context, swallowing teardown errors.
agent/src/trading/connectors/futu/sdk.py:1053
↓ 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:1649
↓ 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_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 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_tools.py:43
↓ 14 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
↓ 14 callersMethodcreate_session
Create and persist a session. Args: session: Session instance to create. Returns: The persisted Session.
agent/src/session/store.py:59
↓ 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:1068
↓ 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 callersMethodlist
Return alpha IDs matching the (optional) filters.
agent/src/factors/registry.py:264
↓ 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 callersMethodread
(self)
agent/tests/test_tap_forward.py:32
↓ 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
↓ 14 callersMethodstream_chat
(self, messages, tools=None, on_text_chunk=None, timeout=None)
agent/tests/test_swarm_m4_e2e.py:137
↓ 14 callersFunctionthrottled_get_json
Throttled GET that decodes the response body as JSON. Same contract as :func:`throttled_get`, plus ``response.raise_for_status()`` and ``resp
agent/backtest/loaders/_http.py:176
↓ 14 callersMethodtick
Run one poll/dispatch pass. Args: now_ms: Optional explicit reference time. Defaults to ``now_fn``.
agent/src/scheduled_research/executor.py:308
↓ 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_classify_deliverable
Hybrid output contract. Return a short reason string when the worker did NOT produce a substantive deliverable, else ``None``. Content-sanity
agent/src/swarm/worker.py:1076
↓ 13 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:25
↓ 13 callersFunction_client
(fake_llm: _FakeStreamingLLM)
agent/tests/test_chat_llm_streaming.py:59
↓ 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:2481
↓ 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_ledger
( tmp_path: Path, *, message: str = "分析机器人ETF并给出买入价", )
agent/tests/test_grounding_recovery.py:33
↓ 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:1704
↓ 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_row
(strategy_id, regime, **overrides)
agent/tests/test_strategy_discovery_facade.py:180
↓ 13 callersMethod_rule_for
Get the sub-engine that provides rules for this symbol.
agent/backtest/engines/composite.py:152
↓ 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_unsupported
Return a standard unsupported-capability payload.
agent/src/trading/service.py:1227
↓ 13 callersFunctionact
()
frontend/src/pages/Agent.tsx:72
↓ 13 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:1037
↓ 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 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 callersMethodcompute
Lazy-import the alpha module and run its ``compute(panel)``. Raises: KeyError: alpha_id unknown. SkipAlpha: required
agent/src/factors/registry.py:321
← previousnext →201–300 of 16,853, ranked by callers