MCPcopy Create free account

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

Functions26,887 in github.com/HKUDS/Vibe-Trading

↓ 40 callersMethodregister
Register a tool.
agent/src/agent/tools.py:76
↓ 40 callersFunctionreplace
(src, dst)
agent/tests/test_runtime_jobstore.py:88
↓ 40 callersMethodupsert
Insert or replace a job by id. Validates the schedule string and the timezone's shape before persisting. The timezone key is delibera
agent/src/scheduled_research/store.py:157
↓ 39 callersMethodclear
Clear the buffered events and notify subscribers for a session. Subscriber queues receive a ``session_cleared`` sentinel event so the
agent/src/session/events.py:294
↓ 39 callersMethodclose
Close the file handle.
agent/src/agent/trace.py:181
↓ 39 callersFunctionextract_shadow_profile
Extract a ShadowProfile from a broker journal file. Args: journal_path: CSV/Excel exported from a supported broker. min_support:
agent/src/shadow_account/extractor.py:65
↓ 39 callersMethodis_available
(self)
agent/tests/test_price_caliber.py:346
↓ 39 callersMethodreplace_goal
Supersede the current goal and create a new active goal. Args: session_id: Owning session id. objective: Research obj
agent/src/goal/store.py:261
↓ 39 callersMethodto_dict
Serialize rates without losing decimal precision.
agent/src/portfolio/fx.py:79
↓ 38 callersFunction_align
Build aligned date index, close matrix, target-position matrix, return matrix. Signal is shifted by 1 bar (next-bar-open semantics) then normalis
agent/backtest/engines/base.py:245
↓ 38 callersMethod_execute_bars
Bar-by-bar execution with market rule enforcement.
agent/backtest/engines/base.py:1239
↓ 38 callersFunction_make_facade
(tmp_path, *, alpha_ids=("a1", "a2"), artifacts=(), rows=())
agent/tests/test_strategy_discovery_facade.py:161
↓ 37 callersFunction_declared
(prose: str, *lines: str)
agent/tests/test_grounding_backtest_outputs.py:162
↓ 37 callersFunctionget_playbook
Load a single playbook by slug. Args: slug: Playbook slug (its filename stem). directory: Search only this directory instead of t
agent/src/scheduled_research/playbooks.py:404
↓ 37 callersFunctionrun_paper_trade_step
Run one paper-trading step and return the single in-band JSON document. Flow (T5 wire surface): ``parse_request`` → market data → ``match_orders`
agent/src/tools/paper_trade/tool.py:187
↓ 36 callersFunction_make_engine
(**overrides)
agent/tests/test_china_futures_engine.py:56
↓ 36 callersFunction_paper_config
(**extra: Any)
agent/tests/test_mt5_connector.py:210
↓ 36 callersMethodround_size
(self, raw_size, price)
agent/tests/test_risk_xray.py:342
↓ 36 callersMethodrun_dir
Return the directory path for a given run. Args: run_id: Run identifier. Returns: Path to the run directory.
agent/src/swarm/store.py:139
↓ 35 callersFunction_create_market_engine
Select real market rules and surface engine-specific unused settings.
agent/backtest/runner.py:1734
↓ 35 callersMethodcalc_commission
(self, size, price, direction, is_open)
agent/tests/test_risk_xray.py:345
↓ 35 callersMethodget_historical_bars
(self, symbol, **kw)
agent/tests/test_india_broker_loader.py:78
↓ 35 callersFunctionload_mandate
Load the committed mandate for ``broker`` from the protected store. Reads ``<runtime_root>/live/<broker>/mandate.json`` (written 0600 by the
agent/src/live/mandate/store.py:42
↓ 35 callersMethodread
(self)
agent/tests/test_tap_forward.py:32
↓ 35 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:612
↓ 34 callersMethodcancel
Cancel the current loop. Sets a thread-safe flag polled at every iteration boundary, per LLM stream chunk, and between tool batches,
agent/src/agent/loop.py:292
↓ 34 callersMethodclear
(self, session_id)
agent/tests/test_openbb_bridge/test_adapter.py:30
↓ 34 callersMethodclose
(self)
agent/tests/test_swarm_context.py:40
↓ 34 callersMethodsave
(self, jobs)
agent/tests/test_runtime_runner.py:518
↓ 33 callersFunctionbuild_mcp_tool_wrappers
Build local tool wrappers for a configured MCP server. Args: server_name: Logical server name from config. server_config: Validat
agent/src/tools/mcp.py:312
↓ 33 callersMethodcancel_order
(self, config, order_id, **kwargs)
agent/tests/test_etoro_live_actions.py:47
↓ 33 callersFunctionevent_study
Measure the abnormal return around a set of dated events. Args: returns: Simple returns, rows indexed by date, one column per symbol.
agent/src/quantlib/eventstudy.py:325
↓ 33 callersMethodpositions
(self)
agent/tests/test_ibkr_local.py:59
↓ 33 callersMethodstream_chat
(self, messages, **kwargs)
agent/tests/test_swarm_context.py:34
↓ 32 callersFunction_make_channel
Build an Email channel that has NOT been started (no polling loop).
agent/tests/test_email_connection_test.py:61
↓ 32 callersFunction_mandate
( *, max_order=1_000_000.0, max_trades=100, assets=(AssetClass.US_EQUITY,), instruments=(I
agent/tests/test_sdk_order_gate.py:94
↓ 32 callersFunction_patch_gate
(monkeypatch, *, mandate, halted=False)
agent/tests/test_sdk_order_gate.py:127
↓ 32 callersFunction_run
(payload: dict[str, Any], *, loader: Any = None, calendar: Any = None)
agent/tests/paper_trade_5m_fixtures.py:304
↓ 32 callersFunctioncode_currency
Return the supported settlement-currency contract for a symbol. Args: code: Ticker / symbol string. Returns: A currency code
agent/backtest/engines/_market_hooks.py:309
↓ 32 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:94
↓ 32 callersMethodfrom_dict
Deserialize a session from a dictionary. Args: data: Dictionary produced from parsed JSON. Returns: A Sessio
agent/src/session/models.py:181
↓ 32 callersMethodget_rows
Read evidence rows, optionally filtered, ordered by (strategy_id, regime).
agent/src/strategy_discovery/evidence_store.py:331
↓ 32 callersMethodload
(self)
agent/tests/test_runtime_runner.py:515
↓ 32 callersFunctionload_cashflows
Load an irregular dated cash-flow file into a ``CashFlowSeries``. The file needs a date column and an amount column. Currency and kind may co
agent/src/entities/ingest.py:365
↓ 32 callersMethodread
Read trace.jsonl records. Args: dir_path: Directory containing ``trace.jsonl``. resolve_offloads: Whether to read sid
agent/src/agent/trace.py:303
↓ 32 callersFunctionvalidate_date_range
Validate that start_date <= end_date. Args: start_date: Start date string (YYYY-MM-DD). end_date: End date string (YYYY-MM-DD).
agent/backtest/loaders/base.py:170
↓ 32 callersFunctionvalidate_schedule
Raise ``ValueError`` when *schedule* is malformed. Args: schedule: Either a positive integer string (interval-ms) or a simpli
agent/src/scheduling/triggers.py:130
↓ 31 callersFunction_annualisation_bars
Bars per year for a single-market run, checked against the served bars. ``interval`` is what the caller asked for, not a fact about what arrived.
agent/backtest/runner.py:1636
↓ 31 callersFunctionfn
()
agent/tests/test_loader_retry_helpers.py:62
↓ 31 callersFunctionpayload
Build a ``claude -p --output-format json`` result. Args: structured: The ``structured_output`` object, or ``None`` to omit it. is
agent/tests/claude_cli_helpers.py:137
↓ 31 callersMethodrequest
( self, method: str, path: str, *, params: Mapping[str, Any] | None =
agent/src/trading/connectors/etoro/client.py:280
↓ 31 callersFunctionset_client_factory
Override or reset the connector client factory (used by unit tests).
agent/src/trading/connectors/etoro/client.py:361
↓ 31 callersFunctionset_replies
(*replies: dict[str, Any])
agent/tests/claude_cli_helpers.py:106
↓ 31 callersFunctionwrite_run_card
Write JSON and Markdown run cards for a backtest run. Args: run_dir: Directory where run_card.json and run_card.md are written. c
agent/backtest/run_card.py:168
↓ 30 callersMethod__new__
(cls, *args: object, **kwargs: object)
agent/tests/test_sdk_connectors.py:196
↓ 30 callersMethodapply
(self, w: np.ndarray, codes: Sequence[str])
agent/backtest/constraints.py:60
↓ 30 callersFunctionassert_loader_contract
Assert a loader's normalized frame satisfies the shared contract. One call per loader test, on its canonical fixture.
agent/tests/loader_contract.py:83
↓ 30 callersMethodfetchall
(self)
agent/tests/test_session_search_distinct_limit.py:58
↓ 30 callersMethodget_positions
(self, config)
agent/tests/test_sdk_order_gate.py:72
↓ 30 callersFunctionload_agent_config
Load structured agent config from disk with safe fallback. Args: config_path: Optional explicit config path. When omitted, the default
agent/src/config/loader.py:28
↓ 29 callersFunction_assets
(n=200)
agent/tests/quantlib/test_factormodel.py:32
↓ 29 callersMethod_execute_run
Core orchestration loop (runs in background thread). Steps: 1. Update run status to running 2. Initialize TaskStore,
agent/src/swarm/runtime.py:517
↓ 29 callersMethodapply_slippage
(self, price, direction)
agent/tests/test_risk_xray.py:348
↓ 29 callersMethoddelete
Remove stored secrets; a missing vault cannot confirm their deletion. Args: connection_id: Identifier of the local connection ins
agent/src/trading/credentials.py:154
↓ 29 callersFunctionensure_system_jobs
Seed/repair every enabled system job into *store* (idempotent). Call at lifespan startup BEFORE ``executor.start()`` (timing contract, module
agent/src/scheduling/system_jobs.py:420
↓ 29 callersFunctionget_console
Return the shared console instance. Returns: The single :class:`Console` everyone in ``agent/cli`` writes to.
agent/cli/theme.py:191
↓ 29 callersMethodingest_tool_result
(self, **kwargs)
agent/tests/test_agent_loop_deterministic_cache.py:222
↓ 29 callersFunctionload_contract_schema
Load one named jsonschema from a VD-13 contract file. ``name`` is ``"result"`` (success out-param) or ``"error_envelope"``; ``version`` is on
agent/src/tools/paper_trade/schema.py:571
↓ 29 callersMethodquery_strategies
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:70
↓ 29 callersFunctionscan_figures
Locate and classify every number in the prose of a draft (spec §3). * ``exempt`` — a date, time, security-code digits, line-leading ordinal,
agent/src/agent/grounding/figures.py:1227
↓ 28 callersFunction_ledger
(tmp_path: Path, *, message: str = "分析 159516.SZ 并给出买入价")
agent/tests/test_grounding_figures_contract.py:77
↓ 28 callersFunction_make_engine
(**overrides)
agent/tests/test_crypto_engine.py:42
↓ 28 callersFunction_panel
Build a return frame generated by a known market model.
agent/tests/quantlib/test_eventstudy.py:19
↓ 28 callersFunction_sdk_module
Import the SDK connector module for a ``broker_sdk`` connector key.
agent/src/trading/service.py:38
↓ 28 callersFunctionact
()
frontend/src/pages/Agent.tsx:82
↓ 28 callersMethodaddEventListener
(type: string, handler: ESHandler)
frontend/src/hooks/__tests__/useSSE.test.ts:19
↓ 28 callersMethodcreate
Create a new connection instance. Args: connection_id: Identifier for the new connection. profile_id: Read-only profi
agent/src/trading/connections.py:231
↓ 28 callersMethodregister_artifact
(self, artifact: Artifact, **kwargs)
agent/src/strategy_store/adaptation.py:37
↓ 28 callersMethodrun_backtest
(self, config, loader, signal_engine, path, **kwargs)
agent/tests/test_ui_services.py:221
↓ 28 callersFunctionrun_bench
Run a bench end-to-end and return the API-shaped summary. Args: zoo: Zoo id (e.g. ``gtja191``, ``alpha101``, ``qlib158``). univer
agent/src/factors/bench_runner.py:144
↓ 28 callersMethodwait
Block until ``bucket`` is allowed to fire again, then record the slot. The *reserved fire time* — jitter included — is what gets stored, so t
agent/backtest/loaders/_http.py:75
↓ 27 callersFunction_dingtalk_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:136
↓ 27 callersMethod_frame
(index)
agent/tests/test_cross_market_annualization.py:140
↓ 27 callersFunction_make_engine
(**overrides)
agent/tests/test_forex_engine.py:40
↓ 27 callersFunction_payload
(**overrides: Any)
agent/tests/paper_trade_5m_fixtures.py:289
↓ 27 callersMethod_process_tool_calls
Pre-process tool calls: handle compact, filter duplicates, batch execute. Args: tool_calls: Raw tool calls from LLM response.
agent/src/agent/tool_lifecycle.py:49
↓ 27 callersFunction_run
(coro: Any)
agent/tests/test_email_connection_test.py:66
↓ 27 callersFunctioncall
(tool, **kwargs)
agent/tests/test_quantlib_tool.py:23
↓ 27 callersFunctionnext_due
Return the first due epoch-ms strictly after ``after_ms``. Supports the scheduled-research schedule format: a bare positive integer string fo
agent/src/scheduling/triggers.py:206
↓ 26 callersFunction_base_run
(run_id: str = "r", *, timeout: int = 300, retries: int = 0)
agent/tests/test_swarm_status_hydration.py:48
↓ 26 callersFunction_calc_options_metrics
Calculate options backtest metrics. Args: equity: Equity series. initial_cash: Initial capital. trades: List of trade rec
agent/backtest/engines/options_portfolio.py:703
↓ 26 callersFunction_install_smtp_fakes
Replace ``smtplib.SMTP``/``SMTP_SSL`` with recording fakes.
agent/tests/test_email_connection_test.py:142
↓ 26 callersFunction_normalize_symbol
Normalize a symbol onto one canonical identity for exact comparison. Args: value: Any provider- or model-supplied symbol spelling. R
agent/src/agent/grounding/identity.py:164
↓ 26 callersFunction_reasons
(result: Any)
agent/tests/test_grounding_role_hardening.py:115
↓ 26 callersFunction_reload_base_with_bottleneck
Reload base.py with bottleneck enabled or disabled.
agent/tests/test_factor_operators.py:21
↓ 26 callersFunction_w
(**kwargs)
agent/tests/test_factor_costs.py:21
↓ 26 callersFunctioncached_loader_fetch
Fetch one DataFrame through the opt-in local cache. Convenience wrapper over :func:`loader_cache_get` / :func:`loader_cache_put` for the comm
agent/backtest/loaders/base.py:639
↓ 26 callersMethodget_bench_history
Get bench history for an artifact, newest first. Args: artifact_id: Artifact whose bench rows are returned. limit: Ma
agent/src/strategy_store/store.py:121
↓ 26 callersMethodrun_once
Run ONE fail-closed tick in fixed order; return the outcome dict. Ordering (each step short-circuits the tick on failure): 1. **Halt
agent/src/live/runtime/runner.py:419
↓ 26 callersMethodstart
(self)
agent/tests/test_feishu_stop.py:51
← previousnext →101–200 of 26,887, ranked by callers