MCPcopy Create free account

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

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

↓ 2,014 callersMethodappend
Validate, number and durably append one item. Args: item_type: Thread item type supported by the schema. turn_id: Non
agent/src/session/thread.py:73
↓ 1,099 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
↓ 981 callersMethodget
(self, tool_name: str)
agent/tests/test_tool_timeout.py:27
↓ 954 callersMethodfrom_config
Capture root declarations from a trusted host configuration.
agent/src/tools/path_utils.py:150
↓ 842 callersMethodexecute
(self, **kwargs)
agent/tests/test_swarm_continuation.py:375
↓ 724 callersFunctionset
(id, value)
wiki/site.js:236
↓ 680 callersMethodget
Return an unshared parsed copy with its original acquisition time.
agent/src/data_gateway/cache.py:107
↓ 676 callersMethoditems
(self)
agent/tests/test_session_queued_input.py:163
↓ 591 callersMethodread_text
(self, filename: str)
agent/tests/test_cli_update.py:98
↓ 520 callersMethodrun
(self, **__)
agent/tests/test_cli_live.py:714
↓ 463 callersMethodjson
(self)
agent/tests/test_cli_runtime.py:108
↓ 453 callersMethodget
(self, account_id: str)
agent/src/tools/paper_trade/accounts.py:156
↓ 427 callersMethodupdate
Update an existing hypothesis. Args: hypothesis_id: Registry identifier. title: Optional replacement title.
agent/src/hypotheses/registry.py:214
↓ 351 callersMethodvalidate_final_answer
Validate identity assertions and numeric price claims. Args: content: Candidate assistant answer. Returns: A
agent/evals/grounding/ledger.py:201
↓ 346 callersMethodresolve
Return the registered callable for *job*, or raise. ``None`` dispatcher keeps the fail-closed default wired in T4: the RuntimeError l
agent/src/scheduled_research/internal_dispatch.py:112
↓ 324 callersMethodsplit
(_line: str)
agent/src/channels/feishu.py:1148
↓ 264 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:33
↓ 253 callersMethodget
Look up one stored connection by id. Args: connection_id: Identifier to resolve; case and surrounding whitespace
agent/src/trading/connections.py:193
↓ 252 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:450
↓ 244 callersFunctionsum
(pick: (agent: SwarmAgentStatus) => number | undefined)
frontend/src/lib/swarmStatus.ts:47
↓ 243 callersMethodset
(name: string, value: string | null)
desktop/electron/src/secure-credentials.ts:88
↓ 227 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:115
↓ 195 callersMethodnow
(cls, tz=None)
agent/tests/test_api_live_runtime.py:874
↓ 186 callersMethodfetch
(self, codes, start_date, end_date, fields=None, interval="1D")
agent/tests/test_risk_xray.py:364
↓ 181 callersMethodget
Rebuild a conversation from its thread on first use. Args: session_id: Session ID. Returns: The cached sessi
agent/src/session/runtime.py:564
↓ 164 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:675
↓ 152 callersMethodadd
Consume an independently owned message, preserving its identity. Args: message: Message owned by the caller for this projection.
agent/src/providers/messages.py:112
↓ 150 callersMethodget
Load a custom provider profile and its API key. Args: profile_id: Profile ID, matched after trimming and lowercasing. Re
agent/src/providers/custom_profiles.py:117
↓ 150 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
↓ 147 callersMethodsleep
(self, seconds)
agent/tests/test_ibkr_local.py:82
↓ 146 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:79
↓ 139 callersMethodread_text
(self, encoding: str = "utf-8")
agent/src/tools/paper_trade/strategy_exec.py:189
↓ 134 callersFunctionts_mean
Rolling mean per column, warmup → NaN.
agent/src/factors/base.py:265
↓ 133 callersMethodwait
(self, timeout)
agent/tests/test_portfolio_routes.py:145
↓ 127 callersMethodget
Return a cached entry if fresh, else ``None``.
agent/src/api/live_routes.py:202
↓ 121 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:233
↓ 116 callersMethodcan_execute
(self, symbol, direction, bar)
agent/tests/test_risk_xray.py:339
↓ 116 callersMethodclear
Clear the buffered events and notify subscribers for a session. Args: session_id: Session whose buffer and subscriber registratio
agent/src/session/events.py:344
↓ 114 callersMethodput
Cache one successful result, evicting before the atomic disk write.
agent/src/data_gateway/cache.py:129
↓ 110 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:355
↓ 108 callersMethodingest_tool_result
Consume the full untruncated tool result and persist its evidence. Args: tool_name: Executed tool name. arguments: Ex
agent/evals/grounding/ledger.py:121
↓ 105 callersMethodget
(self, aid: str)
agent/tests/factors/test_bench_strict.py:501
↓ 102 callersMethodsearch
Full-text search across all sessions. Args: query: Search query containing keywords or a phrase. max_sessions: Maximu
agent/src/session/search.py:295
↓ 101 callersMethodmatch
Return the declaration covering ``value``, or None. Matching is numeric and percent-ness must agree: ``37%`` and ``0.37`` are differe
agent/evals/grounding/figures.py:180
↓ 98 callersMethodparse
(cls, value: str)
agent/src/data_gateway/streams.py:34
↓ 96 callersMethodcompute
(self, aid: str, panel: dict)
agent/tests/factors/test_bench_strict.py:504
↓ 95 callersMethodtest_connection
Validate the QQ credentials with a standalone token request. Delegates to :func:`src.channels.qq_probe.test_connection`; see that fun
agent/src/channels/qq.py:260
↓ 92 callersFunctionfetch_market_data
Read public snapshots through the same gateway used by pages and streams. Full analysis frames and explicit resolver integrations retain the load
agent/src/market_data.py:690
↓ 89 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:121
↓ 88 callersMethodkeys
(self)
agent/tests/test_data_gateway_boundaries.py:62
↓ 88 callersMethodread
Read valid items in file order. Args: strict: Whether to raise on corrupt records. By default, corrupt records are skipped.
agent/src/session/thread.py:158
↓ 87 callersFunctionrender
(data)
wiki/alpha-library/alpha.js:10
↓ 86 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
↓ 85 callersMethodfind
Resolve a memory by exact title, then by on-disk filename stem.
agent/src/memory/persistent.py:324
↓ 84 callersFunctionreplace
(src, dst)
agent/tests/test_runtime_jobstore.py:88
↓ 81 callersMethodregister
Register a tool by its declared name, replacing any entry with that name. Args: tool: Tool instance to store in the registry.
agent/src/agent/tools.py:142
↓ 76 callersMethodcreate_run
Create the directory structure for a new run and write initial state. Args: run: Initial run state to persist. Returns:
agent/src/swarm/store.py:136
↓ 74 callersMethodadd
Save a new memory entry and update the index.
agent/src/memory/persistent.py:521
↓ 74 callersMethodmodel_dump
Expose the Pydantic method expected by LangChain's converter.
agent/src/providers/adapters/responses.py:21
↓ 73 callersFunctiondelta
First difference at lag ``d``: ``df - df.shift(d)``. Lookahead ban: ``d >= 1`` strictly. Negative lag forbidden.
agent/src/factors/base.py:368
↓ 71 callersMethodsleep
(self, seconds: float)
agent/src/providers/endpoint_guard.py:89
↓ 68 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:444
↓ 67 callersMethodclose
(self)
agent/tests/test_swarm_context.py:48
↓ 67 callersMethodcreate_task
Create a task, optionally assigned, in one transaction.
agent/src/pixel_agents/office.py:116
↓ 67 callersMethodis_set
Check whether the node should stop. Returns: True if the local event or parent signal is set or the node deadline has expired.
agent/src/swarm/node.py:333
↓ 67 callersMethodwrite
Record a diagnostic event in the conversation thread. Args: event: Diagnostic mapping whose type becomes the event name, defaulti
agent/src/session/runtime.py:185
↓ 66 callersMethodfetchone
(self)
agent/tests/test_session_search_distinct_limit.py:50
↓ 66 callersMethodimport_module
(name: str)
agent/tests/test_tool_registry_diagnostics.py:63
↓ 65 callersMethodraise_for_status
(self)
agent/tests/test_cli_runtime.py:105
↓ 64 callersMethodget
(self, name: str)
agent/evals/grounding/registry.py:71
↓ 64 callersMethodread
(self)
agent/tests/test_tap_forward.py:32
↓ 64 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:179
↓ 61 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:99
↓ 61 callersFunctionmake_series
Build a series from ``(date, amount, kind)`` triples.
agent/tests/quantlib/test_fundmath.py:67
↓ 60 callersFunctionparse_export
Parse one extraETF export from text or raw bytes. Args: data: The export contents, as text or as raw file bytes. source_path: The
agent/src/portfolio/extraetf.py:281
↓ 60 callersMethodto_dict
Serialize rates without losing decimal precision.
agent/src/portfolio/fx.py:79
↓ 59 callersMethodplace_order
(self, config, **kwargs)
agent/tests/test_sdk_order_gate.py:895
↓ 59 callersMethodsplit
(self, availWidth, availHeight)
agent/src/tools/pdf_report.py:136
↓ 57 callersFunction_get_registry
()
agent/mcp_server.py:392
↓ 57 callersMethodthread_log
Open a session's conversation thread log. Args: session_id: Session ID to migrate if necessary before opening the log. R
agent/src/session/store.py:49
↓ 56 callersMethodsearch
(self, query: str, max_sessions: int = 3)
agent/tests/test_tools_type_value_safety.py:243
↓ 55 callersFunction_client
Point the config root at *tmp_path* and mount the app test client.
agent/tests/test_channels_config_api.py:108
↓ 55 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:223
↓ 55 callersFunctioncalc_metrics
Full set of performance metrics. Args: equity_curve: Equity time series (index=timestamp, values=equity). trades: Completed round
agent/backtest/metrics.py:669
↓ 54 callersFunction_ledger
(tmp_path: Path, *calls: tuple[str, dict[str, Any], Any, str], message: str = "")
agent/tests/test_grounding_role_hardening.py:102
↓ 54 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:138
↓ 54 callersMethodload_run
Load the state for a given run. Args: run_id: Run ID expressed as a single directory name. Returns: Persiste
agent/src/swarm/store.py:156
↓ 54 callersFunctionparse_request
Parse JSON-parsed tool input into the typed request contract. Shape-level boundary parse only: types, enums, date format. Raises :class:`Pap
agent/src/tools/paper_trade/schema.py:435
↓ 54 callersFunctionredact_text
Scrub credential-shaped values from a free-form string. Used for plain-text tool results, shell output, error messages and log lines where :f
agent/src/tools/redaction.py:614
↓ 53 callersMethodinvoke
(self, *args, **kwargs)
agent/tests/test_provider_isolation.py:173
↓ 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
↓ 52 callersFunction_write_run_fixture
Real engine-schema run_dir: 9 same-day round trips, one position.
agent/tests/test_strategy_discovery_harness.py:270
↓ 52 callersMethodget
(self, alpha_id: str)
agent/src/factors/registry.py:286
↓ 52 callersMethodstart
(self)
agent/tests/test_feishu_stop.py:51
↓ 51 callersMethodupsert
(self, job: ScheduledResearchJob, *, validate: bool = True)
agent/tests/test_scheduled_research_executor.py:676
↓ 49 callersFunction_make_artifact
( *, name: str = "test_factor", universe: str = "CSI300", artifact_type: ArtifactType = Artifa
agent/tests/test_strategy_store.py:49
↓ 49 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:82
↓ 49 callersMethodresult
(self, name)
agent/tests/test_readonly_replay_after_microcompact.py:196
↓ 49 callersMethodrun_dir
Return the directory path for a given run. Args: run_id: Run ID expressed as a single directory name. Returns:
agent/src/swarm/store.py:112
next →1–100 of 30,405, ranked by callers