MCPcopy Create free account

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

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

↓ 12 callersFunctionresidual_value
Unrealised NAV of the fund at its most recent mark. Only the latest valuation record counts. Earlier marks are stale by definition, and summi
agent/src/quantlib/fundmath.py:661
↓ 12 callersFunctionsafe_run_dir
Validate a run directory used by generated-code tools. Args: p: User/LLM-supplied run directory. `~` expansion is supported. Returns
agent/src/tools/path_utils.py:344
↓ 12 callersMethodstream_chat
(self, messages, tools=None, on_text_chunk=None, timeout=None)
agent/tests/test_swarm_m4_e2e.py:137
↓ 12 callersFunctionthrottled_get
GET ``url`` after waiting out the per-host minimum interval. Args: url: Fully-qualified request URL. host_key: Throttle/session b
agent/backtest/loaders/_http.py:141
↓ 12 callersFunctionthrottled_get_json
Throttled GET that decodes the response body as JSON. Same contract as :func:`throttled_get`, plus ``response.raise_for_status()`` and ``resp
agent/backtest/loaders/_http.py:176
↓ 11 callersFunction_assert_strict_json
(payload: dict)
agent/tests/test_risk_xray.py:27
↓ 11 callersFunction_base_manifest_kwargs
()
agent/tests/test_governance.py:79
↓ 11 callersFunction_bold_row
Bold every cell in one worksheet row (typically a header row).
agent/src/quantlib/valuation/artifact.py:1011
↓ 11 callersFunction_build_dcf_artifact
(inputs: dict | None = None, *, generated_at: datetime = FIXED_TIME)
agent/tests/quantlib/valuation/test_artifact.py:112
↓ 11 callersFunction_client
(fake_llm: _FakeStreamingLLM)
agent/tests/test_chat_llm_streaming.py:59
↓ 11 callersFunction_create_memory_file
Helper to create a memory file with extended frontmatter.
agent/tests/test_memory_gc.py:29
↓ 11 callersFunction_df
(records: list[TradeRecord])
agent/tests/test_trade_journal.py:56
↓ 11 callersFunction_fake_run_bench
Build a ``run_bench`` double returning canned rows for the ``only`` ids.
agent/tests/factors/test_alpha_compare.py:137
↓ 11 callersFunction_fetch
Run the tool against a mocked companyfacts payload and return its periods.
agent/tests/test_sec_period_frames.py:45
↓ 11 callersMethod_get_request_payload
(self, *args: object, **kwargs: object)
agent/tests/test_llm.py:394
↓ 11 callersFunction_guard
(adapter, **kwargs)
agent/tests/test_mandate_enforcement.py:269
↓ 11 callersFunction_host
Return the host ``api_server`` module for shared deps and monkeypatched symbols.
agent/src/api/live_routes.py:329
↓ 11 callersFunction_host_get_session_service
()
agent/src/api/sessions_routes.py:309
↓ 11 callersMethod_instance
(self, model: str = "kimi-k2-0905-preview")
agent/tests/test_kimi_reasoning_content.py:478
↓ 11 callersFunction_is_interactive_invocation
Decide whether this invocation should drive the interactive loop. Interactive entry requires: * Both stdin and stdout are TTYs (no piped / r
agent/cli/main.py:220
↓ 11 callersFunction_make_kline_df
Build a minimal Futu kline DataFrame mirroring request_history_kline output.
agent/tests/test_futu_loader.py:61
↓ 11 callersMethod_make_loader
(self)
agent/tests/test_tushare_loader.py:154
↓ 11 callersFunction_oracle_resolved_market
A market the oracle finalized, with the payout price pinned on "No".
agent/tests/test_prediction_market_tool.py:107
↓ 11 callersMethod_place
(self, fake: FakeMT5, **kwargs: Any)
agent/tests/test_mt5_connector.py:570
↓ 11 callersFunction_read
Return a README's text. Args: name: File name relative to the repository root. Returns: The file contents.
agent/tests/test_readme_counts.py:72
↓ 11 callersFunction_rec
(dt: str, symbol: str, side: str, qty: float, price: float, fee: float = 0.0)
agent/tests/test_trade_journal.py:42
↓ 11 callersFunction_register
(reg, **kwargs)
agent/tests/test_sdm_governance_wiring.py:32
↓ 11 callersFunction_require
Import an optional backend module or raise an actionable ImportError. Args: module_path: Dotted module to import, e.g. ``"statsmodels.tsa
agent/src/quantlib/timeseries.py:67
↓ 11 callersFunction_require_series
Reject anything that is not a ``CashFlowSeries``. Args: series: Candidate value supplied by the caller. name: Parameter name to q
agent/src/quantlib/fundmath.py:173
↓ 11 callersFunction_resolve_provider_config
Resolve base_url, api_key, model from the configured LLM provider. Provider credentials use dynamically-named env vars from :func:`provider_e
agent/src/tools/ocr/llm_vision_ocr.py:109
↓ 11 callersFunction_row
(**overrides: Any)
agent/tests/factors/test_bench_strict.py:123
↓ 11 callersFunction_seed
Seed three hypotheses spanning multiple statuses; return their ids.
agent/tests/test_cli_hypothesis.py:23
↓ 11 callersFunction_tokenize
Split text into searchable tokens (ASCII >=3 chars + non-Latin chars).
agent/src/memory/persistent.py:145
↓ 11 callersMethodallow
Record a hit for ``key`` and report whether it stays within budget.
agent/src/api/system_routes.py:92
↓ 11 callersMethodappend_event
Append an event to events.jsonl. Args: run_id: Run identifier. event: Event to append. Raises: F
agent/src/swarm/store.py:246
↓ 11 callersFunctionapply_adv_capacity
Cap each name's trade at a fraction of its average daily traded value. Args: target_weights: Desired weights by symbol, shorts negative.
agent/backtest/factor_costs.py:160
↓ 11 callersFunctionbuild_swarm_registry
Build a per-worker registry that merges local + remote MCP tools. Swarm workers receive a strict whitelist (``agent_spec.tools``). This build
agent/src/tools/__init__.py:267
↓ 11 callersFunctioncode_currency
Return the currency a symbol settles in. Args: code: Ticker / symbol string. Returns: A currency code such as ``"CNY"``. A f
agent/backtest/engines/_market_hooks.py:89
↓ 11 callersMethodconnect
()
agent/src/channels/mochat.py:416
↓ 11 callersMethoddisconnect
()
frontend/src/tests/setup.ts:13
↓ 11 callersFunctionexpiry_payoff
Calculate an expiry payoff curve and analytic risk summary. Premiums are pinned at entry. An explicit per-share premium wins over the Black-S
agent/backtest/options_payoff.py:274
↓ 11 callersFunctionfit_markov_regime
Fit a Markov regime-switching model and label the current regime. A GARCH model says how volatile tomorrow is. This says *which state the mar
agent/src/quantlib/timeseries.py:387
↓ 11 callersMethodget_artifact
Get a single artifact by ID. Returns None if not found.
agent/src/strategy_store/store.py:84
↓ 11 callersFunctionimplied_volatility
Invert Black-Scholes for volatility, Newton first then bisection. Seeds with the Brenner-Subrahmanyam at-the-money approximation ``sigma_0 =
agent/src/quantlib/options.py:298
↓ 11 callersMethodinject
Return ``user_message`` prefixed with a formatted context block. Args: request: The parsed ``openbb_ai.models.QueryRequest`` inst
agent/src/openbb_bridge/context_injector.py:81
↓ 11 callersFunctionks_pme
Kaplan-Schoar public market equivalent. Every contribution and distribution is grown to a single common date (``as_of``) using the *public in
agent/src/quantlib/fundmath.py:1468
↓ 11 callersFunctionload_constraints
Build the constraint list from ``config['constraints']`` (empty if unset).
agent/backtest/constraints.py:170
↓ 11 callersFunctionmonte_carlo_test
Shuffle trade PnL order to test path significance. Null hypothesis: the observed Sharpe / max-drawdown is no better than a random ordering of
agent/backtest/validation.py:29
↓ 11 callersFunctionnormalise_option_type
Fold an option-type string to ``"call"`` or ``"put"``. Public because callers that *store* an option type must fold it with the same rule the
agent/src/quantlib/options.py:65
↓ 11 callersFunctionparse_file
End-to-end: load file, detect format, parse. Args: path: File path. Returns: (format_name, records). Falls back to generic i
agent/src/tools/trade_journal_parsers.py:554
↓ 11 callersFunctionreconcile
Reconcile broker truth against the durable last-known state. Pulls the broker's positions, balance, and open orders through the injected READ
agent/src/live/runtime/reconcile.py:275
↓ 11 callersFunctionresolve_loader
Return the first *available* loader instance for *market*. Walks the fallback chain and returns the first loader whose ``is_available()`` ret
agent/backtest/loaders/registry.py:158
↓ 11 callersFunctionretry_with_budget
Call ``fn`` with a bounded retry budget on declared transient errors. Between attempts sleeps ``min(backoff[attempt], remaining_budget)`` so a
agent/backtest/loaders/base.py:184
↓ 11 callersFunctionrun_shadow_backtest
Drive a multi-market backtest from a ShadowProfile. Markets are backtested per settlement currency: the composite engine refuses a mixed-curr
agent/src/shadow_account/backtester.py:163
↓ 11 callersFunctionsafe_user_path
Validate a user-supplied broker/export file path. Args: p: User-supplied path. `~` expansion is supported. Returns: Absolute
agent/src/tools/path_utils.py:312
↓ 11 callersFunctionscan_today_signals
Return a list of {symbol, market, rule_id, reason} matches. Args: profile: ShadowProfile holding the rules. target_date: ISO "YYY
agent/src/shadow_account/scanner.py:22
↓ 11 callersMethodsearch
Full-text search with FTS5 MATCH. Args: query: User search query. max_results: Maximum results to return. Re
agent/src/memory/search_index.py:252
↓ 11 callersFunctionsplit_message
Split content into chunks within max_len, preferring line breaks. Args: content: The text content to split. max_len: Maximum leng
agent/src/channels/utils.py:53
↓ 11 callersMethodsubmit
(prompt: string)
frontend/src/components/chat/Composer.tsx:50
↓ 10 callersFunction_args
(**kw: Any)
agent/tests/factors/test_alpha_compare.py:158
↓ 10 callersFunction_brief
Run read-mode against a single mocked response and return the envelope. Args: paper_ids: Ids to request. response: Mocked ``throt
agent/tests/test_research_papers_tool.py:184
↓ 10 callersFunction_build_token_store
Build a persistent OAuth token store rooted at ``cache_dir``. The directory is created (with parents) and locked down to ``0700`` so only the
agent/src/tools/mcp.py:383
↓ 10 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:618
↓ 10 callersMethod_calc_weights
SLSQP weights for the penalized objective; updates turnover state.
agent/backtest/optimizers/turnover_aware.py:105
↓ 10 callersFunction_create_memory_file
Helper to create a memory file with extended frontmatter.
agent/tests/test_memory_lifecycle.py:34
↓ 10 callersFunction_dz_chain
Build the DZ BANK original / RESTATEMENT / NEW HOLDINGS chain.
agent/tests/test_institutional_holdings_tool.py:257
↓ 10 callersFunction_fake_subprocess
Install a fake ``subprocess.run`` and return (calls, original_run). The pip call is identified by the ``-m pip`` marker, the verification call
agent/tests/test_cli_update.py:40
↓ 10 callersFunction_import_mcp_server
Import agent/mcp_server.py without executing main(). Returns: The imported mcp_server module. Raises: ImportError: If the mo
agent/tests/test_mcp_regression.py:89
↓ 10 callersFunction_iso
(dt: datetime)
agent/tests/test_swarm_status_hydration.py:41
↓ 10 callersFunction_job
(jid: str, next_run_at: int, schedule: str = "interval:1000")
agent/tests/test_runtime_scheduler.py:29
↓ 10 callersFunction_make_factory
(state: dict[str, Any])
agent/tests/test_mcp_client_adapter.py:71
↓ 10 callersFunction_mcp_tools
Return the registered MCP tools keyed by name (public async API).
agent/tests/test_mcp_new_tools.py:68
↓ 10 callersFunction_metrics
(ic_mean: float, ic_std: float, ir: float, pos: float = 0.5, n: int = 200)
agent/tests/factors/test_alpha_compare.py:154
↓ 10 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/ibkr/local.py:595
↓ 10 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/loop.py:1207
↓ 10 callersFunction_rolling_correlation_matrix
Compute correlation matrix for multiple price series. Args: price_series: Mapping of asset code -> DataFrame with a ``close`` column.
agent/backtest/correlation.py:117
↓ 10 callersFunction_safe_attr
(obj: Any, name: str, default: Any = None)
agent/src/channels/whatsapp.py:118
↓ 10 callersMethod_safe_send_to
Send a raw frame to one connection, cleaning up on ConnectionClosed.
agent/src/channels/websocket.py:862
↓ 10 callersFunction_sanitize_skill_name
Sanitize skill name to a safe directory slug.
agent/src/tools/skill_writer_tool.py:39
↓ 10 callersFunction_score_text
Score one text snippet in [-1, 1]. Returns a dict with ``score`` (float), ``positive`` (int), and ``negative`` (int).
agent/src/tools/sentiment_tool.py:58
↓ 10 callersFunction_to_yfinance_symbol
Convert project symbols into yfinance symbols. Args: code: Project symbol, for example ``AAPL.US``, ``700.HK``, or ``TD.TO``.
agent/backtest/loaders/yfinance_loader.py:51
↓ 10 callersFunction_us_engine
(**overrides)
agent/tests/test_global_equity_engine.py:28
↓ 10 callersFunction_wire
(monkeypatch: pytest.MonkeyPatch, id_to_zoo: dict[str, str], fake_bench: Any)
agent/tests/factors/test_alpha_compare.py:167
↓ 10 callersFunction_write_mandate
(live_runtime: Path, mandate: Mandate)
agent/tests/test_mandate_enforcement.py:124
↓ 10 callersMethod_write_run_manifest
Record what methodology produced this run, beside its trace. Answers "under what system prompt, which skills, and which tool set was
agent/src/agent/loop.py:567
↓ 10 callersFunctionaltman_z_score
Score a firm's distress risk with one of the three Altman variants. Every argument is keyword-only, deliberately. Six interchangeable float p
agent/src/quantlib/credit.py:120
↓ 10 callersFunctionborrow_cost
Cost of borrowing the short leg for one period. Only negative weights are charged: a long position borrows nothing. The charge is the absolut
agent/backtest/factor_costs.py:231
↓ 10 callersFunctiondue_now
Pure core: is ``trigger`` due at ``now_ms``. Deterministic — reads no clock; all inputs are arguments. * INTERVAL: due when ``(now_ms - epoc
agent/src/live/runtime/triggers.py:259
↓ 10 callersFunctionemit_progress
Publish a structured progress event from a tool. Silently no-ops when called outside an active tool context (e.g. during unit tests that invo
agent/src/agent/progress.py:89
↓ 10 callersMethodevaluate_decay
Evaluate a single set of metrics and return the decay signal. Uses the WORST signal across all provided metrics. For factors: uses ic
agent/src/strategy_store/decay.py:88
↓ 10 callersFunctionfind_peaks_valleys
Detect peaks and valleys in a price series. Args: close: Closing price series. window: Half-window size; effective window is 2*wi
agent/src/tools/pattern_tool.py:24
↓ 10 callersFunctiongetChartTheme
()
frontend/src/lib/chart-theme.ts:59
↓ 10 callersMethodget_goal
Return a goal by id.
agent/src/goal/store.py:455
↓ 10 callersMethodlist
(self, *, zoo: str)
agent/tests/factors/test_bench_strict.py:440
↓ 10 callersFunctionlist_profiles
Return built-in trading connector profiles.
agent/src/trading/profiles.py:49
↓ 10 callersMethodlist_tools
(self)
agent/tests/test_swarm_m4_e2e.py:60
↓ 10 callersMethodload
(self)
agent/tests/test_runtime_runner.py:513
↓ 10 callersFunctionload_qveris_config
Load QVeris config with environment overrides applied.
agent/src/tools/qveris_tool.py:74
↓ 10 callersFunctionnelson_siegel
Nelson-Siegel zero-rate curve. Args: tau: Maturity or maturities in years. beta0: Level factor; the asymptotic long rate.
agent/src/quantlib/fixedincome.py:549
↓ 10 callersFunctionnormalize_required_text
Strip and validate a required text field. Args: value: User supplied text. field_name: Field name for the error message. Ret
agent/src/goal/policy.py:17
← previousnext →301–400 of 15,301, ranked by callers