MCPcopy Create free account

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

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

↓ 11 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
↓ 11 callersFunction_seed
Seed three hypotheses spanning multiple statuses; return their ids.
agent/tests/test_cli_hypothesis.py:23
↓ 11 callersFunction_transactions_export
(*rows: dict[str, str])
agent/tests/test_extraetf_reader.py:141
↓ 11 callersFunction_unwrap
Return the data payload from a Futu ``(ret_code, data[, page_key])`` tuple. Futu read calls return ``(ret_code, data)``; ``request_history_kline`
agent/src/trading/connectors/futu/sdk.py:1136
↓ 11 callersFunction_wire
(monkeypatch: pytest.MonkeyPatch, id_to_zoo: dict[str, str], fake_bench: Any)
agent/tests/factors/test_alpha_compare.py:167
↓ 11 callersMethod_write_artifacts
Write CSV artifacts compatible with daily_portfolio format.
agent/backtest/engines/base.py:2336
↓ 11 callersFunction_yahoo_quotes
()
agent/tests/test_symbol_search_tool.py:60
↓ 11 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:129
↓ 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 callersFunctioncalendarise_metric
Align one company's flow metric onto a comparable twelve-month footing. See the module docstring, section 2, for why this step exists and why
agent/src/quantlib/valuation/comps.py:231
↓ 11 callersFunctioncommand
(source: str)
agent/tests/test_background_host_lifecycle.py:20
↓ 11 callersMethodcreate
Create and persist a new hypothesis. Args: title: Short hypothesis title. thesis: Research thesis or rationale.
agent/src/hypotheses/registry.py:158
↓ 11 callersMethodcreate_session
(self, **options)
agent/tests/test_copilot_provider.py:257
↓ 11 callersMethoddisconnect
()
frontend/src/tests/setup.ts:13
↓ 11 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:311
↓ 11 callersMethodexecute
Start a research goal. Args: **kwargs: Tool arguments from the model. Returns: JSON envelope with the goal s
agent/src/tools/goal_tool.py:190
↓ 11 callersMethodexecute
Run the pre-trade gate, then ALLOW / DENY / PAUSE the order. Args: **kwargs: Order-tool arguments from the agent loop. R
agent/src/live/order_guard.py:134
↓ 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 callersMethodfinish
(self, result: dict[str, Any], elapsed: float | None = None)
agent/cli/ui/rail.py:420
↓ 11 callersMethodfinish_iteration
Return whether the run exhausted its consecutive no-progress budget.
agent/src/agent/tool_progress.py:140
↓ 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:485
↓ 11 callersFunctionfit_yield_curve
Fit a Nelson-Siegel or Svensson curve to observed zero rates. Beta coefficients are solved via OLS; decay parameters are searched over a geom
agent/src/quantlib/fixedincome.py:733
↓ 11 callersMethodget_margin_rate
Look up exchange margin rate for a product. Args: symbol: Futures symbol. Returns: Margin rate (e.g. 0.10 fo
agent/backtest/engines/china_futures.py:324
↓ 11 callersFunctionget_shared_index
Return a process-wide singleton MemorySearchIndex. Thread-safe via double-checked locking. Shared by memory indexing and search callers so th
agent/src/memory/search_index.py:590
↓ 11 callersFunctiongroup_purged_kfold_splits
Purged and embargoed K-fold cross-validation for panel and multi-asset datasets. Groups all observations sharing a time group identifier (e.g. da
agent/src/quantlib/crossvalidation.py:292
↓ 11 callersFunctionhandler
(request: httpx.Request)
agent/tests/test_llm.py:519
↓ 11 callersFunctionhistorical_volatility
Calculate annualised historical volatility from a close price series. Args: close: Close price Series. window: Rolling window in
agent/backtest/engines/options_portfolio.py:39
↓ 11 callersMethodindex_message
Index a single message. Args: session_id: Session ID. role: Message role (user/assistant/tool). content:
agent/src/session/search.py:277
↓ 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 callersMethodinterval
Build an interval trigger firing every ``interval_ms`` ms. Args: interval_ms: Cadence in milliseconds; must be strictly positive.
agent/src/live/runtime/triggers.py:176
↓ 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 callersMethodlist_tools
(self)
agent/tests/test_swarm_m4_e2e.py:60
↓ 11 callersMethodload
Read persisted settings, creating an empty file on first use. Returns: The validated settings currently on disk. Raises:
agent/src/portfolio/config.py:264
↓ 11 callersMethodload_all
Return readable records and the paths that could not be read. A corrupt or unknown-version file is reported, never overwritten and ne
agent/src/tools/background_store.py:116
↓ 11 callersFunctionload_channel_class
Import *module_name* and return the first BaseChannel subclass found.
agent/src/channels/registry.py:161
↓ 11 callersMethodread_events
Read the event log with optional offset for SSE incremental streaming. Args: run_id: Run identifier. after_index: Ski
agent/src/swarm/store.py:268
↓ 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 callersMethodrecord_bench
Record a bench result. Returns the result ID.
agent/src/strategy_store/store.py:113
↓ 11 callersMethodrecovery_action
Decide the next safe read-only recovery step for a rejected draft (#1081). Returns: ``search_symbol`` when identity is unresolved
agent/src/agent/grounding/release.py:312
↓ 11 callersFunctionresolve_safe_path
Resolve a file path under run_dir with fallback to allowed roots. Args: file_path: Relative or absolute path (supports tilde expansion).
agent/src/tools/path_utils.py:214
↓ 11 callersFunctionrun_validation
Run configured validation checks. Reads from config["validation"]: - monte_carlo: {n_simulations, seed} - bootstrap: {n_bootstrap, co
agent/backtest/validation.py:342
↓ 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:351
↓ 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:26
↓ 11 callersFunctionscenario
()
agent/tests/test_session_service_lifecycle.py:62
↓ 11 callersFunctionscenario
()
agent/tests/scheduling/test_kernel.py:38
↓ 11 callersFunctionscenario
()
agent/tests/scheduling/test_internal_dispatch.py:111
↓ 11 callersMethodsend
(self, _prompt)
agent/tests/test_copilot_provider.py:241
↓ 11 callersMethodsend_message
Send a message to a session and trigger execution. Args: session_id: Session ID. content: Message content.
agent/src/session/service.py:342
↓ 11 callersMethodsnapshot
Frozen memory index for system prompt injection.
agent/src/memory/persistent.py:226
↓ 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:64
↓ 11 callersMethodstream
(self, *args: object, **kwargs: object)
agent/tests/test_openai_codex.py:387
↓ 11 callersMethodupdate_run
Atomically update run state. Args: run: Updated SwarmRun instance. Raises: FileNotFoundError: If the run dir
agent/src/swarm/store.py:209
↓ 11 callersFunctionverify_chain
Walk an on-disk ledger end to end, returning where (if anywhere) it broke. Args: path: Ledger JSONL file path. A missing file verifies as
agent/src/governance/ledger.py:310
↓ 11 callersFunctionwacc
Build the weighted average cost of capital. ``Re`` is CAPM plus two optional additive premiums; ``Rd`` is the pretax cost of debt shielded by
agent/src/quantlib/valuation/dcf.py:372
↓ 11 callersFunctionwaterfall_split
Split a distributable amount through the four European waterfall tiers. The tiers, paid strictly in order and only from what remains: 1. **R
agent/src/quantlib/fundmath.py:1124
↓ 11 callersMethodwrite
(self, entry: dict)
agent/tests/test_audit_redact.py:191
↓ 10 callersFunction_analyze
(tmp_path, monkeypatch, rows, mode="full", filter_expr="", excel=False)
agent/tests/test_trade_journal_invalid_quantity.py:24
↓ 10 callersFunction_answer
(prose: str, *lines: str)
agent/tests/test_grounding_unit_and_scanner_gaps.py:35
↓ 10 callersFunction_apply_filter
Filter DataFrame by a simple expression. Supports: - "YYYY-MM to YYYY-MM" or "YYYY-MM-DD to YYYY-MM-DD" (date range) - "symbol=XX
agent/src/tools/trade_journal_tool.py:597
↓ 10 callersFunction_bar
(close: float = 100.0, pre_close: float | None = None)
agent/tests/test_india_equity_engine.py:27
↓ 10 callersFunction_body
Parse a JSON tool response.
agent/tests/test_file_tool_sandbox_security.py:16
↓ 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:510
↓ 10 callersFunction_by_code
(report: EvaluationReport)
agent/tests/harness_eval/test_runner.py:14
↓ 10 callersMethod_calc_weights
SLSQP weights for the penalized objective; updates turnover state.
agent/backtest/optimizers/turnover_aware.py:160
↓ 10 callersFunction_channel
(*, pdf_password: str = "")
agent/tests/test_email_rich_delivery.py:17
↓ 10 callersFunction_create_memory_file
Helper to create a memory file with extended frontmatter.
agent/tests/test_memory_lifecycle.py:35
↓ 10 callersFunction_dz_chain
Build the DZ BANK original / RESTATEMENT / NEW HOLDINGS chain.
agent/tests/test_institutional_holdings_tool.py:257
↓ 10 callersFunction_echo_command
(text: str)
agent/tests/test_background_scope_isolation.py:22
↓ 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_first
(row: Mapping[str, Any], names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/futu/sdk.py:1192
↓ 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_inject_mock_transport
Route the probe's fresh ``httpx.AsyncClient`` through a MockTransport. The probe owns its client, so the only seam is the client class itself. Th
agent/tests/test_qq_connection_test.py:57
↓ 10 callersFunction_install_schema_stub
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_fundamentals_pit.py:12
↓ 10 callersFunction_is_tool_success
Return True if the tool result does not look like an error response.
agent/src/agent/tool_results.py:41
↓ 10 callersFunction_job
(jid: str, next_run_at: int, schedule: str = "interval:1000")
agent/tests/test_runtime_scheduler.py:29
↓ 10 callersFunction_loop
An AgentLoop shell built without running __init__ (we only need the helper).
agent/tests/test_run_manifest_wiring.py:24
↓ 10 callersFunction_make_bar
( close: float = 5000.0, pre_close: float | None = None, pct_chg: float | None = None, settle:
agent/tests/test_china_futures_engine.py:36
↓ 10 callersFunction_make_bar
(close: float = 1.1050, open_: float | None = None)
agent/tests/test_forex_engine.py:36
↓ 10 callersFunction_make_channel
Build a Discord channel that has NOT been started (no discord.py client).
agent/tests/test_discord_connection_test.py:42
↓ 10 callersFunction_make_run
(tmp_path: Path, header: str, rows: list[str] | None = None)
agent/tests/api/test_positions_sectors.py:57
↓ 10 callersFunction_mcp_tools
Return the registered MCP tools keyed by name (public async API).
agent/tests/test_mcp_new_tools.py:74
↓ 10 callersFunction_metric_kind_for_path
Map an evidence JSON path to an analysis metric kind. A metadata count leaf (:func:`_is_metadata_count_leaf`) has no kind.
agent/src/agent/grounding/evidence.py:593
↓ 10 callersMethod_metric_pool
Metric values from completed analysis results and metric-named leaves.
agent/src/agent/grounding/policies.py:1584
↓ 10 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/ibkr/local.py:691
↓ 10 callersFunction_parse
(raw: bytes)
agent/tests/test_email_authentication_results.py:29
↓ 10 callersFunction_patch_sec
( monkeypatch: pytest.MonkeyPatch, facts_by_symbol: dict[str, dict[str, object]], )
agent/tests/test_fundamentals_pit.py:52
↓ 10 callersFunction_rec
( dt: str, symbol: str, side: str, qty: float, price: float, fee: float = 0.0 )
agent/tests/test_trade_journal_currency_pools.py:18
↓ 10 callersFunction_run
(coro: Any)
agent/tests/test_qq_connection_test.py:84
↓ 10 callersFunction_run
( tmp_path: Path, llm: _ScriptedLLM, *, max_iterations: int, session_id: str = "" )
agent/tests/test_grounding_release.py:654
↓ 10 callersFunction_run_cn_a
(orders: list[dict], close: float, prev_close: float = 10.0, positions: list[dict] | None = None
agent/tests/test_paper_trade_limits.py:59
↓ 10 callersFunction_run_masked
( engine: _MaskEngine, weights: list[float], *, dates: pd.DatetimeIndex | None = None, )
agent/tests/test_rebalance_mask.py:42
↓ 10 callersFunction_run_to_completion
( manager: BackgroundManager, command: str, *, timeout: float = 15.0 )
agent/tests/test_background_scope_isolation.py:26
↓ 10 callersFunction_safe_attr
(obj: Any, name: str, default: Any = None)
agent/src/channels/whatsapp.py:118
↓ 10 callersMethod_safe_price
Get close price with fallback. Uses array fast-path when available. Valuation call sites pass ``_val_arr`` (unbounded ffill) so a halted
agent/backtest/engines/base.py:2455
↓ 10 callersMethod_safe_send_to
Send a raw frame to one connection, cleaning up on ConnectionClosed.
agent/src/channels/websocket.py:873
↓ 10 callersFunction_sanitize_skill_name
Sanitize skill name to a safe directory slug.
agent/src/tools/skill_writer_tool.py:44
↓ 10 callersMethod_scan_entries
Scan all .md files (except MEMORY.md) and parse frontmatter.
agent/src/memory/persistent.py:230
↓ 10 callersFunction_seed_system_job
Insert a system row the way ``ensure_system_jobs`` would.
agent/tests/scheduling/test_system_job_protection.py:89
↓ 10 callersFunction_set_env
(monkeypatch: pytest.MonkeyPatch, **vars: str)
agent/tests/scheduling/test_memory_consolidation_job.py:51
← previousnext →701–800 of 26,887, ranked by callers