MCPcopy Create free account

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

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

↓ 16 callersFunction_resp
A range-mode /candles body: {candles, truncated, coverage, stopReason, ...}.
agent/tests/test_tickerall_loader.py:41
↓ 16 callersFunction_router
Return a ``_sec_get`` stub that answers by URL, as the live endpoints do. Full-text search is filtered by the ``ciks`` parameter the way the live
agent/tests/test_institutional_holdings_tool.py:177
↓ 16 callersFunction_run
(run_dir: Path, *, success: bool = True, exit_code: int = 0)
agent/tests/test_backtest_records_bench.py:104
↓ 16 callersFunction_seed
(store: ScheduledResearchJobStore, **overrides: object)
agent/tests/test_scheduled_routes.py:48
↓ 16 callersFunction_seed
Populate a tmp memory dir with one entry per type.
agent/tests/test_cli_memory.py:14
↓ 16 callersFunction_trade
( symbol: str = "X", pnl: float = 100.0, direction: int = 1, exit_reason: str = "signal",
agent/tests/test_metrics.py:37
↓ 16 callersMethodappend_evidence
Append traceable evidence after stale-goal validation. Args: session_id: Owning session id. goal_id: Goal being mutat
agent/src/goal/store.py:602
↓ 16 callersFunctionbond_price
Present value of a bullet bond settling on a coupon date. The result is a *clean* price: settlement is assumed to sit on a coupon date so no
agent/src/quantlib/fixedincome.py:277
↓ 16 callersFunctionconnect
Open the store. Read-only connections never create the file. Raises: FileNotFoundError: On a read-only open when no sync has run yet.
agent/src/br_data/store.py:139
↓ 16 callersFunctioneffective_bars_per_year
Bars per elapsed calendar year observed on ``index``. The cross-market annualisation convention. A basket that spans markets has no single pe
agent/backtest/metrics.py:211
↓ 16 callersMethodfocus
()
frontend/src/components/chat/Composer.tsx:60
↓ 16 callersMethodget_artifact
(self, artifact_id)
agent/tests/test_strategy_discovery_facade.py:145
↓ 16 callersFunctionget_default_registry
Return a process-wide cached ``Registry`` for the bundled zoo. Thread-safe. First call builds and caches; subsequent calls return the same in
agent/src/factors/registry.py:464
↓ 16 callersFunctionget_media_dir
Return a media directory for *channel_name* under the VT uploads root. Inbound media must land inside ``~/.vibe-trading/uploads`` — one of the
agent/src/channels/utils.py:27
↓ 16 callersFunctionhalt_flag_set
Return whether live trading is halted — a pure filesystem check. This is the authoritative kill-switch check the enforcement gate calls before
agent/src/live/halt.py:135
↓ 16 callersMethodlist
Return alpha IDs matching the (optional) filters.
agent/src/factors/registry.py:268
↓ 16 callersFunctionload_config
Load Futu settings from ``~/.vibe-trading/futu.json``.
agent/src/trading/connectors/futu/sdk.py:203
↓ 16 callersFunctionload_playbook_file
Parse one playbook markdown file. Args: path: Path to a ``.md`` playbook file. Returns: The parsed :class:`ResearchPlaybook`
agent/src/scheduled_research/playbooks.py:275
↓ 16 callersFunctionload_preset
Load a YAML preset by name (user directory first, then bundled). Args: name: Preset name (without .yaml extension). Returns:
agent/src/swarm/presets.py:81
↓ 16 callersFunctionmake_client
Build the REST client for a config (tests may override via ``set_client_factory``).
agent/src/trading/connectors/etoro/client.py:356
↓ 16 callersFunctionredact_tool_result
Redact one tool result for trace persistence and event previews. The single choke point for a tool-result string: callers redact once and han
agent/src/tools/redaction.py:652
↓ 16 callersFunctiontime_weighted_return
Chain-link the true time-weighted return across a valuation series. Each interval's return removes that interval's external flow before divid
agent/src/quantlib/performance.py:512
↓ 16 callersFunctionts_argmax
Rolling argmax (0-based index into the window), warmup → NaN. Uses ``bottleneck.move_argmax`` when available (~350x faster). Correction: ``bn
agent/src/factors/base.py:334
↓ 15 callersMethod_auto_compact
Layer 3/4/5: structured LLM summary with token-budget tail protection. Upgrades over the original: - Token-budget tail: keeps ~20K
agent/src/agent/loop.py:1521
↓ 15 callersFunction_backtest
(ledger: GroundingLedger, run_dir: Path, call_id: str)
agent/tests/test_grounding_backtest_outputs.py:139
↓ 15 callersFunction_baseline_peer
A self-consistent, LTM-ready peer for tests that are not about the big hand-computed fixture (EV bridge signs, exclusion, warnings, ...).
agent/tests/quantlib/valuation/test_comps.py:78
↓ 15 callersFunction_baseline_target
(name: str = "TARGET", **overrides: object)
agent/tests/quantlib/valuation/test_comps.py:99
↓ 15 callersFunction_body
Build a minimal FMP historical-price-full body.
agent/tests/test_fmp_loader.py:17
↓ 15 callersMethod_calc_margin
Margin (collateral) required for a position. ``abs(price)`` so collateral stays positive when the entry price is negative; for the us
agent/backtest/engines/base.py:907
↓ 15 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_api_live_runtime.py:31
↓ 15 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/api/test_positions_sectors.py:52
↓ 15 callersFunction_df
(records: list[TradeRecord])
agent/tests/test_trade_journal.py:56
↓ 15 callersMethod_engine_diagnostics
(self)
agent/tests/test_global_equity_hk_lot_sizes.py:143
↓ 15 callersFunction_event
A gamma event wrapping the supplied markets.
agent/tests/test_prediction_market_tool.py:116
↓ 15 callersMethod_get_request_payload
(self, *args: object, **kwargs: object)
agent/tests/test_llm.py:396
↓ 15 callersFunction_intent
(notional=500.0, qty=None, asset=AssetClass.US_EQUITY)
agent/tests/test_sdk_order_gate.py:136
↓ 15 callersFunction_make_bar
(close: float = 60000.0, open_: float | None = None)
agent/tests/test_crypto_engine.py:38
↓ 15 callersFunction_make_store
Construct EvidenceStore tolerantly across positional/keyword db path.
agent/tests/test_strategy_discovery_store.py:36
↓ 15 callersFunction_ok
(**fields: Any)
agent/tests/test_mcp_result_dedup.py:106
↓ 15 callersFunction_read_document
( ledger: GroundingLedger, path: Path, call_id: str, text: str = REPORT, )
agent/tests/test_grounding_document_figures.py:50
↓ 15 callersFunction_rec
(dt: str, symbol: str, side: str, qty: float, price: float, fee: float = 0.0)
agent/tests/test_trade_journal.py:42
↓ 15 callersFunction_resolver_payload
( symbol: str = "562500.SS", *, candidates: list[dict[str, Any]] | None = None, query: str = "
agent/tests/test_agent_grounding.py:32
↓ 15 callersFunction_row
(date_str: str, open_, high, low, close, volume)
agent/tests/test_yahoo_loader.py:40
↓ 15 callersMethod_run_sync
Run _sync_provider_env with a clean env and return relevant keys.
agent/tests/test_llm.py:132
↓ 15 callersFunction_two_action_series
Raw closes with two 2-per-share dividends at bar 3 and bar 6. Trend rises 1 per bar; each ex-date drops the price by the dividend (2), and th
agent/tests/test_additive_conversion.py:33
↓ 15 callersFunction_unsupported
Return a standard unsupported-capability payload.
agent/src/trading/service.py:1715
↓ 15 callersFunction_write
(directory: Path, slug: str, text: str)
agent/tests/test_research_playbooks.py:54
↓ 15 callersFunctionbuild_backtest_summary
Build the structured summary dict for a finished backtest run. Reads ``run_card.json`` (schema 1.0: ``card["backtest"]`` carries codes/dates/
agent/src/tools/backtest_summary.py:71
↓ 15 callersFunctionbuild_run_manifest
Build a :class:`RunManifest` from raw run composition data. Args: run_id: Run/session identifier (provenance only, not hashed). t
agent/src/governance/manifest.py:359
↓ 15 callersMethodcalc_commission_for_symbol
Symbol-aware commission calculation. Args: symbol: Futures code. size: Number of contracts. price: Execut
agent/backtest/engines/china_futures.py:288
↓ 15 callersFunctiondispatch
Dispatch ``alpha <sub>`` to the matching handler. Returns the exit code; ``cli.py`` propagates it via ``_coerce_exit_code``.
agent/src/factors/cli_handlers.py:1192
↓ 15 callersMethoddrain_notifications
Return this owner's queued notifications, oldest first. Notifications belonging to other owners stay queued for them; draining one se
agent/src/tools/background_tools.py:515
↓ 15 callersMethodexecute
(self, **kwargs: Any)
agent/src/tools/sentiment_tool.py:130
↓ 15 callersFunctionfcff_bridge
Build the EBIT -> FCFF bridge for every projection year. Args: ebit: EBIT forecast, one entry per projection year, oldest first.
agent/src/quantlib/valuation/dcf.py:578
↓ 15 callersMethodget
(self, order_id: str)
agent/src/tools/paper_trade/order_lifecycle.py:138
↓ 15 callersMethodget_messages
Read all messages for a session. Args: session_id: Session ID. limit: Maximum number of messages to return.
agent/src/session/store.py:168
↓ 15 callersFunctionis_sensitive_arg
Return whether a tool-argument / payload key name should be redacted. A key is sensitive when its normalized (stripped, lower-cased) form either
agent/src/tools/redaction.py:284
↓ 15 callersMethodload
Load all persisted jobs. Returns: A dict mapping job id to job. Empty when the store has never been written.
agent/src/scheduled_research/store.py:104
↓ 15 callersMethodload
Load the persisted jobs. A missing store (never written) is the *only* clean empty result. A store that exists but fails to parse is
agent/src/live/runtime/jobstore.py:105
↓ 15 callersMethodreconcile_run
Single source of truth for "what does this run actually look like". Three layered transforms, applied in order to ``run``: 1. **Hydr
agent/src/swarm/store.py:385
↓ 15 callersMethodrefresh
Read every enabled source once and persist an immutable snapshot. A source that fails contributes nothing: no positions, no combined
agent/src/portfolio/service.py:301
↓ 15 callersFunctionrun_backtest
Run backtest: validate config.json + signal_engine.py, invoke built-in engine. Args: run_dir: Path to the run directory. Returns:
agent/src/tools/backtest_tool.py:193
↓ 15 callersMethodrun_gc
Run garbage collection on memory store. Args: dry_run: If True (default), log actions without modifying files. Returns:
agent/src/memory/lifecycle.py:183
↓ 15 callersFunctionrun_options_backtest
Options backtest entry point. Day-by-day simulation: 1. Read underlying price for the current day 2. Mark all open option positions to ma
agent/backtest/engines/options_portfolio.py:199
↓ 15 callersFunctionsample
(rows=40, seed=11)
agent/tests/quantlib/test_combination.py:23
↓ 15 callersMethodsave
Validate and atomically persist settings with owner-only permissions. Args: settings: Settings object or raw dict to validate and
agent/src/portfolio/config.py:290
↓ 15 callersFunctionscenario
()
agent/tests/test_channels_runtime.py:317
↓ 15 callersFunctionsqrt_impact
Apply square-root market impact, the best empirically supported form. Impact is ``eta * volatility * sqrt(volume_traded / adv)``. Marginal impact
agent/src/quantlib/impact.py:248
↓ 15 callersMethodstart
The source offset where normalized position ``index`` begins.
agent/src/agent/grounding/figures.py:285
↓ 15 callersMethodto_dict
Return a JSON-serializable dict for SSE payloads.
agent/src/agent/progress.py:52
↓ 15 callersFunctionwalk_forward_analysis
Split backtest into sequential windows, check consistency. Each window is evaluated independently (returns normalised to window start). Args
agent/backtest/validation.py:246
↓ 14 callersFunction_assert_strict_json
(payload: dict)
agent/tests/test_risk_xray.py:28
↓ 14 callersFunction_build_args
Build a Namespace pre-populated with sane defaults that ``_registry`` and handlers expect to read.
agent/tests/test_cli_hypothesis.py:47
↓ 14 callersFunction_buy
(limit=None, qty=100, symbol=_SYM)
agent/tests/test_paper_trade_5m_engine.py:196
↓ 14 callersFunction_call
(path: Path, pages: str = "")
agent/tests/test_doc_reader.py:14
↓ 14 callersFunction_cfg
()
agent/tests/test_zerodha_sdk.py:94
↓ 14 callersFunction_check
(ledger: GroundingLedger, ref: str, written: str = "12.5")
agent/tests/test_grounding_unknown_call_id_refs.py:35
↓ 14 callersFunction_close
Close an OpenD context, swallowing teardown errors.
agent/src/trading/connectors/futu/sdk.py:1118
↓ 14 callersFunction_closes
(series_map: dict[str, list[float]], start: str = "2026-01-01")
agent/tests/test_risk_xray.py:22
↓ 14 callersFunction_compute_with_fixture_windows
Shared call shape: fixture-engineered windows + pinned today.
agent/tests/test_strategy_discovery_harness.py:390
↓ 14 callersFunction_ensure_registered
Import every known loader module so ``@register`` decorators fire. Safe to call multiple times — only runs the imports once. Concurrent calle
agent/backtest/loaders/registry.py:78
↓ 14 callersFunction_fetch
Run the tool against a mocked companyfacts payload and return its periods.
agent/tests/test_sec_period_frames.py:47
↓ 14 callersFunction_generate_signals
Render + load + execute a SignalEngine against a data_map.
agent/tests/test_shadow_account.py:1994
↓ 14 callersFunction_loop
(registry=None)
agent/tests/test_readonly_replay_after_microcompact.py:82
↓ 14 callersFunction_make_bar
Build a minimal bar Series for testing.
agent/tests/test_china_a_engine.py:31
↓ 14 callersFunction_make_dag_run
A three-task DAG: t-a and t-b (layer 1), t-c consuming both (layer 2).
agent/tests/test_swarm_replay.py:29
↓ 14 callersFunction_microcompact
Layer 1: prune old tool results, keeping the most recent N intact. Args: messages: Message list (mutated in place). target_tokens
agent/src/agent/context_compact.py:227
↓ 14 callersFunction_paper_cfg
()
agent/tests/test_alpaca_tap_routing.py:23
↓ 14 callersMethod_rule_for
Get the sub-engine that provides rules for this symbol.
agent/backtest/engines/composite.py:214
↓ 14 callersFunction_scan_symbols
Return the canonical symbols written anywhere in a blob of text.
agent/src/agent/grounding/identity.py:233
↓ 14 callersFunction_strict_json_loads
(text: str)
agent/tests/test_strategy_discovery_tools.py:44
↓ 14 callersFunction_stub_panel
(monkeypatch: pytest.MonkeyPatch, n_rows: int = 80, n_cols: int = 8)
agent/tests/factors/test_bench_strict.py:221
↓ 14 callersMethodappend_event
Append an event to events.jsonl. Args: run_id: Run identifier. event: Event to append. Raises: F
agent/src/swarm/store.py:250
↓ 14 callersMethodcancel
(self)
agent/tests/test_api_live_runtime.py:254
↓ 14 callersFunctioncanonicalize
Return the JCS canonical form of a JSON-native value. Accepts exactly the JSON type lattice: ``None``, ``bool``, ``int``, ``float``, ``str``,
agent/src/tools/paper_trade/state_hash.py:135
↓ 14 callersMethodclose
Close the database connection.
agent/src/memory/search_index.py:575
↓ 14 callersMethodclose
Close transient cards on completion, timeout or cancellation.
agent/src/channels/attempt_progress.py:91
↓ 14 callersFunctionconvert_additive_to_multiplicative
Convert an additive qfq frame to the multiplicative convention. Args: raw: Unadjusted OHLCV bars (``close`` required), ascending date ind
agent/backtest/loaders/additive_conversion.py:103
↓ 14 callersFunctiondetect_source
Infer the best loader source for a normalized symbol.
agent/src/market_data.py:69
↓ 14 callersFunctionfetch
(*, codes, start_date, end_date, source, interval, **kwargs)
agent/tests/test_risk_xray.py:206
← previousnext →401–500 of 26,887, ranked by callers