MCPcopy Create free account

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

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

↓ 5 callersFunctionsave_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 callersMethodsave_settings
(self, payload)
agent/tests/test_portfolio_routes.py:27
↓ 5 callersMethodscan_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 callersFunctionscenario
()
agent/tests/test_runtime_scheduler.py:111
↓ 5 callersMethodsearch
Search the latest revision of each series with optional provenance filters.
agent/src/research_artifacts/store.py:464
↓ 5 callersMethodselect_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 callersFunctionsend_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 callersFunctionsession_values
The D1 session bar (open/high/low/close/volume) from a raw day frame.
agent/tests/paper_trade_5m_fixtures.py:113
↓ 5 callersMethodset_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 callersFunctionsharpe_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 callersMethodshould_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 callersMethodshutdown
(self, wait=False, cancel_futures=True)
agent/src/data_gateway/scheduling.py:95
↓ 5 callersMethodshutdown
(self)
agent/tests/test_mt5_connector.py:145
↓ 5 callersMethodsnapshot
(self, name, date, rows, repo_id=123)
tools/github_traffic/test_archive.py:22
↓ 5 callersFunctionsource_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 callersFunctionsource_run
Resolve a run identifier or an explicitly allowed run directory.
agent/src/research_lab/execution.py:45
↓ 5 callersFunctionsplit_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 callersFunctionstamp_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 callersMethodstart
Start the QQ bot with auto-reconnect loop.
agent/src/channels/qq.py:205
↓ 5 callersMethodstart
The source offset where normalized position ``index`` begins.
agent/evals/grounding/figures.py:317
↓ 5 callersMethodstop
()
desktop/electron/src/backend-manager.ts:162
↓ 5 callersFunctionstop_http_mcp_server
Terminate an HTTP MCP subprocess and wait for clean exit.
agent/tests/mcp_http_test_helpers.py:90
↓ 5 callersMethodsubmit_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 callersMethodsubscribe
(self, topics)
agent/src/data_gateway/streams.py:215
↓ 5 callersFunctionsupervised_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 callersMethodtail
()
desktop/electron/src/backend-manager.ts:298
↓ 5 callersMethodtake
(self)
agent/src/data_gateway/streams.py:68
↓ 5 callersFunctionthreadFixture
(rows: any[])
frontend/src/pages/__tests__/threadFixture.ts:4
↓ 5 callersMethodto_dict
(self)
agent/src/pixel_agents/office.py:57
↓ 5 callersMethodto_json
Serialize to a JSON string. Args: indent: Optional pretty-print indent; compact when ``None``. Returns: JSON
agent/src/governance/manifest.py:335
↓ 5 callersMethodtokens
Estimate the next request from the last provider input-token count. Args: messages: Current worker conversation. tool
agent/src/swarm/context.py:58
↓ 5 callersFunctiontopological_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 callersMethodtrip_halt
(self, by: str, reason: str, broker: str | None = None)
agent/tests/test_runtime_runner.py:138
↓ 5 callersFunctiontry_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 callersFunctionts_resi
Latest observation's residual from the same trailing OLS fit.
agent/src/factors/base.py:297
↓ 5 callersMethodturn_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 callersFunctiontvpi
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 callersFunctiontw_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 callersFunctionunquote
(value: string)
desktop/electron/src/secure-credentials.ts:179
↓ 5 callersMethodunsubscribe
(self, listener)
agent/src/data_gateway/streams.py:234
↓ 5 callersMethodupdate_artifact
Replace an artifact record. Returns updated artifact or None if not found.
agent/src/strategy_store/store.py:107
↓ 5 callersFunctionverify_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 callersFunctionverify_tolerance_covers
Return the recorded samples the tolerance does not bound.
agent/backtest/binance_tolerance_calibration.py:145
↓ 5 callersFunctionwants_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 callersFunctionworkspace_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 callersMethodwrite
(self, data)
agent/src/data_gateway/history_store.py:803
↓ 5 callersFunctionwrite_binance_drift_evidence
Append one strict JSONL record and replace its latest summary.
agent/backtest/binance_shadow_evidence.py:198
↓ 5 callersFunctionwrite_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 callersMethod__init__
(self)
agent/tests/test_plan_rejected.py:301
↓ 4 callersMethod__init__
(self, *, stop_before: bool = False)
agent/tests/test_base_engine.py:559
↓ 4 callersFunction_aapl_endpoint_ledger
A ledger holding two observed AAPL.US closes, 100.0 and 112.4.
agent/tests/test_agent_grounding.py:3025
↓ 4 callersMethod_actual_positions_frame
Materialize recorded post-fill weights as an artifact-ready frame.
agent/backtest/engines/base.py:2295
↓ 4 callersFunction_agent
(tool: BaseTool, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:124
↓ 4 callersFunction_agent_root
Return the agent package root.
agent/src/tools/path_utils.py:131
↓ 4 callersFunction_agent_spec
( *, agent_id: str, tools: list[str], max_iterations: int = 4, )
agent/tests/test_swarm_m4_e2e.py:175
↓ 4 callersFunction_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 callersFunction_all_engines
Merge built-in + plugins. Plugins override built-ins on name collision.
agent/src/tools/ocr/engine.py:86
↓ 4 callersFunction_all_text
(prs: Presentation)
agent/tests/quantlib/valuation/test_artifact.py:819
↓ 4 callersFunction_answer
(ref)
agent/tests/test_grounding_multi_derived_refs.py:33
↓ 4 callersMethod_append_tool_result
Append a tool message and record it as the model receives it.
agent/src/product/artifacts.py:185
↓ 4 callersMethod_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 callersFunction_artifact_to_dict
Convert a frozen dataclass artifact to a JSON-safe dict.
agent/src/tools/sdm_status_tool.py:33
↓ 4 callersFunction_as_decimal
``Decimal(str(value))`` conversion (VD-9) with an explicit error.
agent/src/tools/paper_trade/volume_policy.py:42
↓ 4 callersFunction_as_float
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:659
↓ 4 callersFunction_as_float
Coerce ``value`` to a finite float, else ``None`` (quantity may be signed).
agent/src/live/enforcement.py:463
↓ 4 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/okx/sdk.py:650
↓ 4 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/upbit/sdk.py:651
↓ 4 callersFunction_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 callersFunction_assert_row_zscore_properties
(result: pd.DataFrame)
agent/tests/test_get_fundamentals_tool.py:92
↓ 4 callersFunction_assert_whole_call_failure
(outcome, message: str, request)
agent/tests/test_paper_trade_strategy_path.py:129
↓ 4 callersFunction_assistant_call
(thread: ThreadLog, turn: str, call_id: str, args: Dict[str, Any])
agent/tests/test_session_thread_events.py:61
↓ 4 callersFunction_assumptions
(engine: ChinaFuturesEngine)
agent/tests/test_china_futures_pricing_assumptions.py:42
↓ 4 callersFunction_assumptions
(engine: GlobalFuturesEngine)
agent/tests/test_global_futures_pricing_assumptions.py:47
↓ 4 callersFunction_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 callersMethod_attempt
(self)
agent/tests/test_anthropic_temperature_validation.py:52
↓ 4 callersFunction_bar_date
Extract date from bar, handling various column names.
agent/backtest/engines/china_a.py:86
↓ 4 callersFunction_bars
(opens: list[float], closes: list[float], dates=_DATES)
agent/tests/test_benchmark_warmup_basis.py:33
↓ 4 callersFunction_bars
()
agent/tests/test_market_data_serving_source.py:10
↓ 4 callersFunction_base_payload
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/instruments.py:53
↓ 4 callersFunction_bench_args
(**extra)
agent/tests/test_tool_output_dir_write_roots.py:95
↓ 4 callersFunction_best_summary
Extract the best summary from all assistant messages.
agent/src/swarm/node.py:706
↓ 4 callersFunction_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 callersFunction_bounded
Change units before centering/squaring to avoid float overflow/underflow.
agent/src/quantlib/neutralization.py:88
↓ 4 callersFunction_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 callersFunction_build_three_statement_artifact
(*, generated_at: datetime = FIXED_TIME)
agent/tests/quantlib/valuation/test_artifact.py:247
↓ 4 callersFunction_build_transport
(server_config: MCPServerConfig)
agent/tests/test_mcp_oauth_schema.py:235
↓ 4 callersMethod_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 callersFunction_call
(fn, *args, **kwargs)
agent/src/api/paper_trade_routes.py:27
↓ 4 callersFunction_call
(call_id: str, name: str, **arguments: Any)
agent/tests/test_cli_conversation.py:75
↓ 4 callersFunction_call
(agent: AgentRuntime, name: str, arguments: dict, tmp_path)
agent/tests/test_provider_agnostic_tool_policy.py:137
↓ 4 callersFunction_call
(call_id: str, name: str, arguments: dict)
agent/tests/test_session_thread_projection.py:13
↓ 4 callersFunction_call
(observations, *, spot=100.0, rate=0.0, dividend=0.0)
agent/tests/quantlib/test_surface_diagnostics.py:32
↓ 4 callersFunction_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 callersFunction_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 callersFunction_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 callersFunction_capture_handle_message
(channel)
agent/tests/test_voice_note_attachment_passthrough.py:25
↓ 4 callersFunction_capture_session_ids
Replace ``_run_agent`` with a spy recording the session id it receives.
agent/tests/test_cli_session_id.py:39
↓ 4 callersMethod_capture_temperature
(self, model: str, configured_temp: str)
agent/tests/test_llm.py:850
↓ 4 callersFunction_cfg
()
agent/tests/test_shoonya_interval_map.py:22
↓ 4 callersFunction_chat
(llm: _RecordingLLM)
agent/tests/test_provider_agnostic_tool_policy.py:76
← previousnext →2,401–2,500 of 30,405, ranked by callers