MCPcopy Create free account

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

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

↓ 49 callersMethodtimestamp
(self)
agent/src/tools/paper_trade/cancellation.py:34
↓ 45 callersFunction_holding
( *, isin: str = VALID_ISIN, name: str = "Example World ETF", instrument_type: str = "ETF",
agent/tests/test_extraetf_reader.py:61
↓ 45 callersMethodcalc_commission
(self, size, price, direction, is_open)
agent/tests/test_risk_xray.py:345
↓ 45 callersFunctiondecay_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 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
↓ 45 callersFunctionread_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:452
↓ 44 callersMethodclose
Stop housekeeping and cancel queued work without spawning replacements.
agent/src/data_gateway/service.py:75
↓ 44 callersFunctionparse_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/evals/grounding/figures.py:821
↓ 44 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
↓ 44 callersFunctionts_min
Rolling min per column, warmup → NaN.
agent/src/factors/base.py:311
↓ 43 callersFunction_block
(*rows: str)
agent/tests/test_grounding_role_hardening.py:115
↓ 43 callersMethod_fetch_one
Forward time-window chunking (Wallex has no pagination).
agent/backtest/loaders/wallex.py:188
↓ 43 callersFunction_write_csv
Write a fixture file and return its path.
agent/tests/test_entities_spine.py:41
↓ 43 callersFunctioncalc_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:192
↓ 43 callersMethodget
Return one immutable snapshot by id. Args: snapshot_id: Exact persisted snapshot identifier. Returns: The st
agent/src/portfolio/store.py:127
↓ 43 callersMethodrun
Run a turn with its provider session ID bound through cleanup. Args: user_message: User message for this turn. histor
agent/src/agent/runtime.py:202
↓ 43 callersMethodskip
()
agent/src/product/tool_execution.py:348
↓ 43 callersFunctionvwap
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 callersFunction_holdings_export
(*rows: dict[str, str])
agent/tests/test_extraetf_reader.py:137
↓ 42 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 42 callersMethodget
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
↓ 42 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:262
↓ 42 callersFunctionts_std
Rolling sample std (ddof=1) per column, warmup → NaN.
agent/src/factors/base.py:272
↓ 42 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
↓ 41 callersFunction_create_market_engine
Select real market rules and surface engine-specific unused settings.
agent/backtest/runner.py:1823
↓ 41 callersFunctionts_max
Rolling max per column, warmup → NaN.
agent/src/factors/base.py:304
↓ 40 callersMethodrun_backtest
(self, config, loader, signal_engine, path, **kwargs)
agent/tests/test_ui_services.py:225
↓ 40 callersMethodsave_task
Save or overwrite task state. Args: task: Current task record to persist under its ID.
agent/src/swarm/task_store.py:31
↓ 40 callersMethodsubmit
(prompt: string)
frontend/src/components/chat/Composer.tsx:61
↓ 39 callersMethoddone
Whether the run has ended (or the client closed under it).
agent/vibe_trading/client.py:167
↓ 39 callersMethodround_size
(self, raw_size, price)
agent/tests/test_risk_xray.py:342
↓ 39 callersMethodsave
(self, jobs)
agent/tests/test_runtime_runner.py:518
↓ 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:247
↓ 38 callersFunction_engine
(**overrides)
agent/tests/test_taiwan_equity_engine.py:32
↓ 38 callersMethod_execute_bars
Bar-by-bar execution with market rule enforcement.
agent/backtest/engines/base.py:1349
↓ 38 callersFunction_make_facade
(tmp_path, *, alpha_ids=("a1", "a2"), artifacts=(), rows=())
agent/tests/test_strategy_discovery_facade.py:161
↓ 38 callersFunctionagent_artifact_dir
Return the canonical artifacts directory for one task within a run. Args: run_dir: Root directory for the swarm run. agent_id: Si
agent/src/swarm/artifacts.py:7
↓ 38 callersMethodappend
Collect model-visible additions independently of in-place compaction. Args: messages: Destination list, whose additions are copie
agent/src/agent/loop_conversation.py:36
↓ 38 callersMethodget_historical_bars
(self, symbol, **kw)
agent/tests/test_india_broker_loader.py:78
↓ 37 callersMethodcreate_session
(self, **options)
agent/tests/test_copilot_provider.py:259
↓ 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 callersMethodload
(self)
agent/tests/test_runtime_runner.py:515
↓ 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 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:392
↓ 36 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
↓ 36 callersMethodis_available
(self)
agent/tests/test_history_router.py:290
↓ 35 callersFunction_payload
(**changes)
agent/tests/test_paper_trade_cancellation.py:23
↓ 35 callersMethodfetchall
(self)
agent/tests/test_session_search_distinct_limit.py:58
↓ 35 callersFunctionget_provider_capabilities
Read one provider's connection and protocol facts, preserving legacy inference. Args: provider: Provider label or alias. An empty or Open
agent/src/providers/registry.py:206
↓ 35 callersFunctionrecorder_at
(directory: Path)
agent/tests/recording_helpers.py:9
↓ 35 callersMethodreset
Clear successful-call history, caches, and replay tracking for a new turn.
agent/src/product/tool_replay.py:51
↓ 34 callersFunction_declared
(prose: str, *lines: str)
agent/tests/test_grounding_backtest_outputs.py:168
↓ 34 callersMethodcancel
Request cooperative cancellation and stop owned background work.
agent/src/agent/runtime.py:194
↓ 34 callersMethodclose
Best-effort release of HTTP clients owned by this adapter.
agent/src/providers/chat.py:53
↓ 34 callersMethodfrom_dict
Deserialize a session from a dictionary. Args: data: Dictionary produced from parsed JSON, with a status value and optional seria
agent/src/session/models.py:136
↓ 34 callersMethodget_positions
(self, config)
agent/tests/test_sdk_order_gate.py:72
↓ 34 callersMethodkill
(self)
agent/tests/test_bash_tool.py:35
↓ 34 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:699
↓ 34 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
↓ 34 callersMethodnormalize
Remove padding from overlapping reads of the explicitly named symbols. Args: arguments: Model's market-data arguments, which are
agent/src/product/data_window.py:49
↓ 33 callersFunction_client
()
agent/tests/test_options_routes.py:33
↓ 33 callersMethod_execute_run
Schedule the DAG by layer in the run’s background thread.
agent/src/swarm/runtime.py:571
↓ 33 callersFunction_run
(payload: dict[str, Any], *, loader: Any = None, calendar: Any = None)
agent/tests/paper_trade_5m_fixtures.py:304
↓ 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:313
↓ 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 callersFunctionfn
()
agent/tests/test_loader_retry_helpers.py:62
↓ 33 callersMethodpositions
(self)
agent/tests/test_ibkr_local.py:59
↓ 33 callersFunctionredact_payload
Recursively redact sensitive keys in a structured payload. Walks dicts and lists; any dict value whose key :func:`is_sensitive_arg` marks sen
agent/src/tools/redaction.py:356
↓ 33 callersMethodremove
Remove a memory entry by title or filename stem. One title can exist under several memory types, each in its own file (``{memory_type
agent/src/memory/persistent.py:663
↓ 33 callersFunctionset_replies
(*replies: dict[str, Any])
agent/tests/claude_cli_helpers.py:106
↓ 33 callersMethodwait
Wait for a node stop signal or the caller's timeout. Args: timeout: Maximum additional seconds to wait. None waits up to the node
agent/src/swarm/node.py:350
↓ 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 callersMethodapply_slippage
(self, price, direction)
agent/tests/test_risk_xray.py:348
↓ 32 callersMethodcreate
(self, **kwargs: Any)
agent/tests/test_responses_stream_compat.py:20
↓ 32 callersMethodget_rows
Read evidence rows, optionally filtered, ordered by (strategy_id, regime).
agent/src/strategy_discovery/evidence_store.py:331
↓ 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 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
↓ 32 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
↓ 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:1725
↓ 31 callersFunction_make_engine
(**overrides)
agent/tests/test_crypto_engine.py:42
↓ 31 callersMethodclose
(self)
agent/src/data_gateway/history_store.py:786
↓ 31 callersFunctionparse_response
Convert a LangChain AIMessage (or AIMessageChunk) to ``contracts.LLMResponse``. Args: ai_message: Provider AI message or accumulated mess
agent/src/providers/response.py:183
↓ 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 callersFunctionset_client_factory
Override or reset the connector client factory (used by unit tests).
agent/src/trading/connectors/etoro/client.py:361
↓ 31 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:243
↓ 31 callersMethodwalk
Run one ordered phase; role predicates receive their own typed arguments.
agent/evals/grounding/registry.py:87
↓ 30 callersFunctionact
()
frontend/src/pages/Agent.tsx:75
↓ 30 callersMethodadd
(self, kind, seconds)
tools/gateway_soak_history.py:19
↓ 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 callersMethodcancel_order
(self, config, order_id, **kwargs)
agent/tests/test_etoro_live_actions.py:47
↓ 30 callersMethodconnect
(self, host, port, *, clientId, timeout, readonly=True, account="")
agent/tests/test_ibkr_local.py:41
↓ 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 callersFunctioncombine_factors
Combine factor panels into one composite score. Args: panels: Factor name -> panel (time x asset) of factor values. returns: Forw
agent/src/quantlib/combination.py:339
↓ 29 callersMethodcommit
(self)
agent/tests/test_session_search_concurrent_consumers.py:98
↓ 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 callersFunctionnode_thread
Locate the canonical thread outside the model's task workspace. Args: run_dir: Root directory for the swarm run. agent_id: Single
agent/src/swarm/artifacts.py:57
← previousnext →101–200 of 30,405, ranked by callers