MCPcopy Create free account

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

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

↓ 25 callersFunction_make_engine
(**overrides)
agent/tests/test_crypto_engine.py:42
↓ 25 callersFunction_open_market
An unsettled binary market as gamma serializes it.
agent/tests/test_prediction_market_tool.py:31
↓ 25 callersFunction_response
Build a minimal stand-in for a ``requests.Response``. Args: text: Body used by the XML path. payload: Object returned by ``.json(
agent/tests/test_research_papers_tool.py:164
↓ 25 callersMethodapply
(self, w: np.ndarray, codes: Sequence[str])
agent/backtest/constraints.py:60
↓ 25 callersFunctioncall
(tool, **kwargs)
agent/tests/test_quantlib_tool.py:23
↓ 25 callersFunctionfn
()
agent/tests/test_loader_retry_helpers.py:62
↓ 25 callersMethodget_rows
Read evidence rows, optionally filtered, ordered by (strategy_id, regime).
agent/src/strategy_discovery/evidence_store.py:323
↓ 25 callersFunctionload_cashflows
Load an irregular dated cash-flow file into a ``CashFlowSeries``. The file needs a date column and an amount column. Currency and kind may co
agent/src/entities/ingest.py:316
↓ 25 callersFunctionload_mandate
Load the committed mandate for ``broker`` from the protected store. Reads ``<runtime_root>/live/<broker>/mandate.json`` (written 0600 by the
agent/src/live/mandate/store.py:42
↓ 24 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:139
↓ 24 callersFunction_frame
(rows: list[list[float]], dates: int | None = None)
agent/tests/factors/test_base.py:32
↓ 24 callersMethod_handle_message
Handle an incoming message: check permissions, issue pairing codes in DMs, or forward to bus.
agent/src/channels/base.py:179
↓ 24 callersMethod_parse_response
Convert a LangChain AIMessage (or AIMessageChunk) to ``LLMResponse``. Single source for reasoning: ``additional_kwargs["reasoning_content"]``
agent/src/providers/chat.py:462
↓ 24 callersFunction_run
(**kwargs: Any)
agent/tests/test_orderbook_depth_tool.py:56
↓ 24 callersFunction_sdk_module
Import the SDK connector module for a ``broker_sdk`` connector key.
agent/src/trading/service.py:32
↓ 24 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:403
↓ 23 callersFunction_assets
(n=200)
agent/tests/quantlib/test_factormodel.py:26
↓ 23 callersFunction_install
Monkeypatch ``_fetch_raw_book`` to return ``book`` and record call args.
agent/tests/test_orderbook_depth_tool.py:44
↓ 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 callersMethodclose
Close the file handle.
agent/src/agent/trace.py:181
↓ 23 callersMethoddone
(self)
agent/tests/test_api_live_runtime.py:199
↓ 23 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
↓ 23 callersMethodget_historical_bars
(self, symbol, **kw)
agent/tests/test_india_broker_loader.py:76
↓ 23 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:265
↓ 23 callersMethodregister_artifact
Register a new artifact. Returns the artifact_id.
agent/src/strategy_store/store.py:80
↓ 23 callersMethodrun
Run the ReAct loop synchronously. Args: user_message: User message. history: Prior conversation messages.
agent/src/agent/loop.py:906
↓ 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:167
↓ 22 callersFunction_make_engine
(**overrides)
agent/tests/test_forex_engine.py:38
↓ 22 callersFunction_panel
Build a return frame generated by a known market model.
agent/tests/quantlib/test_eventstudy.py:19
↓ 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 callersMethodfind_relevant
Keyword search across all entries, weighted by importance.
agent/src/memory/persistent.py:362
↓ 22 callersFunctiongetChartTheme
()
frontend/src/lib/chart-theme.ts:59
↓ 22 callersFunctionload_config
Load eToro settings from ``~/.vibe-trading/etoro.json`` and env fallbacks.
agent/src/trading/connectors/etoro/client.py:149
↓ 22 callersMethodrender
Build the Rich renderable shown while the run is active.
agent/cli/_legacy.py:794
↓ 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 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 callersFunction_with_profile
Add connector profile metadata to an operation payload.
agent/src/trading/service.py:1078
↓ 21 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:178
↓ 21 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:213
↓ 21 callersMethodclear
(self, session_id)
agent/tests/test_openbb_bridge/test_adapter.py:30
↓ 21 callersMethodget_goal_snapshot
Return a JSON-safe goal snapshot.
agent/src/goal/store.py:587
↓ 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:580
↓ 21 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 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 callersMethod_fetch_one
(code: str = code)
agent/backtest/loaders/tushare.py:180
↓ 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 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_refresh.py:51
↓ 20 callersFunction_tool
()
agent/tests/test_strategy_discovery_refresh.py:81
↓ 20 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:1327
↓ 20 callersFunctiondelay
(milliseconds: number)
desktop/electron/src/backend-manager.ts:440
↓ 20 callersMethodlist_entries
Return all persisted memory entries, filename-sorted.
agent/src/memory/persistent.py:313
↓ 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 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:113
↓ 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
↓ 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_set_creds
Patch the loader's config accessors directly (no config-cache dependency).
agent/tests/test_tickerall_loader.py:63
↓ 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 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:166
↓ 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 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 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_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
↓ 18 callersFunction_flow
Build a CashFlow on 2024-01-<day> for terse test construction.
agent/tests/test_entities_spine.py:36
↓ 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_screened_ledger
Return a ledger that screened broadly, then locked one candidate.
agent/tests/test_agent_grounding.py:1053
↓ 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 callersMethodconnect
(self, host, port, *, clientId, timeout, readonly=True, account="")
agent/tests/test_ibkr_local.py:41
↓ 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 callersMethodfrom_dict
Deserialize a session from a dictionary. Args: data: Dictionary produced from parsed JSON. Returns: A Sessio
agent/src/session/models.py:179
↓ 18 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:338
↓ 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 callersMethodremove
Remove a memory entry by name. Returns True if found and removed.
agent/src/memory/persistent.py:597
↓ 18 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
↓ 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_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_engine
(**overrides)
agent/tests/test_vietnam_equity_engine.py:21
↓ 17 callersFunction_instantiate_tools
()
agent/tests/test_strategy_discovery_tools.py:115
↓ 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:97
↓ 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 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
↓ 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 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
← previousnext →101–200 of 16,853, ranked by callers