MCPcopy Create free account

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

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

↓ 23 callersFunction_make_engine
(**overrides)
agent/tests/test_china_a_engine.py:49
↓ 23 callersFunction_make_server_config
Create a minimal MCPServerConfig-like object for testing.
agent/tests/test_mcp_specs_cache.py:33
↓ 23 callersFunction_raw_book
Build a ccxt-shaped OrderBook dict, as ``fetch_order_book`` returns it.
agent/tests/test_orderbook_depth_tool.py:27
↓ 23 callersFunction_reload_base_with_bottleneck
Reload base.py with bottleneck enabled or disabled.
agent/tests/test_factor_operators.py:21
↓ 23 callersFunctioncached_loader_fetch
Fetch one DataFrame through the opt-in local cache. Convenience wrapper over :func:`loader_cache_get` / :func:`loader_cache_put` for the comm
agent/backtest/loaders/base.py:401
↓ 23 callersMethodregister_artifact
Register a new artifact. Returns the artifact_id.
agent/src/strategy_store/store.py:80
↓ 23 callersFunctionset_client_factory
Override or reset the connector client factory (used by unit tests).
agent/src/trading/connectors/etoro/client.py:306
↓ 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_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:165
↓ 22 callersFunction_make_engine
(**overrides)
agent/tests/test_forex_engine.py:38
↓ 22 callersFunction_store
(tmp_path: Path)
agent/tests/test_goal_store.py:21
↓ 22 callersMethodaddEventListener
(type: string, handler: ESHandler)
frontend/src/hooks/__tests__/useSSE.test.ts:19
↓ 22 callersMethodrender
Build the Rich renderable shown while the run is active.
agent/cli/_legacy.py:769
↓ 22 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:248
↓ 21 callersMethod_execute_bars
Bar-by-bar execution with market rule enforcement.
agent/backtest/engines/base.py:852
↓ 21 callersFunction_local_client
Return a TestClient that simulates a loopback caller.
agent/tests/test_security_auth_api.py:19
↓ 21 callersFunction_strict_engine
(**overrides)
agent/tests/test_crypto_engine.py:54
↓ 21 callersMethoddone
(self)
agent/tests/test_api_live_runtime.py:199
↓ 21 callersMethodget_goal_snapshot
Return a JSON-safe goal snapshot.
agent/src/goal/store.py:587
↓ 21 callersMethodget_historical_bars
(self, symbol, **kw)
agent/tests/test_india_broker_loader.py:76
↓ 21 callersMethodon_bar
Per-bar market-rule hook (funding fees, liquidation, etc.). Default: no-op. Override in subclass as needed.
agent/backtest/engines/base.py:558
↓ 21 callersFunctionprofile_by_id
Resolve a profile id or the saved selected profile. Args: profile_id: Optional explicit profile id. Returns: Matching profil
agent/src/trading/profiles.py:54
↓ 21 callersMethodrun
Run the ReAct loop synchronously. Args: user_message: User message. history: Prior conversation messages.
agent/src/agent/loop.py:624
↓ 21 callersMethodupsert
(self, job: ScheduledResearchJob, *, validate: bool = True)
agent/tests/test_scheduled_research_executor.py:676
↓ 21 callersFunctionvwap
Market-aware VWAP-equivalent reference price. - ``equity_cn``: ``(amount * 1000) / (volume * 100 + 1)`` — Tushare's ``daily.amount`` is in
agent/src/factors/base.py:321
↓ 20 callersFunction_make_engine
(**overrides)
agent/tests/test_global_futures_engine.py:47
↓ 20 callersFunction_module_name
Return a unique module name for import tests.
agent/tests/test_backtest_runner_security.py:12
↓ 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 callersFunctionbar_returns
Per-bar simple returns, defined only where the prior price is positive. ``close.pct_change()`` silently assumes ``price[t-1] > 0``. That holds fo
agent/backtest/metrics.py:175
↓ 20 callersMethodfind_relevant
Keyword search across all entries, weighted by importance.
agent/src/memory/persistent.py:358
↓ 20 callersFunctionget_provider_capabilities
Return the capability record for a provider/model pair. Args: provider: Configured provider name. model: Configured model name, u
agent/src/providers/capabilities.py:220
↓ 20 callersMethodlist_entries
Return all persisted memory entries, filename-sorted.
agent/src/memory/persistent.py:309
↓ 20 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:179
↓ 20 callersFunctionload_config
Load eToro settings from ``~/.vibe-trading/etoro.json`` and env fallbacks.
agent/src/trading/connectors/etoro/client.py:139
↓ 20 callersFunctionnext_due
Return the first due epoch-ms strictly after ``after_ms``. Supports the scheduled-research schedule format: a bare positive integer string fo
agent/src/scheduled_research/executor.py:87
↓ 20 callersMethodrun_dir
Return the directory path for a given run. Args: run_id: Run identifier. Returns: Path to the run directory.
agent/src/swarm/store.py:135
↓ 20 callersMethodupsert
Insert or replace a job by id. Validates the schedule string and the timezone's shape before persisting. The timezone key is delibera
agent/src/scheduled_research/store.py:138
↓ 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_strict_frame
( dates: pd.DatetimeIndex, *, price: float = 100.0, mark: list[float] | None = None, execu
agent/tests/test_crypto_engine.py:69
↓ 19 callersFunctiondelay
(milliseconds: number)
desktop/electron/src/backend-manager.ts:400
↓ 19 callersFunctionevent_study
Measure the abnormal return around a set of dated events. Args: returns: Simple returns, rows indexed by date, one column per symbol.
agent/src/quantlib/eventstudy.py:298
↓ 19 callersFunctionrun_bench
Run a bench end-to-end and return the API-shaped summary. Args: zoo: Zoo id (e.g. ``gtja191``, ``alpha101``, ``qlib158``). univer
agent/src/factors/bench_runner.py:137
↓ 19 callersFunctionscenario
()
agent/tests/test_scheduled_research_executor.py:63
↓ 19 callersMethodupdate_status
Update a goal status with stale-goal and completion validation.
agent/src/goal/store.py:701
↓ 18 callersFunction_connection
(value: Any)
agent/src/tools/trading_connector_tool.py:44
↓ 18 callersFunction_detect_market
Infer market type from symbol format. Args: code: Ticker / symbol string. Returns: Market type (a_share/us_equity/hk_equity/
agent/backtest/engines/_market_hooks.py:135
↓ 18 callersMethod_fetch_one
(code: str = code)
agent/backtest/loaders/tushare.py:177
↓ 18 callersFunction_flow
Build a CashFlow on 2024-01-<day> for terse test construction.
agent/tests/test_entities_spine.py:36
↓ 18 callersFunction_json_result
(payload: dict[str, Any])
agent/src/tools/trading_connector_tool.py:40
↓ 18 callersFunction_ledger
A ledger that has retrieved one AAPL.US quote through *tool*.
agent/tests/test_agent_output_discipline.py:170
↓ 18 callersFunction_make_equity
Create a synthetic equity curve.
agent/tests/test_validation.py:59
↓ 18 callersFunction_panel
Build a return frame generated by a known market model.
agent/tests/quantlib/test_eventstudy.py:19
↓ 18 callersFunctionbroker_dir
Return the per-broker state directory under the live root. Args: broker: Broker key, e.g. ``"robinhood"``. Normalized to lower-case and
agent/src/live/paths.py:33
↓ 18 callersMethodcancel_order
(self, config, order_id, **kwargs)
agent/tests/test_etoro_live_actions.py:47
↓ 18 callersMethoddelete
Remove a job by id. Args: job_id: Identifier of the job to remove. Returns: ``True`` when the job was found
agent/src/scheduled_research/store.py:201
↓ 18 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:1091
↓ 18 callersMethodis_allowed
Check sender permission: star > allowlist > pairing store > deny.
agent/src/channels/base.py:165
↓ 18 callersMethodlist_criteria
Return criteria for a goal.
agent/src/goal/store.py:481
↓ 18 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:1191
↓ 18 callersFunctionts_argmax
Rolling argmax (0-based index into the window), warmup → NaN. Uses ``bottleneck.move_argmax`` when available (~350x faster). Correction: ``bn
agent/src/factors/base.py:221
↓ 17 callersFunction_base_run
(run_id: str = "r", *, timeout: int = 300, retries: int = 0)
agent/tests/test_swarm_status_hydration.py:45
↓ 17 callersFunction_build_runner
Build a runner wired entirely to the tracker stubs, with overrides.
agent/tests/test_runtime_runner.py:145
↓ 17 callersFunction_dcf_inputs
A small, valid ``run_dcf`` inputs mapping (target capital structure).
agent/tests/quantlib/valuation/test_artifact.py:67
↓ 17 callersFunction_make_cache_key
Build a content-based cache key for MCP tool discovery results. Every field that can change the tool specs a server returns must participate
agent/src/tools/mcp.py:96
↓ 17 callersFunction_make_job
( job_id: str = "job-001", prompt: str = "analyse AAPL momentum", schedule: str = "60000", )
agent/tests/test_scheduled_research_store.py:29
↓ 17 callersFunction_mandate
(expires_in_days: int = 30, **caps_overrides: Any)
agent/tests/test_mandate_enforcement.py:94
↓ 17 callersFunction_sdk_module
Import the SDK connector module for a ``broker_sdk`` connector key.
agent/src/trading/service.py:32
↓ 17 callersFunctionbs_greeks
Compute the five Black-Scholes-Merton Greeks. Args: S: Underlying spot price. K: Strike price. T: Time to expiry in years
agent/src/quantlib/options.py:197
↓ 17 callersFunctionbuild_llm
Construct the configured LangChain chat model. Args: model_name: Model name; defaults to LANGCHAIN_MODEL_NAME. callbacks: Optiona
agent/src/providers/llm.py:1201
↓ 17 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
↓ 17 callersMethodclear
(self, session_id)
agent/tests/test_openbb_bridge/test_adapter.py:30
↓ 17 callersFunctioncommit_mandate
Write a mandate — the ONLY code path that activates live-trading authority. Re-validates that ``proposal_id`` is live and that the resolved profi
agent/src/live/mandate/commit.py:312
↓ 17 callersFunctioncompute_risk_xray
Compute the risk x-ray for a weighted basket. Args: closes: Close-price panel, one column per symbol, sorted by date. weights: Sy
agent/backtest/risk_xray.py:86
↓ 17 callersMethodemit
Build and publish an event in one step. Args: session_id: Session ID. event_type: Event type. data: Event
agent/src/session/events.py:127
↓ 17 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/technical_indicator_tool.py:200
↓ 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 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:127
↓ 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_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_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 callersFunctionbase_inputs
Fresh copy of the worked example's ``run_dcf`` inputs mapping. Args: structure: ``"target"`` supplies ``target_equity_weight``/
agent/tests/quantlib/valuation/test_dcf.py:88
↓ 16 callersMethodfrom_dict
Deserialize a session from a dictionary. Args: data: Dictionary produced from parsed JSON. Returns: A Sessio
agent/src/session/models.py:179
↓ 16 callersFunctionget_llm_credentials
Resolve API key, base URL, and model from provider/model env vars. Centralizes the ``provider → env_var_name → os.getenv → credential`` chain
agent/src/providers/capabilities.py:293
↓ 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_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 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 callersMethodremove
Remove a memory entry by name. Returns True if found and removed.
agent/src/memory/persistent.py:593
↓ 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:505
↓ 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_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:153
← previousnext →101–200 of 15,301, ranked by callers