MCPcopy Create free account

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

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

↓ 995 callersMethodget
Retrieve a tool by name.
agent/src/agent/tools.py:66
↓ 499 callersMethodexecute
(self, *args, **kwargs)
agent/tests/test_qveris_tool.py:146
↓ 439 callersMethodget
(self, tool_name: str)
agent/tests/test_tool_timeout.py:18
↓ 331 callersFunctionset
(id, value)
wiki/main.js:131
↓ 324 callersMethodread_text
(self, filename: str)
agent/tests/test_cli_update.py:96
↓ 266 callersFunctionsafe_div
Safe division: ``a / (b + eps * sign(b))``. Where ``b == 0`` exactly (or NaN), result is NaN — never silently inf or 0.
agent/src/factors/base.py:306
↓ 248 callersMethodjson
(self)
agent/tests/test_cli_runtime.py:97
↓ 228 callersMethodsplit
(_line: str)
agent/src/channels/feishu.py:1069
↓ 189 callersMethodupdate
Update an existing hypothesis. Args: hypothesis_id: Registry identifier. title: Optional replacement title.
agent/src/hypotheses/registry.py:214
↓ 173 callersMethodrun
(self, **__)
agent/tests/test_cli_live.py:637
↓ 168 callersMethodget
Return ``(crumb, cookies)``, fetching them on first use or on refresh. Args: force_refresh: Discard any cached crumb/cookies and
agent/backtest/loaders/yahoo_client.py:110
↓ 158 callersMethodadd
Save a new memory entry and update the index.
agent/src/memory/persistent.py:479
↓ 143 callersFunctionrank
Cross-sectional percentile rank per row (axis=1, ties=average, pct=True). NaN inputs stay NaN. An all-NaN row returns an all-NaN row.
agent/src/factors/base.py:62
↓ 139 callersMethodfetch
(self, codes, start_date, end_date, fields=None, interval="1D")
agent/tests/test_risk_xray.py:360
↓ 137 callersFunctionget_env_config
Return the cached :class:`EnvConfig` singleton, creating it on first access. Thread-safe: acquires a lock before checking / creating the instance
agent/src/config/accessor.py:52
↓ 136 callersMethodget
Return a job by id, or ``None`` when it does not exist. Args: job_id: Job identifier. Returns: The matching
agent/src/scheduled_research/store.py:168
↓ 135 callersMethodmap
Translate one Vibe-Trading event into ``openbb_ai`` SSE objects. Args: event_type: The session-bus event type. data:
agent/src/openbb_bridge/event_mapper.py:50
↓ 135 callersFunctionts_mean
Rolling mean per column, warmup → NaN.
agent/src/factors/base.py:179
↓ 123 callersMethodnow
(cls, tz=None)
agent/tests/test_research_reports_tool.py:60
↓ 119 callersFunctionts_corr
Rolling Pearson correlation per column, min_periods=n. Constant series in the window → NaN (no silent zero). Pairs are inner-joined on column
agent/src/factors/base.py:147
↓ 108 callersMethodexecute
Run entry script and collect logs and artifacts. Args: entry_script: Entry script path. run_dir: Current run director
agent/src/core/runner.py:525
↓ 98 callersMethodsleep
(self, seconds)
agent/tests/test_ibkr_local.py:82
↓ 92 callersMethodget
Return a cached entry if fresh, else ``None``.
agent/src/api/live_routes.py:197
↓ 88 callersMethodcan_execute
(self, symbol, direction, bar)
agent/tests/test_risk_xray.py:335
↓ 79 callersFunctiondelta
First difference at lag ``d``: ``df - df.shift(d)``. Lookahead ban: ``d >= 1`` strictly. Negative lag forbidden.
agent/src/factors/base.py:255
↓ 79 callersFunctionreset_env_config
Clear the cached :class:`EnvConfig` singleton. Acquires the same lock used by :func:`get_env_config` so the reset is atomic with respect to c
agent/src/config/accessor.py:79
↓ 77 callersMethodvalidate_final_answer
Validate identity assertions and numeric price claims. Args: content: Candidate assistant answer. Returns: A
agent/src/agent/grounding.py:1249
↓ 65 callersFunctionbuild_registry
Build the tool registry via auto-discovery, optionally enriched with MCP tools. Local tools are discovered and registered first. When ``agent_con
agent/src/tools/__init__.py:76
↓ 65 callersMethodfilter
Select flows by kind. Args: kind: A single kind label or an iterable of labels. Labels are normalized, so ``"Capi
agent/src/entities/cashflow.py:350
↓ 62 callersFunctionts_rank
Rolling rank (last value's rank within the n-window), per column. Warmup (first ``n-1`` rows per column) returns NaN. Result is a percentile
agent/src/factors/base.py:93
↓ 59 callersFunctionmake_series
Build a series from ``(date, amount, kind)`` triples.
agent/tests/quantlib/test_fundmath.py:67
↓ 52 callersFunction_install
Patch the tool's HTTP entry point with a routing stub.
agent/tests/test_prediction_market_tool.py:156
↓ 52 callersFunction_run
Execute the tool and decode its JSON return value.
agent/tests/test_prediction_market_tool.py:163
↓ 51 callersFunction_write_run_fixture
Real engine-schema run_dir: 9 same-day round trips, one position.
agent/tests/test_strategy_discovery_harness.py:216
↓ 49 callersMethodsearch
Call ``POST /search``.
agent/src/tools/qveris_tool.py:293
↓ 48 callersMethodget
(self, alpha_id: str)
agent/src/factors/registry.py:282
↓ 47 callersFunctionget_runtime_root
Return the runtime root directory for user-level agent state. Args: config_path: Optional explicit config file path. When provided, the
agent/src/config/paths.py:13
↓ 47 callersMethodparse
Keep raw-response ``parse()`` streams behind the same proxy.
agent/src/providers/llm.py:141
↓ 45 callersMethodfind
Resolve a memory by exact title, then by on-disk filename stem.
agent/src/memory/persistent.py:317
↓ 44 callersFunction_get_registry
()
agent/mcp_server.py:333
↓ 44 callersFunctiondecay_linear
Linear decay-weighted moving average, weights ``n, n-1, ..., 1`` normalized. Warmup (first ``n-1`` rows) → NaN. Uses numpy ``sliding_window_
agent/src/factors/base.py:265
↓ 44 callersMethodfetch
Fetch crypto OHLCV via OKX public API. Args: codes: Symbols like ``["BTC-USDT", "ETH-USDT"]``. start_date: Start date
agent/backtest/loaders/okx.py:131
↓ 44 callersMethodset
(name: string, value: string | null)
desktop/electron/src/secure-credentials.ts:106
↓ 44 callersFunctionts_min
Rolling min per column, warmup → NaN.
agent/src/factors/base.py:200
↓ 43 callersFunctionts_std
Rolling sample std (ddof=1) per column, warmup → NaN.
agent/src/factors/base.py:186
↓ 42 callersFunction_make_artifact
( *, name: str = "test_factor", universe: str = "CSI300", artifact_type: ArtifactType = Artifa
agent/tests/test_strategy_store.py:49
↓ 41 callersMethodsearch
(self, query, *, limit=20, session_id=None)
agent/tests/test_qveris_mcp.py:107
↓ 41 callersFunctionts_max
Rolling max per column, warmup → NaN.
agent/src/factors/base.py:193
↓ 40 callersMethodimport_module
(name: str)
agent/tests/test_tool_registry_diagnostics.py:59
↓ 39 callersFunction_write_csv
Write a fixture file and return its path.
agent/tests/test_entities_spine.py:41
↓ 39 callersFunctionbs_price
Price a European option with the Black-Scholes-Merton formula. Args: S: Underlying spot price. K: Strike price. T: Time t
agent/src/quantlib/options.py:168
↓ 39 callersMethodmodel_dump
Expose the Pydantic method expected by LangChain's converter.
agent/src/providers/llm.py:93
↓ 38 callersFunction_make_facade
(tmp_path, *, alpha_ids=("a1", "a2"), artifacts=(), rows=())
agent/tests/test_strategy_discovery_facade.py:161
↓ 37 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 37 callersMethodwrite
Write a trace record, flushed and fsynced for crash safety. ``flush`` alone only moves bytes into the OS page cache; a host crash or
agent/src/agent/trace.py:92
↓ 36 callersFunctionget_playbook
Load a single playbook by slug. Args: slug: Playbook slug (its filename stem). directory: Search only this directory instead of t
agent/src/scheduled_research/playbooks.py:379
↓ 35 callersFunction_align
Build aligned date index, close matrix, target-position matrix, return matrix. Signal is shifted by 1 bar (next-bar-open semantics) then normalis
agent/backtest/engines/base.py:149
↓ 35 callersMethodreplace_goal
Supersede the current goal and create a new active goal. Args: session_id: Owning session id. objective: Research obj
agent/src/goal/store.py:261
↓ 35 callersMethodupsert
(self, job: ScheduledResearchJob, *, validate: bool = True)
agent/tests/test_scheduled_research_executor.py:676
↓ 34 callersMethodcreate_run
Create the directory structure for a new run and write initial state. Args: run: SwarmRun instance. Returns:
agent/src/swarm/store.py:159
↓ 34 callersMethodis_available
(self)
agent/tests/test_ui_services.py:291
↓ 33 callersFunctioncalc_metrics
Full set of performance metrics. Args: equity_curve: Equity time series (index=timestamp, values=equity). trades: Completed round
agent/backtest/metrics.py:461
↓ 33 callersMethodraise_for_status
(self)
agent/tests/test_cli_runtime.py:94
↓ 32 callersMethodbuild_config
(self, profile_config, overrides)
agent/tests/test_etoro_live_actions.py:23
↓ 32 callersFunctionextract_shadow_profile
Extract a ShadowProfile from a broker journal file. Args: journal_path: CSV/Excel exported from a supported broker. min_support:
agent/src/shadow_account/extractor.py:64
↓ 32 callersMethodingest_tool_result
Consume the full untruncated tool result and persist its evidence. Args: tool_name: Executed tool name. arguments: Ex
agent/src/agent/grounding.py:1214
↓ 32 callersMethodput
Store a sanitized copy (no ``config`` key, no secrets).
agent/src/api/live_routes.py:208
↓ 32 callersMethodwait
Block until ``bucket`` is allowed to fire again, then record the slot. The *reserved fire time* — jitter included — is what gets stored, so t
agent/backtest/loaders/_http.py:73
↓ 31 callersMethodclear
Clear the buffered events and notify subscribers for a session. Subscriber queues receive a ``session_cleared`` sentinel event so the
agent/src/session/events.py:275
↓ 31 callersMethodround_size
(self, raw_size, price)
agent/tests/test_risk_xray.py:338
↓ 30 callersMethod_execute_bars
Bar-by-bar execution with market rule enforcement.
agent/backtest/engines/base.py:915
↓ 30 callersFunctionbuild_mcp_tool_wrappers
Build local tool wrappers for a configured MCP server. Args: server_name: Logical server name from config. server_config: Validat
agent/src/tools/mcp.py:187
↓ 30 callersMethodcalc_commission
(self, size, price, direction, is_open)
agent/tests/test_risk_xray.py:341
↓ 30 callersFunctionset_client_factory
Override or reset the connector client factory (used by unit tests).
agent/src/trading/connectors/etoro/client.py:359
↓ 29 callersFunctioncalc_bars_per_year
Number of bars per year for annualisation. Args: interval: Bar size (1m / 5m / 15m / 30m / 1H / 4H / 1D), case-insensitive li
agent/backtest/metrics.py:153
↓ 29 callersMethodget
(self, aid: str)
agent/tests/factors/test_bench_strict.py:443
↓ 29 callersMethodload_run
Load the state for a given run. Args: run_id: Run identifier. Returns: SwarmRun instance, or None if not fou
agent/src/swarm/store.py:179
↓ 29 callersMethodquery_strategies
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:69
↓ 29 callersMethodto_dict
Serialize the session to a dictionary. Returns: A JSON-serializable dictionary.
agent/src/session/models.py:167
↓ 29 callersFunctionvalidate_date_range
Validate that start_date <= end_date. Args: start_date: Start date string (YYYY-MM-DD). end_date: End date string (YYYY-MM-DD).
agent/backtest/loaders/base.py:31
↓ 28 callersMethodcancel
Cancel the current loop. Sets a thread-safe flag polled at every iteration boundary, per LLM stream chunk, and between tool batches,
agent/src/agent/loop.py:840
↓ 28 callersMethodclose
Best-effort release of the underlying provider HTTP client. The LangChain adapter (ChatOpenAI and its OpenAI-compatible subclasses) o
agent/src/providers/chat.py:300
↓ 28 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
↓ 28 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
↓ 28 callersFunctionvalidate_schedule
Raise ``ValueError`` when *schedule* is malformed. Args: schedule: Either a positive integer string (interval-ms) or a simpli
agent/src/scheduled_research/models.py:115
↓ 27 callersFunction_make_engine
(**overrides)
agent/tests/test_china_futures_engine.py:56
↓ 27 callersFunctionget_console
Return the shared console instance. Returns: The single :class:`Console` everyone in ``agent/cli`` writes to.
agent/cli/theme.py:191
↓ 27 callersFunctionload_agent_config
Load structured agent config from disk with safe fallback. Args: config_path: Optional explicit config path. When omitted, the default
agent/src/config/loader.py:28
↓ 27 callersMethodrequest
( self, method: str, path: str, *, params: Mapping[str, Any] | None =
agent/src/trading/connectors/etoro/client.py:278
↓ 26 callersFunction_paper_config
(**extra: Any)
agent/tests/test_mt5_connector.py:210
↓ 26 callersFunction_w
(**kwargs)
agent/tests/test_factor_costs.py:21
↓ 26 callersMethodapply_slippage
(self, price, direction)
agent/tests/test_risk_xray.py:344
↓ 26 callersMethodplace_order
(self, config, **kwargs)
agent/tests/test_sdk_order_gate.py:285
↓ 26 callersMethodread
Read trace.jsonl records. Args: dir_path: Directory containing ``trace.jsonl``. resolve_offloads: Whether to read sid
agent/src/agent/trace.py:303
↓ 25 callersFunction_base_run
(run_id: str = "r", *, timeout: int = 300, retries: int = 0)
agent/tests/test_swarm_status_hydration.py:48
↓ 25 callersFunction_client
Build a TestClient with runtime root redirected under tmp_path.
agent/tests/test_longbridge_runtime.py:32
↓ 25 callersFunction_connection
(value: Any)
agent/src/tools/trading_connector_tool.py:51
↓ 25 callersFunction_engine
(**overrides)
agent/tests/test_korea_equity_engine.py:31
↓ 25 callersFunction_info_table
Render an information-table XML document from row dicts. Issuer names are XML-escaped because real filings carry ampersands (``National Fire
agent/tests/test_institutional_holdings_tool.py:42
↓ 25 callersFunction_json_result
(payload: dict[str, Any])
agent/src/tools/trading_connector_tool.py:47
next →1–100 of 16,853, ranked by callers