Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
↓ 774 callers
Method
get
(self, tool_name: str)
agent/tests/test_tool_timeout.py:18
↓ 758 callers
Method
execute
(self, **kwargs: object)
agent/tests/test_context_budget.py:177
↓ 600 callers
Function
set
(id, value)
wiki/site.js:236
↓ 587 callers
Method
get
Retrieve a tool by name.
agent/src/agent/tools.py:80
↓ 450 callers
Method
read_text
(self, filename: str)
agent/tests/test_cli_update.py:96
↓ 418 callers
Method
validate_final_answer
Validate identity assertions and numeric price claims. Args: content: Candidate assistant answer. Returns: A
agent/src/agent/grounding/ledger.py:360
↓ 417 callers
Method
get
(self, account_id: str)
agent/src/tools/paper_trade/accounts.py:156
↓ 407 callers
Method
run
(self, **__)
agent/tests/test_cli_live.py:721
↓ 393 callers
Method
json
(self)
agent/tests/test_cli_runtime.py:107
↓ 330 callers
Method
update
Update an existing hypothesis. Args: hypothesis_id: Registry identifier. title: Optional replacement title.
agent/src/hypotheses/registry.py:214
↓ 286 callers
Method
split
(_line: str)
agent/src/channels/feishu.py:1148
↓ 267 callers
Method
resolve
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
↓ 253 callers
Function
safe_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
↓ 243 callers
Method
get
Look up one stored connection by id. Args: connection_id: Identifier to resolve; case and surrounding whitespace
agent/src/trading/connections.py:193
↓ 227 callers
Method
add
Save a new memory entry and update the index.
agent/src/memory/persistent.py:515
↓ 216 callers
Method
map
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
↓ 210 callers
Method
get
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:111
↓ 184 callers
Method
fetch
(self, codes, start_date, end_date, fields=None, interval="1D")
agent/tests/test_risk_xray.py:364
↓ 184 callers
Function
get_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
↓ 176 callers
Function
sum
(pick: (agent: SwarmAgentStatus) => number | undefined)
frontend/src/lib/swarmStatus.ts:47
↓ 167 callers
Method
get
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:187
↓ 167 callers
Method
now
(cls, tz=None)
agent/tests/test_api_live_runtime.py:863
↓ 155 callers
Method
execute
Run entry script and collect logs and artifacts. Args: entry_script: Entry script path. run_dir: Current run director
agent/src/core/runner.py:594
↓ 146 callers
Function
rank
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
↓ 134 callers
Method
get
Return a cached entry if fresh, else ``None``.
agent/src/api/live_routes.py:202
↓ 134 callers
Function
ts_mean
Rolling mean per column, warmup → NaN.
agent/src/factors/base.py:265
↓ 129 callers
Method
read_text
(self, encoding: str = "utf-8")
agent/src/tools/paper_trade/strategy_exec.py:189
↓ 121 callers
Function
ts_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
↓ 120 callers
Function
reset_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
↓ 118 callers
Method
set
(name: string, value: string | null)
desktop/electron/src/secure-credentials.ts:101
↓ 104 callers
Method
ingest_tool_result
Consume the full untruncated tool result and persist its evidence. Args: tool_name: Executed tool name. arguments: Ex
agent/src/agent/grounding/ledger.py:280
↓ 101 callers
Method
can_execute
(self, symbol, direction, bar)
agent/tests/test_risk_xray.py:339
↓ 101 callers
Method
put
Store a sanitized copy (no ``config`` key, no secrets).
agent/src/api/live_routes.py:213
↓ 98 callers
Method
get
(self, aid: str)
agent/tests/factors/test_bench_strict.py:500
↓ 98 callers
Method
match
Return the declaration covering ``value``, or None. Matching is numeric and percent-ness must agree: ``37%`` and ``0.37`` are differe
agent/src/agent/grounding/figures.py:165
↓ 95 callers
Method
test_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
↓ 93 callers
Method
filter
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
↓ 93 callers
Method
search
Full-text search across all sessions. Args: query: Search query (keywords or phrase). max_sessions: Maximum number of
agent/src/session/search.py:340
↓ 92 callers
Method
compute
(self, aid: str, panel: dict)
agent/tests/factors/test_bench_strict.py:503
↓ 86 callers
Function
get_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
↓ 83 callers
Method
sleep
(self, seconds)
agent/tests/test_ibkr_local.py:82
↓ 79 callers
Function
fetch_market_data
Fetch normalized OHLCV data through the repository loader layer. ``as_frames`` retains the observed DataFrames for in-process analysis; row l
agent/src/market_data.py:199
↓ 78 callers
Function
build_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:77
↓ 75 callers
Method
find
Resolve a memory by exact title, then by on-disk filename stem.
agent/src/memory/persistent.py:321
↓ 75 callers
Function
render
(data)
wiki/alpha-library/alpha.js:10
↓ 73 callers
Function
delta
First difference at lag ``d``: ``df - df.shift(d)``. Lookahead ban: ``d >= 1`` strictly. Negative lag forbidden.
agent/src/factors/base.py:368
↓ 69 callers
Method
get
(self, profile_id: str)
agent/src/providers/custom_profiles.py:83
↓ 65 callers
Function
_ledger
( tmp_path: Path, message: str = "请分析 562500.SS 并给出买入价", *, market: bool = True, indicator
agent/tests/test_grounding_release.py:109
↓ 65 callers
Method
create_run
Create the directory structure for a new run and write initial state. Args: run: SwarmRun instance. Returns:
agent/src/swarm/store.py:163
↓ 64 callers
Method
model_dump
Expose the Pydantic method expected by LangChain's converter.
agent/src/providers/llm.py:114
↓ 64 callers
Method
wait
(self, timeout)
agent/tests/test_portfolio_routes.py:145
↓ 63 callers
Method
parse
Keep raw-response ``parse()`` streams behind the same proxy.
agent/src/providers/llm.py:160
↓ 63 callers
Function
ts_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
↓ 62 callers
Method
get
(self, name: str)
agent/src/agent/grounding/registry.py:71
↓ 61 callers
Function
make_series
Build a series from ``(date, amount, kind)`` triples.
agent/tests/quantlib/test_fundmath.py:67
↓ 61 callers
Method
sleep
(self, seconds: float)
agent/src/providers/endpoint_guard.py:114
↓ 60 callers
Function
parse_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
↓ 59 callers
Function
_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:359
↓ 59 callers
Method
place_order
(self, config, **kwargs)
agent/tests/test_sdk_order_gate.py:867
↓ 57 callers
Function
_ledger
(tmp_path: Path, *calls: tuple[str, dict[str, Any], Any, str], message: str = "")
agent/tests/test_grounding_role_hardening.py:98
↓ 57 callers
Method
import_module
(name: str)
agent/tests/test_tool_registry_diagnostics.py:59
↓ 57 callers
Method
search
(self, query: str, max_sessions: int = 3)
agent/tests/test_tools_type_value_safety.py:239
↓ 55 callers
Function
_client
Point the config root at *tmp_path* and mount the app test client.
agent/tests/test_channels_config_api.py:108
↓ 55 callers
Method
split
(self, availWidth, availHeight)
agent/src/tools/pdf_report.py:136
↓ 53 callers
Function
bs_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
↓ 53 callers
Method
write
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
↓ 52 callers
Function
_install
Patch the tool's HTTP entry point with a routing stub.
agent/tests/test_prediction_market_tool.py:156
↓ 52 callers
Function
_run
Execute the tool and decode its JSON return value.
agent/tests/test_prediction_market_tool.py:163
↓ 52 callers
Function
_write_run_fixture
Real engine-schema run_dir: 9 same-day round trips, one position.
agent/tests/test_strategy_discovery_harness.py:270
↓ 52 callers
Method
get
(self, alpha_id: str)
agent/src/factors/registry.py:286
↓ 51 callers
Method
fetchone
(self)
agent/tests/test_session_search_distinct_limit.py:50
↓ 51 callers
Method
invoke
(self, messages, config=None, **kwargs)
agent/tests/test_chat_stream_interruption.py:75
↓ 51 callers
Method
redacted_release
Release the last rejected draft with its unverified figures cut out. Each rejected figure becomes a marker at its own span, missing provenanc
agent/src/agent/grounding/release.py:539
↓ 50 callers
Method
create_task
Create a task, optionally assigned, in one transaction.
agent/src/pixel_agents/office.py:116
↓ 50 callers
Method
fetch
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
↓ 50 callers
Function
parse_figures_block
Parse the model's ``figures`` blocks out of a draft. Parsing is lenient (full-width pipe, run-on spacing, missing ``ref``, a header or separa
agent/src/agent/grounding/figures.py:791
↓ 50 callers
Method
upsert
(self, job: ScheduledResearchJob, *, validate: bool = True)
agent/tests/test_scheduled_research_executor.py:676
↓ 49 callers
Method
load_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:183
↓ 49 callers
Function
profile_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:80
↓ 48 callers
Function
_get_registry
()
agent/mcp_server.py:356
↓ 48 callers
Function
_make_artifact
( *, name: str = "test_factor", universe: str = "CSI300", artifact_type: ArtifactType = Artifa
agent/tests/test_strategy_store.py:49
↓ 48 callers
Method
run
Run the ReAct loop synchronously. Binds ``session_id`` as the active LLM session for the whole run so provider adapters that need a s
agent/src/agent/loop.py:362
↓ 46 callers
Function
decay_linear
Linear decay-weighted moving average, weights ``n, n-1, ..., 1`` normalized. The most recent bar gets weight ``n`` and the oldest bar in the wind
agent/src/factors/base.py:378
↓ 45 callers
Function
_block
(*rows: str)
agent/tests/test_grounding_role_hardening.py:111
↓ 45 callers
Function
_holding
( *, isin: str = VALID_ISIN, name: str = "Example World ETF", instrument_type: str = "ETF",
agent/tests/test_extraetf_reader.py:61
↓ 45 callers
Function
read_run_artifact
Read one run artifact as structured, budget-bounded JSON. Args: run_dir: Run directory; must sit inside an allowed run root. arti
agent/src/tools/run_artifact_tool.py:450
↓ 44 callers
Function
calc_metrics
Full set of performance metrics. Args: equity_curve: Equity time series (index=timestamp, values=equity). trades: Completed round
agent/backtest/metrics.py:563
↓ 44 callers
Function
ts_min
Rolling min per column, warmup → NaN.
agent/src/factors/base.py:311
↓ 43 callers
Function
_write_csv
Write a fixture file and return its path.
agent/tests/test_entities_spine.py:41
↓ 43 callers
Function
calc_bars_per_year
Number of bars per year for annualisation. Args: interval: Bar size (1m / 5m / 15m / 30m / 1H / 4H / 1D / 1W / 1M), case-inse
agent/backtest/metrics.py:188
↓ 43 callers
Method
get
Return one immutable snapshot by id. Args: snapshot_id: Exact persisted snapshot identifier. Returns: The st
agent/src/portfolio/store.py:127
↓ 43 callers
Function
ts_std
Rolling sample std (ddof=1) per column, warmup → NaN.
agent/src/factors/base.py:272
↓ 43 callers
Function
vwap
Market-aware VWAP-equivalent reference price. - ``equity_cn``: ``(amount * 1000) / (volume * 100 + 1)`` — Tushare's ``daily.amount`` is in
agent/src/factors/base.py:465
↓ 42 callers
Function
_holdings_export
(*rows: dict[str, str])
agent/tests/test_extraetf_reader.py:137
↓ 42 callers
Function
parse_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:365
↓ 41 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 41 callers
Function
ts_max
Rolling max per column, warmup → NaN.
agent/src/factors/base.py:304
↓ 40 callers
Method
_fetch_one
Forward time-window chunking (Wallex has no pagination).
agent/backtest/loaders/wallex.py:184
↓ 40 callers
Method
done
(self)
agent/tests/test_api_live_runtime.py:251
↓ 40 callers
Method
raise_for_status
(self)
agent/tests/test_cli_runtime.py:104
next →
1–100 of 26,887, ranked by callers