MCPcopy Create free account

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

Functions15,301 in github.com/HKUDS/Vibe-Trading

↓ 7 callersFunction_amended_cover
Render a cover page that declares an amendment, exactly as EDGAR nests it. Copied from DZ BANK's live 2020-09-30 amendments: ``isAmendment`` and
agent/tests/test_institutional_holdings_tool.py:108
↓ 7 callersFunction_bars
Create a dated OHLCV frame ending on the scanner target date.
agent/tests/test_shadow_scanner.py:41
↓ 7 callersFunction_body
Build a minimal FMP historical-price-full body.
agent/tests/test_fmp_loader.py:16
↓ 7 callersFunction_bridge
(**overrides)
agent/tests/quantlib/valuation/test_dcf.py:719
↓ 7 callersMethod_calc_pnl
Realised PnL for a closed position.
agent/backtest/engines/base.py:611
↓ 7 callersMethod_calc_weights
Equal risk contribution weights.
agent/backtest/optimizers/risk_parity.py:14
↓ 7 callersMethod_calc_weights
(self, ctx: dict[str, np.ndarray])
agent/tests/test_optimizer_causality.py:26
↓ 7 callersFunction_call
(obj: Any, name: str, *args: Any, **kwargs: Any)
agent/src/trading/connectors/longbridge/sdk.py:878
↓ 7 callersFunction_call
(monkeypatch, n, **kw)
agent/tests/test_get_market_data_size.py:37
↓ 7 callersMethod_channel_key
Normalize channel-like objects and ids to a stable string key.
agent/src/channels/discord.py:351
↓ 7 callersFunction_check
(intent: OrderIntent, mandate: Mandate, *, positions=None, daily_count=0)
agent/tests/test_mandate_enforcement.py:171
↓ 7 callersFunction_close
Close an OpenD context, swallowing teardown errors.
agent/src/trading/connectors/futu/sdk.py:756
↓ 7 callersFunction_contribution
Wrap one client contribution of ``size`` in a series. The amount is negated because ``CashFlow`` is holder-perspective: money the client pays
agent/tests/quantlib/test_performance.py:70
↓ 7 callersMethod_convert_chunk_to_generation_chunk
( # type: ignore[override] self, chunk: dict, default_chunk_class: type,
agent/src/providers/llm.py:544
↓ 7 callersFunction_detail
(status, artifact_id)
agent/tests/test_sdm_governance_wiring.py:38
↓ 7 callersMethod_dispatch
(self, argv: list[str])
agent/tests/test_cli_live.py:95
↓ 7 callersFunction_eastmoney_payload
A suggest payload spanning A-share, HK, and US markets.
agent/tests/test_symbol_search_tool.py:16
↓ 7 callersFunction_err
(msg: str)
agent/src/tools/doc_reader_tool.py:76
↓ 7 callersFunction_estimate_tokens
Return token usage for a single LLM call, real if available. Prefers the provider-reported counts attached to the response by :func:`ChatLLM.
agent/src/swarm/worker.py:130
↓ 7 callersFunction_exchange
Build a ccxt ``binance`` client bound to the configured environment.
agent/src/trading/connectors/binance/sdk.py:628
↓ 7 callersFunction_execute_data_result
Execute one fake MCP tool with a parsed FastMCP result.
agent/tests/test_mcp_client_adapter.py:308
↓ 7 callersFunction_existing_uploads
(uploads_dir: Path)
agent/tests/test_upload_api.py:27
↓ 7 callersFunction_extract_data
Return the ``data`` list from an OKX response, or ``[]`` defensively. python-okx returns a dict shaped ``{"code": "0", "data": [...]}`` on succes
agent/src/trading/connectors/okx/sdk.py:658
↓ 7 callersFunction_factors
(values)
agent/tests/test_alpha_bench_qfq.py:38
↓ 7 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/longbridge/sdk.py:762
↓ 7 callersFunction_fixture
Return the hand-built four-sector single-period attribution. Returns: The :class:`BrinsonResult` for the module-level fixture.
agent/tests/quantlib/test_attribution.py:34
↓ 7 callersFunction_float_or_none
Convert a Longbridge SDK numeric value (Decimal/int) to float for JSON serialization.
agent/src/trading/connectors/longbridge/sdk.py:770
↓ 7 callersFunction_get
Perform a read-only GET request against the Trading 212 REST API.
agent/src/trading/connectors/trading212/sdk.py:393
↓ 7 callersMethod_get_conn
Get or create the SQLite connection (WAL mode).
agent/src/session/search.py:80
↓ 7 callersFunction_guarded_probe_app
(allowed_hosts)
agent/tests/test_mcp_host_origin_guard.py:137
↓ 7 callersFunction_import_mcp_server
Import ``agent/mcp_server.py`` without executing ``main()``. Returns: The imported mcp_server module.
agent/tests/test_mcp_new_tools.py:54
↓ 7 callersMethod_instance
(self, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:314
↓ 7 callersFunction_int_or_none
Coerce an optional whole-number argument, rejecting malformed input. Args: value: Raw argument value; ``None`` and ``""`` mean "not suppl
agent/src/tools/trading_connector_tool.py:99
↓ 7 callersFunction_intent
(**overrides: Any)
agent/tests/test_mandate_enforcement.py:159
↓ 7 callersFunction_is_forex
Detect forex pairs by matching against AKShare's symbol_market_map. Issue #54 — forex symbols (EURUSD, GBPUSD, etc.) have no exchange suffix
agent/backtest/loaders/akshare_loader.py:58
↓ 7 callersFunction_is_supported
Return whether *code* is a symbol this loader handles. Covers US/HK/India/Korea/Canada equities plus Yahoo's own futures (``GC=F``) and forex
agent/backtest/loaders/yahoo_loader.py:44
↓ 7 callersFunction_job
(jid: str = "j1", next_run_at: int = 1000, schedule: str = "interval:60000")
agent/tests/test_runtime_jobstore.py:35
↓ 7 callersFunction_load
()
agent/src/channels/pairing/store.py:43
↓ 7 callersFunction_make_bracket_artifact
( *, symbol: str = "BTC/USDT:USDT", brackets: list[dict] | None = None, **overrides, )
agent/tests/test_ccxt_perpetual_loader.py:88
↓ 7 callersMethod_make_loader
(self)
agent/tests/test_tushare_loader.py:276
↓ 7 callersFunction_make_mandate
Build a minimal valid mandate with a caller-chosen ``expires_at``.
agent/tests/test_runtime_runner.py:57
↓ 7 callersFunction_market_payload
(symbol: str = "562500.SS")
agent/tests/test_agent_grounding.py:57
↓ 7 callersFunction_ms
(year: int, month: int, day: int, hour: int, minute: int)
agent/tests/test_scheduled_research_executor.py:21
↓ 7 callersFunction_normalize_frame
Normalise a Futu kline DataFrame to the standard OHLCV schema. Args: df: Raw DataFrame returned by ``request_history_kline()``. Retu
agent/backtest/loaders/futu.py:82
↓ 7 callersFunction_normalize_jid
(raw: Any)
agent/src/channels/whatsapp.py:139
↓ 7 callersFunction_normalize_symbol
Convert a user-supplied code to the project's canonical loader symbol. The data loaders key US/HK/A-share instruments by an exchange-suffixed
agent/backtest/correlation.py:57
↓ 7 callersFunction_panel
(n_rows: int = 60, n_cols: int = 8, seed: int = 0)
agent/tests/factors/test_bench_strict.py:36
↓ 7 callersFunction_parse_historical
Convert an FMP historical-price body into an ascending OHLCV frame. Args: payload: Decoded JSON body from the historical-price endpoint.
agent/backtest/loaders/fmp_loader.py:182
↓ 7 callersMethod_plan_open_order
Price an opening order without mutating portfolio state.
agent/backtest/engines/base.py:1157
↓ 7 callersFunction_qualify_a_share
Append .SH/.SZ/.BJ suffix to a bare A-share ticker.
agent/src/tools/trade_journal_parsers.py:187
↓ 7 callersMethod_record_event
(self, timestamp: pd.Timestamp, event_type: str, **details: Any)
agent/backtest/engines/crypto.py:198
↓ 7 callersFunction_records
Normalize a Futu data payload to a list of row dicts. Handles a pandas DataFrame (via ``to_dict('records')``), an existing list of dicts, a s
agent/src/trading/connectors/futu/sdk.py:797
↓ 7 callersFunction_reject_mixed_currency
Refuse a code set whose members do not settle in one currency. The shared capital pool holds a single scalar of cash and sums position values
agent/backtest/engines/composite.py:68
↓ 7 callersFunction_resolve_console
Return the shared CLI console.
agent/cli/commands/goal.py:21
↓ 7 callersFunction_risk_frame
( symbol: str = "BTC-USDT-PERP", *, timestamp: pd.Timestamp = pd.Timestamp("2026-07-26T00:00:00Z")
agent/tests/test_perpetual_risk.py:35
↓ 7 callersFunction_row
(date_str: str, open_, high, low, close, volume)
agent/tests/test_yahoo_loader.py:38
↓ 7 callersFunction_run_dcf_default
(inputs: dict | None = None)
agent/tests/quantlib/valuation/test_artifact.py:103
↓ 7 callersFunction_scripted
Return a fn() that walks through scripted outcomes (return value or raise).
agent/tests/test_loader_retry_helpers.py:58
↓ 7 callersFunction_set_emitter
Install the active progress emitter for the current thread. Args: emit: Callable that consumes a ``ProgressEvent``. Pass ``None`` to clea
agent/src/agent/progress.py:71
↓ 7 callersFunction_set_key
(monkeypatch: pytest.MonkeyPatch, key: str = "secret")
agent/tests/test_auth_precedence.py:37
↓ 7 callersFunction_setup
(monkeypatch, n_alphas=8, n_days=120)
agent/tests/test_bench_multiple_testing.py:32
↓ 7 callersFunction_split_telegram_markdown
Split raw Telegram Markdown without leaving fenced code blocks unbalanced.
agent/src/channels/telegram.py:46
↓ 7 callersFunction_to_yahoo_interval
Map a project interval string to Yahoo's chart interval string. Args: interval: Backtest interval such as ``1D`` or ``1H``. Returns:
agent/backtest/loaders/yahoo_loader.py:58
↓ 7 callersFunction_to_yfinance_interval
Map project interval strings to yfinance interval strings. Args: interval: Backtest interval such as ``1D`` or ``5m``. Returns:
agent/backtest/loaders/yfinance_loader.py:79
↓ 7 callersFunction_write_runtime_file
(tmp_path, values: dict[str, str])
agent/tests/test_longbridge_credentials.py:37
↓ 7 callersMethod_write_transaction
Open an immediate write transaction for cross-connection safety.
agent/src/goal/store.py:249
↓ 7 callersFunctionamerican_waterfall
Run a deal-by-deal (American) waterfall. Each deal is its own miniature fund: its own contributed capital, its own preferred return accrued f
agent/src/quantlib/fundmath.py:1993
↓ 7 callersFunctionbootstrap_statistic
Percentile-bootstrap confidence interval for an arbitrary statistic. Resamples ``data`` with replacement ``n_bootstrap`` times, recomputes the
agent/src/quantlib/timeseries.py:673
↓ 7 callersFunctionbuild_worker_prompt
Build the worker's system prompt with role, upstream context, and skills. Args: agent_spec: The agent's role specification. upstr
agent/src/swarm/worker.py:182
↓ 7 callersMethodcall_tool
Call a remote MCP tool.
agent/src/tools/mcp.py:151
↓ 7 callersMethodcancel
Cancel one task by its tracked process group. Args: task_id: Identifier returned by :meth:`run`. Returns: JS
agent/src/tools/background_tools.py:206
↓ 7 callersFunctioncheck_budget
Raise :class:`TimeoutError` if the monotonic clock has crossed ``deadline``. Use this between pages of a paginated fetch to fail fast instead of
agent/backtest/loaders/base.py:163
↓ 7 callersFunctioncheck_mandate
Evaluate one order intent against the mandate (fail-closed). Checks run in a fixed order and the first failure produces the verdict: exclude-
agent/src/live/enforcement.py:455
↓ 7 callersFunctioncompute_edge_density
Reduce rolling correlation matrices to an edge-density series. Edge density is the fraction of distinct asset pairs whose rolling |correlatio
agent/backtest/regime.py:24
↓ 7 callersFunctioncompute_rebalance_notes
Summarize per-date weight changes in a target position frame. Args: target_pos: Target weights (dates x codes), e.g. the frame behind
agent/backtest/rebalance_notes.py:25
↓ 7 callersFunctioncontent_hash
Generate deterministic hash for deduplication.
agent/src/memory/persistent.py:35
↓ 7 callersFunctioncredit_spread_analysis
Time-series view of an issuer's spread: level, z-score and percentile. .. warning:: ``historical_percentile`` is a **whole-sample** rank,
agent/src/quantlib/credit.py:557
↓ 7 callersFunctiondeflated_sharpe_ratio
Deflate an observed Sharpe by the number of strategies searched. Args: observed_sharpe: Best observed Sharpe, per-observation. n_
agent/src/quantlib/multipletesting.py:321
↓ 7 callersFunctiondirect_alpha
Direct Alpha -- an annualized excess return over a public index. Every flow, of every kind (contribution, distribution or valuation mark), is
agent/src/quantlib/fundmath.py:1769
↓ 7 callersFunctiondistributed_capital
Total capital returned by the fund, as a positive magnitude. Args: series: The cash flows. distribution_kinds: Kind labels counte
agent/src/quantlib/fundmath.py:631
↓ 7 callersFunctionestimate_market_model
Fit a normal-return model on an estimation window. Args: asset_returns: Asset returns over the estimation window. market_returns:
agent/src/quantlib/eventstudy.py:193
↓ 7 callersFunctionfetch_market_data_json
Fetch market data and return strict JSON.
agent/src/market_data.py:226
↓ 7 callersFunctionfind_exact
Resolve an exact command name or alias. Returns ``None`` if no match — callers handle the "unknown command" response themselves so error UX s
agent/cli/commands/slash_router.py:240
↓ 7 callersMethodfind_spec
(self, fullname, path=None, target=None)
agent/tests/test_openbb_bridge/test_registration_guard.py:25
↓ 7 callersMethodfrom_rates
Build a table from a sequence of individual quotes. Args: rates: The quotes, all against ``quote_currency``. quote_cu
agent/src/entities/cashflow.py:555
↓ 7 callersMethodget_account_snapshot
(self, config)
agent/tests/test_sdk_order_gate.py:63
↓ 7 callersMethodget_artifact
Get a single artifact by ID. Returns ``None`` if not found.
agent/src/strategy_store/sqlite_store.py:443
↓ 7 callersMethodget_bench_history
Get bench history for an artifact, newest first.
agent/src/strategy_store/store.py:119
↓ 7 callersMethodget_decay_history
Get decay snapshots for an artifact, newest first.
agent/src/strategy_store/store.py:131
↓ 7 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:435
↓ 7 callersFunctionget_shared_index
Return a process-wide singleton SessionSearchIndex. Thread-safe via double-checked locking. Used by both SessionService (indexing) and Sessio
agent/src/session/search.py:352
↓ 7 callersFunctionis_four_eyes_violation
Report whether *artifact* was both developed and approved by the same person. The four-eyes (maker-checker) principle requires the developer and
agent/src/strategy_store/models.py:189
↓ 7 callersMethodis_run_stale
Read-only check: is this ``running`` run silent past its threshold? Used by both the read paths (return ``is_stale`` to callers without
agent/src/swarm/store.py:345
↓ 7 callersFunctionload_config
Load local IBKR settings from ``~/.vibe-trading/ibkr-local.json``.
agent/src/trading/connectors/ibkr/local.py:126
↓ 7 callersFunctionload_config
Load Tiger settings from ``~/.vibe-trading/tiger.json``.
agent/src/trading/connectors/tiger/sdk.py:154
↓ 7 callersFunctionload_corpus
Convert raw JSON corpus to MemoryRecord list, IDF dict, and avg doc length. Returns: Tuple of (records, idf_dict, avg_doc_len).
agent/tests/memory/benchmarks/runner.py:250
↓ 7 callersFunctionload_queries
Convert raw JSON queries to QueryRecord list.
agent/tests/memory/benchmarks/runner.py:298
↓ 7 callersFunctionload_swarm_agent_config
Load the swarm-side AgentConfig using the M3 boot resolution order. This is the helper boot wiring (``mcp_server.py``, ``api_server.py``, CLI
agent/src/config/loader.py:204
↓ 7 callersFunctionmarket_is_open_at
Pure core: is ``market`` open at the instant ``now_ms``. Deterministic — reads no clock. 24/7 markets (``always_open``) are always open. Sess
agent/src/live/runtime/triggers.py:227
↓ 7 callersFunctionmatch_commands
Return commands that fuzzy-match ``input_text``. Only matches when the trimmed input starts with ``/``. The leading slash and any trailing ar
agent/cli/commands/slash_router.py:206
← previousnext →601–700 of 15,301, ranked by callers