Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 2,014 callers
Method
append
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 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
↓ 981 callers
Method
get
(self, tool_name: str)
agent/tests/test_tool_timeout.py:27
↓ 954 callers
Method
from_config
Capture root declarations from a trusted host configuration.
agent/src/tools/path_utils.py:150
↓ 842 callers
Method
execute
(self, **kwargs)
agent/tests/test_swarm_continuation.py:375
↓ 724 callers
Function
set
(id, value)
wiki/site.js:236
↓ 680 callers
Method
get
Return an unshared parsed copy with its original acquisition time.
agent/src/data_gateway/cache.py:107
↓ 676 callers
Method
items
(self)
agent/tests/test_session_queued_input.py:163
↓ 591 callers
Method
read_text
(self, filename: str)
agent/tests/test_cli_update.py:98
↓ 520 callers
Method
run
(self, **__)
agent/tests/test_cli_live.py:714
↓ 463 callers
Method
json
(self)
agent/tests/test_cli_runtime.py:108
↓ 453 callers
Method
get
(self, account_id: str)
agent/src/tools/paper_trade/accounts.py:156
↓ 427 callers
Method
update
Update an existing hypothesis. Args: hypothesis_id: Registry identifier. title: Optional replacement title.
agent/src/hypotheses/registry.py:214
↓ 351 callers
Method
validate_final_answer
Validate identity assertions and numeric price claims. Args: content: Candidate assistant answer. Returns: A
agent/evals/grounding/ledger.py:201
↓ 346 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
↓ 324 callers
Method
split
(_line: str)
agent/src/channels/feishu.py:1148
↓ 264 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:33
↓ 253 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
↓ 252 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
↓ 244 callers
Function
sum
(pick: (agent: SwarmAgentStatus) => number | undefined)
frontend/src/lib/swarmStatus.ts:47
↓ 243 callers
Method
set
(name: string, value: string | null)
desktop/electron/src/secure-credentials.ts:88
↓ 227 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:115
↓ 195 callers
Method
now
(cls, tz=None)
agent/tests/test_api_live_runtime.py:874
↓ 186 callers
Method
fetch
(self, codes, start_date, end_date, fields=None, interval="1D")
agent/tests/test_risk_xray.py:364
↓ 181 callers
Method
get
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 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:675
↓ 152 callers
Method
add
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 callers
Method
get
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 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
↓ 147 callers
Method
sleep
(self, seconds)
agent/tests/test_ibkr_local.py:82
↓ 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
↓ 139 callers
Method
read_text
(self, encoding: str = "utf-8")
agent/src/tools/paper_trade/strategy_exec.py:189
↓ 134 callers
Function
ts_mean
Rolling mean per column, warmup → NaN.
agent/src/factors/base.py:265
↓ 133 callers
Method
wait
(self, timeout)
agent/tests/test_portfolio_routes.py:145
↓ 127 callers
Method
get
Return a cached entry if fresh, else ``None``.
agent/src/api/live_routes.py:202
↓ 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
↓ 116 callers
Method
can_execute
(self, symbol, direction, bar)
agent/tests/test_risk_xray.py:339
↓ 116 callers
Method
clear
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 callers
Method
put
Cache one successful result, evicting before the atomic disk write.
agent/src/data_gateway/cache.py:129
↓ 110 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
↓ 108 callers
Method
ingest_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 callers
Method
get
(self, aid: str)
agent/tests/factors/test_bench_strict.py:501
↓ 102 callers
Method
search
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 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/evals/grounding/figures.py:180
↓ 98 callers
Method
parse
(cls, value: str)
agent/src/data_gateway/streams.py:34
↓ 96 callers
Method
compute
(self, aid: str, panel: dict)
agent/tests/factors/test_bench_strict.py:504
↓ 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
↓ 92 callers
Function
fetch_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 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:121
↓ 88 callers
Method
keys
(self)
agent/tests/test_data_gateway_boundaries.py:62
↓ 88 callers
Method
read
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 callers
Function
render
(data)
wiki/alpha-library/alpha.js:10
↓ 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
↓ 85 callers
Method
find
Resolve a memory by exact title, then by on-disk filename stem.
agent/src/memory/persistent.py:324
↓ 84 callers
Function
replace
(src, dst)
agent/tests/test_runtime_jobstore.py:88
↓ 81 callers
Method
register
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 callers
Method
create_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 callers
Method
add
Save a new memory entry and update the index.
agent/src/memory/persistent.py:521
↓ 74 callers
Method
model_dump
Expose the Pydantic method expected by LangChain's converter.
agent/src/providers/adapters/responses.py:21
↓ 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
↓ 71 callers
Method
sleep
(self, seconds: float)
agent/src/providers/endpoint_guard.py:89
↓ 68 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:444
↓ 67 callers
Method
close
(self)
agent/tests/test_swarm_context.py:48
↓ 67 callers
Method
create_task
Create a task, optionally assigned, in one transaction.
agent/src/pixel_agents/office.py:116
↓ 67 callers
Method
is_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 callers
Method
write
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 callers
Method
fetchone
(self)
agent/tests/test_session_search_distinct_limit.py:50
↓ 66 callers
Method
import_module
(name: str)
agent/tests/test_tool_registry_diagnostics.py:63
↓ 65 callers
Method
raise_for_status
(self)
agent/tests/test_cli_runtime.py:105
↓ 64 callers
Method
get
(self, name: str)
agent/evals/grounding/registry.py:71
↓ 64 callers
Method
read
(self)
agent/tests/test_tap_forward.py:32
↓ 64 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
↓ 61 callers
Function
compute_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 callers
Function
make_series
Build a series from ``(date, amount, kind)`` triples.
agent/tests/quantlib/test_fundmath.py:67
↓ 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
↓ 60 callers
Method
to_dict
Serialize rates without losing decimal precision.
agent/src/portfolio/fx.py:79
↓ 59 callers
Method
place_order
(self, config, **kwargs)
agent/tests/test_sdk_order_gate.py:895
↓ 59 callers
Method
split
(self, availWidth, availHeight)
agent/src/tools/pdf_report.py:136
↓ 57 callers
Function
_get_registry
()
agent/mcp_server.py:392
↓ 57 callers
Method
thread_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 callers
Method
search
(self, query: str, max_sessions: int = 3)
agent/tests/test_tools_type_value_safety.py:243
↓ 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
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
↓ 55 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:669
↓ 54 callers
Function
_ledger
(tmp_path: Path, *calls: tuple[str, dict[str, Any], Any, str], message: str = "")
agent/tests/test_grounding_role_hardening.py:102
↓ 54 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:138
↓ 54 callers
Method
load_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 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:435
↓ 54 callers
Function
redact_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 callers
Method
invoke
(self, *args, **kwargs)
agent/tests/test_provider_isolation.py:173
↓ 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
↓ 52 callers
Method
start
(self)
agent/tests/test_feishu_stop.py:51
↓ 51 callers
Method
upsert
(self, job: ScheduledResearchJob, *, validate: bool = True)
agent/tests/test_scheduled_research_executor.py:676
↓ 49 callers
Function
_make_artifact
( *, name: str = "test_factor", universe: str = "CSI300", artifact_type: ArtifactType = Artifa
agent/tests/test_strategy_store.py:49
↓ 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:82
↓ 49 callers
Method
result
(self, name)
agent/tests/test_readonly_replay_after_microcompact.py:196
↓ 49 callers
Method
run_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