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
↓ 5 callers
Function
save_proposal
Persist a synthesized proposal so a later commit can re-validate it. Called by the read-only ``propose_mandate_profiles`` tool. Writing a pro
agent/src/live/mandate/commit.py:207
↓ 5 callers
Method
save_settings
(self, payload)
agent/tests/test_portfolio_routes.py:27
↓ 5 callers
Method
scan_all
Scan base dir + all category subdirs for *.md files. Skips entries listed in _SKIP_NAMES and the archive/ directory. Includes flat-st
agent/src/memory/hierarchy.py:145
↓ 5 callers
Function
scenario
()
agent/tests/test_runtime_scheduler.py:111
↓ 5 callers
Method
search
Search the latest revision of each series with optional provenance filters.
agent/src/research_artifacts/store.py:464
↓ 5 callers
Method
select_account
Scope a connection's reads to one broker account. The caller is responsible for checking the account against the broker's own account
agent/src/trading/connections.py:282
↓ 5 callers
Function
send_imap_id
Send a best-effort RFC 2971 IMAP ``ID`` command; never raises. NetEase mailboxes (163/126/yeah.net) accept ``LOGIN`` but reject the first ``S
agent/src/channels/utils.py:109
↓ 5 callers
Function
session_values
The D1 session bar (open/high/low/close/volume) from a raw day frame.
agent/tests/paper_trade_5m_fixtures.py:113
↓ 5 callers
Method
set_audit_sink
Attach a thread recorder or callback after a turn is created. Args: sink: Callback or recorder with a hook method, or None to cle
agent/src/product/resources/hooks.py:155
↓ 5 callers
Function
sharpe_ratio
Per-observation Sharpe ratio. Deliberately NOT annualised: every other function in this module pairs the Sharpe with an observation count, an
agent/src/quantlib/multipletesting.py:180
↓ 5 callers
Method
should_compress
Determine if an entry should be compressed and to what level. Args: compression_level: Current level ("raw", "daily", "digest").
agent/src/memory/compression.py:202
↓ 5 callers
Method
shutdown
(self, wait=False, cancel_futures=True)
agent/src/data_gateway/scheduling.py:95
↓ 5 callers
Method
shutdown
(self)
agent/tests/test_mt5_connector.py:145
↓ 5 callers
Method
snapshot
(self, name, date, rows, repo_id=123)
tools/github_traffic/test_archive.py:22
↓ 5 callers
Function
source_order_env_var
Return the env var name overriding ``market``'s source order. ``"a_share"`` -> ``"MARKET_DATA_ORDER_A_SHARE"``.
agent/backtest/loaders/registry.py:502
↓ 5 callers
Function
source_run
Resolve a run identifier or an explicitly allowed run directory.
agent/src/research_lab/execution.py:45
↓ 5 callers
Function
split_suffix
Split a broker account-type suffix off a normalized token. ``EURUSDM`` → ``("EURUSD", "M")`` when the first six characters form a currency pa
agent/src/trading/connectors/mt5/symbols.py:44
↓ 5 callers
Function
stamp_raw
Return a copy of an unadjusted frame that states its caliber. Args: frame: Bars the loader fetched with its unadjusted request parameter.
agent/backtest/loaders/base.py:227
↓ 5 callers
Method
start
Start the QQ bot with auto-reconnect loop.
agent/src/channels/qq.py:205
↓ 5 callers
Method
start
The source offset where normalized position ``index`` begins.
agent/evals/grounding/figures.py:317
↓ 5 callers
Method
stop
()
desktop/electron/src/backend-manager.ts:162
↓ 5 callers
Function
stop_http_mcp_server
Terminate an HTTP MCP subprocess and wait for clean exit.
agent/tests/mcp_http_test_helpers.py:90
↓ 5 callers
Method
submit_source
Submit into the existing pool; admission and completion own the slot. Args: function: The actual source operation, never another
agent/src/data_gateway/service.py:279
↓ 5 callers
Method
subscribe
(self, topics)
agent/src/data_gateway/streams.py:215
↓ 5 callers
Function
supervised_pulls
Yield items while the stream can still make progress. Args: iterator: Source iterator, which may block in next. idle_timeout_s: M
agent/src/providers/stream_guard.py:137
↓ 5 callers
Method
tail
()
desktop/electron/src/backend-manager.ts:298
↓ 5 callers
Method
take
(self)
agent/src/data_gateway/streams.py:68
↓ 5 callers
Function
threadFixture
(rows: any[])
frontend/src/pages/__tests__/threadFixture.ts:4
↓ 5 callers
Method
to_dict
(self)
agent/src/pixel_agents/office.py:57
↓ 5 callers
Method
to_json
Serialize to a JSON string. Args: indent: Optional pretty-print indent; compact when ``None``. Returns: JSON
agent/src/governance/manifest.py:335
↓ 5 callers
Method
tokens
Estimate the next request from the last provider input-token count. Args: messages: Current worker conversation. tool
agent/src/swarm/context.py:58
↓ 5 callers
Function
topological_layers
Group the task DAG into layers that can run in parallel. Args: tasks: Tasks with valid dependency references. Returns: List
agent/src/swarm/task_store.py:200
↓ 5 callers
Method
trip_halt
(self, by: str, reason: str, broker: str | None = None)
agent/tests/test_runtime_runner.py:138
↓ 5 callers
Function
try_build_backtest_summary
Best-effort :func:`build_backtest_summary` that never raises. Args: run_dir: Backtest run directory root. ohlcv_paths: Optional p
agent/src/tools/backtest_summary.py:143
↓ 5 callers
Function
ts_resi
Latest observation's residual from the same trailing OLS fit.
agent/src/factors/base.py:297
↓ 5 callers
Method
turn_items
Return the items of one turn. Args: turn_id: Turn ID to match. Returns: That turn's items in write order.
agent/src/session/thread.py:206
↓ 5 callers
Function
tvpi
Total value to paid-in: realised plus unrealised value per unit drawn. By construction this is ``dpi + rvpi``; the identity is asserted in the
agent/src/quantlib/fundmath.py:770
↓ 5 callers
Function
tw_tick_size
Return the tick applying at *price*. Args: price: Price in NT$. Prices at or below zero take the finest tick. etf: Use the ETF ta
agent/backtest/engines/taiwan_equity.py:204
↓ 5 callers
Function
unquote
(value: string)
desktop/electron/src/secure-credentials.ts:179
↓ 5 callers
Method
unsubscribe
(self, listener)
agent/src/data_gateway/streams.py:234
↓ 5 callers
Method
update_artifact
Replace an artifact record. Returns updated artifact or None if not found.
agent/src/strategy_store/store.py:107
↓ 5 callers
Function
verify_market_cap
Verify ``market cap = price × shares`` against a reported value. Args: price: Current share price. shares: Total share count.
agent/src/tools/financial_rigor_tool.py:151
↓ 5 callers
Function
verify_tolerance_covers
Return the recorded samples the tolerance does not bound.
agent/backtest/binance_tolerance_calibration.py:145
↓ 5 callers
Function
wants_raw
Read a loader's ``adjustment`` argument. A loader that declares ``raw_markets`` accepts ``fetch(..., adjustment="raw")``; ``None`` keeps its
agent/backtest/loaders/base.py:204
↓ 5 callers
Function
workspace_write_receipt
Locate the host's write receipt outside the tool workspace. Args: thread: Canonical node thread path. Returns: Sibling path
agent/src/tools/workspace_writes.py:20
↓ 5 callers
Method
write
(self, data)
agent/src/data_gateway/history_store.py:803
↓ 5 callers
Function
write_binance_drift_evidence
Append one strict JSONL record and replace its latest summary.
agent/backtest/binance_shadow_evidence.py:198
↓ 5 callers
Function
write_risk_xray
Write the report to ``path`` as strict, RFC-8259 JSON. Same contract as ``write_rebalance_notes``: sanitize with ``_json_safe`` and serialize
agent/backtest/risk_xray.py:582
↓ 4 callers
Method
__init__
(self)
agent/tests/test_plan_rejected.py:301
↓ 4 callers
Method
__init__
(self, *, stop_before: bool = False)
agent/tests/test_base_engine.py:559
↓ 4 callers
Function
_aapl_endpoint_ledger
A ledger holding two observed AAPL.US closes, 100.0 and 112.4.
agent/tests/test_agent_grounding.py:3025
↓ 4 callers
Method
_actual_positions_frame
Materialize recorded post-fill weights as an artifact-ready frame.
agent/backtest/engines/base.py:2295
↓ 4 callers
Function
_agent
(tool: BaseTool, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:124
↓ 4 callers
Function
_agent_root
Return the agent package root.
agent/src/tools/path_utils.py:131
↓ 4 callers
Function
_agent_spec
( *, agent_id: str, tools: list[str], max_iterations: int = 4, )
agent/tests/test_swarm_m4_e2e.py:175
↓ 4 callers
Function
_aligned_returns
Build a date-aligned daily-returns frame (one column per code). Mirrors the alignment in ``_rolling_correlation_matrix``: indexes are normali
agent/backtest/regime.py:106
↓ 4 callers
Function
_all_engines
Merge built-in + plugins. Plugins override built-ins on name collision.
agent/src/tools/ocr/engine.py:86
↓ 4 callers
Function
_all_text
(prs: Presentation)
agent/tests/quantlib/valuation/test_artifact.py:819
↓ 4 callers
Function
_answer
(ref)
agent/tests/test_grounding_multi_derived_refs.py:33
↓ 4 callers
Method
_append_tool_result
Append a tool message and record it as the model receives it.
agent/src/product/artifacts.py:185
↓ 4 callers
Method
_artifact_scope
The backtest output a ref names by run directory or file, or None. Backtest output is named the way the model named the run: its run
agent/evals/grounding/policies.py:1055
↓ 4 callers
Function
_artifact_to_dict
Convert a frozen dataclass artifact to a JSON-safe dict.
agent/src/tools/sdm_status_tool.py:33
↓ 4 callers
Function
_as_decimal
``Decimal(str(value))`` conversion (VD-9) with an explicit error.
agent/src/tools/paper_trade/volume_policy.py:42
↓ 4 callers
Function
_as_float
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:659
↓ 4 callers
Function
_as_float
Coerce ``value`` to a finite float, else ``None`` (quantity may be signed).
agent/src/live/enforcement.py:463
↓ 4 callers
Function
_as_iter
(value: Any)
agent/src/trading/connectors/okx/sdk.py:650
↓ 4 callers
Function
_as_list
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:651
↓ 4 callers
Function
_assert_provider_valid
OpenAI's rule: each tool-call message is followed directly by exactly one result per call, and no tool message appears anywhere else.
agent/tests/test_session_thread_replay.py:23
↓ 4 callers
Function
_assert_row_zscore_properties
(result: pd.DataFrame)
agent/tests/test_get_fundamentals_tool.py:92
↓ 4 callers
Function
_assert_whole_call_failure
(outcome, message: str, request)
agent/tests/test_paper_trade_strategy_path.py:129
↓ 4 callers
Function
_assistant_call
(thread: ThreadLog, turn: str, call_id: str, args: Dict[str, Any])
agent/tests/test_session_thread_events.py:61
↓ 4 callers
Function
_assumptions
(engine: ChinaFuturesEngine)
agent/tests/test_china_futures_pricing_assumptions.py:42
↓ 4 callers
Function
_assumptions
(engine: GlobalFuturesEngine)
agent/tests/test_global_futures_pricing_assumptions.py:47
↓ 4 callers
Function
_atomic_write_secret
Write *content* to *path* atomically with 0600 permissions. The file holds provider API keys, so a crash mid-write must never leave a half-wr
agent/src/config/dotenv.py:11
↓ 4 callers
Method
_attempt
(self)
agent/tests/test_anthropic_temperature_validation.py:52
↓ 4 callers
Function
_bar_date
Extract date from bar, handling various column names.
agent/backtest/engines/china_a.py:86
↓ 4 callers
Function
_bars
(opens: list[float], closes: list[float], dates=_DATES)
agent/tests/test_benchmark_warmup_basis.py:33
↓ 4 callers
Function
_bars
()
agent/tests/test_market_data_serving_source.py:10
↓ 4 callers
Function
_base_payload
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/instruments.py:53
↓ 4 callers
Function
_bench_args
(**extra)
agent/tests/test_tool_output_dir_write_roots.py:95
↓ 4 callers
Function
_best_summary
Extract the best summary from all assistant messages.
agent/src/swarm/node.py:706
↓ 4 callers
Function
_blocked_by_limit
Whether a price-limit band blocks a fill on this bar. Shared by every engine with a daily band (A-share, India, China futures, global futures
agent/backtest/engines/china_a.py:103
↓ 4 callers
Function
_bounded
Change units before centering/squaring to avoid float overflow/underflow.
agent/src/quantlib/neutralization.py:88
↓ 4 callers
Function
_build_attribution_payload
Assemble the full attribution payload from a run's artifacts. Args: run_dir: Root directory of the run. Returns: The respons
agent/src/api/attribution_core.py:785
↓ 4 callers
Function
_build_three_statement_artifact
(*, generated_at: datetime = FIXED_TIME)
agent/tests/quantlib/valuation/test_artifact.py:247
↓ 4 callers
Function
_build_transport
(server_config: MCPServerConfig)
agent/tests/test_mcp_oauth_schema.py:235
↓ 4 callers
Method
_calc_raw_size
Convert target notional exposure to number of units/contracts. Size is a positive magnitude — direction carries the sign elsewhere —
agent/backtest/engines/base.py:968
↓ 4 callers
Function
_call
(fn, *args, **kwargs)
agent/src/api/paper_trade_routes.py:27
↓ 4 callers
Function
_call
(call_id: str, name: str, **arguments: Any)
agent/tests/test_cli_conversation.py:75
↓ 4 callers
Function
_call
(agent: AgentRuntime, name: str, arguments: dict, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:137
↓ 4 callers
Function
_call
(call_id: str, name: str, arguments: dict)
agent/tests/test_session_thread_projection.py:13
↓ 4 callers
Function
_call
(observations, *, spot=100.0, rate=0.0, dividend=0.0)
agent/tests/quantlib/test_surface_diagnostics.py:32
↓ 4 callers
Function
_call_build_warnings
Call ``build_warnings`` tolerantly across plausible signatures. The contract pins behavior (tuple with stable prefixes), not the exact parame
agent/tests/test_strategy_discovery_models.py:283
↓ 4 callers
Function
_call_with_backoff
Call a Tushare endpoint, waiting out a per-minute quota rejection. Only quota rejections are retried. Retrying an ordinary failure would turn
agent/backtest/loaders/tushare.py:58
↓ 4 callers
Function
_cap_periods
Cap each period's field count, keeping every period. The record count is no longer clipped here: ``execute`` pages whole periods against the
agent/src/tools/financial_statements_tool.py:144
↓ 4 callers
Function
_capture_handle_message
(channel)
agent/tests/test_voice_note_attachment_passthrough.py:25
↓ 4 callers
Function
_capture_session_ids
Replace ``_run_agent`` with a spy recording the session id it receives.
agent/tests/test_cli_session_id.py:39
↓ 4 callers
Method
_capture_temperature
(self, model: str, configured_temp: str)
agent/tests/test_llm.py:850
↓ 4 callers
Function
_cfg
()
agent/tests/test_shoonya_interval_map.py:22
↓ 4 callers
Function
_chat
(llm: _RecordingLLM)
agent/tests/test_provider_agnostic_tool_policy.py:76
← previous
next →
2,401–2,500 of 30,405, ranked by callers