MCPcopy Create free account

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

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

↓ 23 callersFunctionsample
(n_rows=3, times=None)
agent/tests/quantlib/test_neutralization.py:28
↓ 23 callersMethodwrite
(self, entry: dict)
agent/tests/test_audit_redact.py:191
↓ 23 callersFunctionxirr
Money-weighted return of an irregularly dated cash-flow series. Solves ``sum(amount_i / (1 + r) ** t_i) == 0`` where ``t_i`` is the year offs
agent/src/quantlib/fundmath.py:491
↓ 22 callersFunction_block
(launch_dir=None)
agent/tests/test_user_instructions.py:54
↓ 22 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:100
↓ 22 callersFunction_codes
(outcome)
agent/tests/test_paper_trade_rejections.py:108
↓ 22 callersFunction_job
( job_id: str = "job-001", *, schedule: str = "1000", next_run_at: int = 0, status: JobSta
agent/tests/test_scheduled_research_executor.py:35
↓ 22 callersFunction_load_module_from_file
Load a Python module from a file path via importlib. Args: file_path: Path to the ``.py`` file. module_name: Logical module name.
agent/backtest/runner.py:289
↓ 22 callersFunction_make_equity
Create a synthetic equity curve.
agent/tests/test_validation.py:59
↓ 22 callersFunction_outcome
( *, orders, cash=100000.0, positions=(), path_model="bar_median", market_data=None,
agent/tests/test_paper_trade_5m_engine.py:172
↓ 22 callersFunction_root
(tmp_path: Path)
agent/tests/test_user_instructions.py:46
↓ 22 callersFunction_save
(store: ResearchArtifactStore, **overrides)
agent/tests/test_research_artifact_store.py:14
↓ 22 callersFunction_store
(tmp_path: Path)
agent/tests/test_goal_store.py:25
↓ 22 callersFunction_with_profile
Add connector profile metadata to an operation payload.
agent/src/trading/service.py:1438
↓ 22 callersFunctionbuild_llm
Construct the configured LangChain chat model. Args: policy: Tool policy used by adapters that need host file roots or shell settings.
agent/src/providers/llm.py:59
↓ 22 callersFunctioncalls
()
agent/tests/claude_cli_helpers.py:83
↓ 22 callersFunctionclassify_tool
Classify one remote tool via the 3-tier precedence ladder. The curated map is authoritative: when it names the tool, its class is returned re
agent/src/live/classification.py:52
↓ 22 callersMethodclose
Close the database connection.
agent/src/memory/search_index.py:604
↓ 22 callersMethodexecute
Expose schemas without invoking a tool or changing its permissions. Args: names: Nonempty list of exact names to expose.
agent/src/product/tool_loading.py:160
↓ 22 callersFunctionextract_data_points
Extract recognizable financial data points from a markdown report. Covers multi-column tables and ``label: value unit`` lines. De-duplicates
agent/src/tools/report_audit_tool.py:213
↓ 22 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/product/resources/skills.py:107
↓ 22 callersFunctioninfer_market
Infer market key from a ticker symbol. Resolution order: 1. Crypto pair spellings (``BTC-USDT``, ``ETH/USD`` …). 2. Explicit exchange su
agent/backtest/correlation.py:20
↓ 22 callersFunctionload_config
Load eToro settings from ``~/.vibe-trading/etoro.json`` and env fallbacks.
agent/src/trading/connectors/etoro/client.py:151
↓ 22 callersFunctionpair_trades_fifo
Pair buys and sells per symbol using FIFO to compute per-roundtrip PnL. Reversal fees are shared proportionally between the closing quantity and
agent/src/tools/trade_journal_tool.py:78
↓ 22 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
↓ 22 callersMethodpoll
(self)
agent/tests/test_bash_tool.py:38
↓ 22 callersFunctionprice_caliber
Return the adjustment caliber of ``source``'s served prices. Args: source: Loader that served the prices. market: Market the symb
agent/backtest/loaders/registry.py:388
↓ 22 callersMethodregister_artifact
Register a new artifact, assigning an ID and timestamps. Returns: The assigned ``artifact_id``.
agent/src/strategy_store/store.py:191
↓ 22 callersMethodupdate_status
Update a goal status with stale-goal and completion validation.
agent/src/goal/store.py:703
↓ 22 callersMethodupsert_rows
Insert or replace evidence rows. Returns the number of rows written. Raises: ValueError: When any row carries a NaN/Inf numeric f
agent/src/strategy_discovery/evidence_store.py:234
↓ 21 callersFunction_cn_a
(cash=100000.0, positions=(), orders=(), frames=None, symbols=None, open_days=frozenset({_DAY}), fro
agent/tests/test_paper_trade_rejections.py:82
↓ 21 callersFunction_ledger
(tmp_path: Path, *, message: str = "分析 159516.SZ 并给出买入价")
agent/tests/test_grounding_figures_contract.py:80
↓ 21 callersFunction_make_trades
Create TradeRecord list from PnL values.
agent/tests/test_validation.py:34
↓ 21 callersFunction_mandate
(expires_in_days: int = 30, **caps_overrides: Any)
agent/tests/test_mandate_enforcement.py:95
↓ 21 callersFunction_run_adjustments
( engine: _AdjustmentEngine, weights: dict[str, list[float]], *, execution_prices: dict[str, l
agent/tests/test_base_engine.py:73
↓ 21 callersFunction_store
(tmp_path: Path)
agent/tests/scheduling/test_system_jobs.py:51
↓ 21 callersFunction_strict_engine
(**overrides)
agent/tests/test_crypto_engine.py:54
↓ 21 callersFunctionchannel_field_hints
Return UI field metadata for one channel. Hand-written hints win when present; otherwise the adapter's ``default_config()`` is inspected. Unk
agent/src/channels/config_meta.py:431
↓ 21 callersMethodget_account_snapshot
(self, config)
agent/tests/test_sdk_order_gate.py:75
↓ 21 callersFunctionget_llm_credentials
Resolve legacy-compatible credentials without changing process settings. Args: provider: Configured provider name. model: Configu
agent/src/providers/settings.py:171
↓ 21 callersMethodget_session
(self, session_id: str)
agent/tests/test_channels_runtime.py:41
↓ 21 callersMethodlist_jobs
Return jobs, optionally filtered by status. Args: status: When provided, include only jobs whose status matches this
agent/src/scheduled_research/store.py:198
↓ 21 callersFunctionparent_registry
(child_llm: ScriptedLLM, *tools: BaseTool, cancel_event=None, **spawn_kwargs: Any)
agent/tests/test_spawn_agent_tool.py:120
↓ 21 callersMethodrecord
(self, task_id: str, measured: UsageMeasure, raw: dict)
agent/src/swarm/runtime.py:229
↓ 21 callersMethodsearch
Full-text search with FTS5 MATCH. Args: query: User search query. max_results: Maximum results to return. Re
agent/src/memory/search_index.py:371
↓ 21 callersFunctionsplit_values_secrets
Split a raw config section into non-secret values and masked secrets. Each key is classified via :func:`is_secret_key`: a hand-written hint's
agent/src/channels/config_meta.py:495
↓ 21 callersMethodstatus
(self)
agent/tests/test_channels_config_api.py:85
↓ 21 callersFunctionwrite_live_action
Fan a redacted live-action record out to up to three sinks (SPEC §5). The record is redacted via :func:`src.tools.redaction.redact_payload` FIRST
agent/src/live/audit.py:246
↓ 20 callersFunction_module_name
Return a unique module name for import tests.
agent/tests/test_backtest_runner_security.py:12
↓ 20 callersFunction_place
(connector, **place_kwargs)
agent/tests/test_sdk_order_gate.py:143
↓ 20 callersFunction_run_visitor
Parse *source*, run the visitor, return (violations, warnings).
tools/test_ci_env_var_gate.py:32
↓ 20 callersFunction_store
(tmp_path: Path)
agent/tests/test_scheduled_research_executor.py:31
↓ 20 callersFunction_strict_frame
( dates: pd.DatetimeIndex, *, price: float = 100.0, mark: list[float] | None = None, execu
agent/tests/test_crypto_engine.py:69
↓ 20 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_refresh.py:58
↓ 20 callersFunction_to_yfinance_symbol
Convert project symbols into yfinance symbols. Args: code: Project symbol, for example ``AAPL.US``, ``700.HK``, or ``TD.TO``.
agent/backtest/loaders/yfinance_loader.py:54
↓ 20 callersFunction_tool
()
agent/tests/test_strategy_discovery_refresh.py:88
↓ 20 callersFunction_write_backtest
Write the files a completed backtest leaves behind, run card last.
agent/tests/test_grounding_backtest_outputs.py:79
↓ 20 callersMethodauthorize_tool_call
(self, tool_name, arguments, **kwargs)
agent/tests/test_agent_loop_deterministic_cache.py:209
↓ 20 callersMethodbuild_config
(self, profile_config, overrides)
agent/tests/test_etoro_live_actions.py:23
↓ 20 callersMethodcheck_available
Check if this tool's dependencies are met. Override in subclasses to check for API keys or packages. Returns: True when
agent/src/agent/tools.py:41
↓ 20 callersMethodcreate
Create a new connection instance. Args: connection_id: Identifier for the new connection. profile_id: Read-only profi
agent/src/trading/connections.py:231
↓ 20 callersFunctiondelay
(milliseconds: number)
desktop/electron/src/backend-manager.ts:440
↓ 20 callersMethodfill
Execute part or all of an unfinished order at ``price``. Status follows JoinQuant's names, not the everyday sense of "filled": a part
agent/src/tools/paper_trade/order_lifecycle.py:225
↓ 20 callersMethodget_attempt
Read an execution attempt. Args: session_id: Session ID owning the attempt. attempt_id: ID of the attempt record to r
agent/src/session/store.py:271
↓ 20 callersMethodget_contract_multiplier
(self, symbol: str)
agent/tests/test_nonpositive_prices.py:228
↓ 20 callersFunctionpublic_http_get
Serve standalone skill/example GETs through shared acquisition capacity.
agent/src/data_gateway/reads.py:282
↓ 20 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:227
↓ 20 callersMethodrepeat
(self, tmp_path: Path)
agent/tests/test_agent_output_discipline.py:906
↓ 20 callersFunctionreplay
Project compacted history into fresh model messages with repaired tool pairs and interruption notices. Args: items: Thread items in write
agent/src/session/replay.py:93
↓ 20 callersFunctionspec
()
agent/tests/test_history_store.py:25
↓ 20 callersMethodstatus
(self, job=None)
agent/src/data_gateway/history_store.py:367
↓ 20 callersMethodsync
Publish the events of items recorded since the last read. Args: session_id: Session ID. Returns: The highest
agent/src/session/event_projection.py:129
↓ 20 callersFunctionzscore
Cross-sectional z-score per row (axis=1, sample std). Rows with zero or NaN standard deviation become NaN — never silent zero.
agent/src/factors/base.py:87
↓ 19 callersFunction_buy
(symbol=_SYM, qty=100, limit=None)
agent/tests/test_paper_trade_rejections.py:94
↓ 19 callersFunction_buy
(limit=None, qty=100, symbol=_SYM)
agent/tests/test_paper_trade_5m_engine.py:204
↓ 19 callersMethod_get_conn
Get or create the SQLite connection (WAL mode).
agent/src/session/search.py:150
↓ 19 callersFunction_ledger
( tmp_path: Path, message: str = "请分析 562500.SS 并给出买入价", *, market: bool = True, indicator
agent/tests/test_grounding_diagnostics.py:101
↓ 19 callersFunction_loop
(registry=None)
agent/tests/test_readonly_replay_after_microcompact.py:88
↓ 19 callersFunction_parse_historical
Convert an FMP historical-price body into an ascending OHLCV frame. Stable API returns a top-level array; legacy ``{"historical": [...]}`` sh
agent/backtest/loaders/fmp_loader.py:220
↓ 19 callersFunction_run_strict
( engine: CryptoEngine, data_map: dict[str, pd.DataFrame], targets: dict[str, list[float]], )
agent/tests/test_crypto_engine.py:100
↓ 19 callersFunction_scan_symbols
Return the canonical symbols written anywhere in a blob of text.
agent/src/product/identity/normalize.py:134
↓ 19 callersFunction_write_mandate
(live_runtime: Path, mandate: Mandate)
agent/tests/test_mandate_enforcement.py:125
↓ 19 callersMethodapply
(self, w: np.ndarray, codes: Sequence[str])
agent/backtest/constraints.py:60
↓ 19 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:152
↓ 19 callersFunctioncompact_result_for_agent
Drop redundant copies of one MCP result before it reaches the agent. ``_normalize_call_tool_result`` keeps every surface programmatic callers of
agent/src/tools/mcp.py:1255
↓ 19 callersFunctiondetect_source
Infer the best loader source only for a recognized data identity.
agent/src/market_data.py:95
↓ 19 callersFunctionexample_document
(*facts)
agent/tests/test_research_financial_facts.py:34
↓ 19 callersMethodexecute
Run one read-only snapshot query. Args: **kwargs: ``action`` plus that action's parameters — ``stock_ids``, ``sta
agent/src/tools/taiwan_stock_data_tool.py:1094
↓ 19 callersMethodfor_scope
Return a handle over the same task table bound to another owner. Args: scope: Owner and attempt associated with the returned hand
agent/src/tools/background_tools.py:195
↓ 19 callersMethodget_goal
Return a goal by id.
agent/src/goal/store.py:456
↓ 19 callersFunctionmoney
Money-path entry conversion: ``Decimal(str(x))`` (VD-9).
agent/src/tools/paper_trade/rules.py:92
↓ 19 callersFunctionprepare_handoff
Copy upstream observations into this task's readable workspace. A plain ``input_from`` binding hands over everything its producer recorded behind
agent/src/swarm/evidence_handoff.py:434
↓ 19 callersFunctionregister_internal
Register *fn* under the literal key *name*. MODULE/TEST-ONLY: the production surface is the explicit dict entries at the bottom of this modul
agent/src/scheduling/registry.py:76
↓ 19 callersFunctionresolve_min_interval
Resolve a per-provider minimum request interval from the environment. Args: env_name: Env var carrying an override in seconds (e.g.
agent/backtest/loaders/_http.py:135
↓ 19 callersFunctionrun_dcf
Run a complete DCF from a flat mapping of named inputs. This is the entry point :mod:`contracts` was written for: every required field is nam
agent/src/quantlib/valuation/dcf.py:1258
↓ 19 callersFunctionrun_recorded_tools
(agent, calls, context, messages, recorder, iteration)
agent/tests/recording_helpers.py:18
↓ 19 callersFunctionscenario
()
agent/tests/test_scheduled_research_executor.py:63
↓ 19 callersMethodto_dict
Return a JSON-serializable profile snapshot.
agent/src/trading/types.py:63
↓ 18 callersFunction_dcf_inputs
A small, valid ``run_dcf`` inputs mapping (target capital structure).
agent/tests/quantlib/valuation/test_artifact.py:67
↓ 18 callersFunction_decay_row
A row that passes every Phase 1 gate (non-borderline by construction): 20 trades, adequate quality, comfortable breakeven, long coverage — so
agent/tests/test_strategy_discovery_facade.py:684
← previousnext →301–400 of 30,405, ranked by callers