MCPcopy Create free account

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

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

↓ 6 callersFunction_provider
(name="minimax")
agent/tests/test_minimax_flash.py:22
↓ 6 callersFunction_query_body
()
agent/tests/test_openbb_bridge/test_routes.py:26
↓ 6 callersFunction_read
(ledger: GroundingLedger, path: Path, call_id: str, *, limit: int | None = None)
agent/tests/test_grounding_backtest_outputs.py:149
↓ 6 callersFunction_read_ledger
()
agent/tests/test_audit_redact.py:27
↓ 6 callersFunction_read_settings_env_values
Read settings without creating a dotenv file. Prefer the canonical user config, then the legacy package-local config. If neither exists, use
agent/src/api/settings_routes.py:249
↓ 6 callersFunction_read_via_tap
GET ``target`` through the TAP proxy and return the parsed JSON body. Reads are GET, which TAP auto-approves (no human step): this path is for
agent/src/trading/connectors/alpaca/sdk.py:212
↓ 6 callersMethod_readonly_replay_allowed
Whether an exact readonly result may be restored after compaction. This is intentionally narrower than ``is_readonly``: deterministic
agent/src/agent/tool_lifecycle.py:715
↓ 6 callersMethod_record_fill
Append execution evidence without making it account state.
agent/backtest/engines/base.py:2265
↓ 6 callersFunction_recorded_validations
(tmp_path: Path)
agent/tests/test_grounding_registry.py:96
↓ 6 callersFunction_recording_stub
Build a run_backtest_fn stub keyed by the run_dir's pool name.
agent/tests/test_shadow_account.py:507
↓ 6 callersFunction_render
(renderable)
agent/tests/test_cli_ui_redesign.py:10
↓ 6 callersFunction_request
(from_date: str, to_date: str, orders: list[dict] | None, market: str = "cn_a")
agent/tests/test_paper_trade_validation.py:68
↓ 6 callersFunction_request
(cash: float, positions: list[dict], orders: list[dict], day: str = _DAY)
agent/tests/test_paper_trade_golden_cn_a.py:84
↓ 6 callersFunction_require_finite
(name: str, value: float, *, positive: bool = False)
agent/backtest/perpetual_risk.py:29
↓ 6 callersFunction_require_finite
Check a value is a finite number, refusing NaN and infinity. Args: value: The candidate value. name: Field name for the error mes
agent/src/quantlib/valuation/dcf.py:254
↓ 6 callersFunction_resolve_summary
Return report.md content if it exists, otherwise fall back to text.
agent/src/swarm/worker.py:1472
↓ 6 callersFunction_result
(**changes)
agent/tests/test_parallel_search.py:17
↓ 6 callersFunction_row
(dt, side="buy", symbol="AAPL")
agent/tests/test_trade_journal_invalid_datetime.py:25
↓ 6 callersFunction_rt
(symbol: str, pnl: float, hold_days: float)
agent/tests/test_shadow_attribution.py:45
↓ 6 callersFunction_run
(tmp_path: Path, signals, initial_cash=100_000, options_config=None)
agent/tests/test_options_margin.py:55
↓ 6 callersFunction_run_serve
Invoke serve_main with uvicorn stubbed; return the host it bound to. The frontend mount / static-file branches are short-circuited because uv
agent/tests/test_serve_bind.py:47
↓ 6 callersFunction_safe
Return ``obj.attr`` (attribute) or ``obj[attr]`` (mapping) if present. Args: obj: Object or mapping to read from. attr: Attribute
agent/src/openbb_bridge/context_injector.py:43
↓ 6 callersFunction_safe_call
Call ``obj.name(*args, **kwargs)`` if it exists, retrying without kwargs. python-okx signatures vary across versions (some read methods accept ex
agent/src/trading/connectors/okx/sdk.py:793
↓ 6 callersFunction_sample_data
Return (ret, pos, dates) for a small long-only universe.
agent/tests/test_turnover_aware_optimizer.py:12
↓ 6 callersFunction_sanitize_body
Strip C0/C1 control bytes from `content` while keeping ``\\n`` and ``\\t``.
agent/src/memory/persistent.py:159
↓ 6 callersMethod_sanitize_fts_query
Sanitize a user query for FTS5 MATCH syntax. - Separates Unicode words and East Asian character runs; the latter become adjacent-to
agent/src/session/search.py:320
↓ 6 callersMethod_save_state
(self)
agent/src/channels/weixin.py:223
↓ 6 callersFunction_sec_get
GET ``url`` through the shared SEC throttle bucket. Args: url: Fully-qualified SEC endpoint. params: Optional query parameters.
agent/src/tools/institutional_holdings_tool.py:237
↓ 6 callersFunction_sell
(symbol=_SYM, qty=100, limit=None)
agent/tests/test_paper_trade_rejections.py:101
↓ 6 callersFunction_shapes
(text: str)
agent/tests/test_grounding_figures_contract.py:260
↓ 6 callersMethod_size
(self, symbol: str, lots: float)
agent/tests/test_mt5_connector.py:491
↓ 6 callersFunction_sized
(engine: GlobalEquityEngine, symbol: str, raw: float)
agent/tests/test_global_equity_hk_lot_sizes.py:32
↓ 6 callersFunction_spec
()
agent/tests/test_swarm_grounding.py:236
↓ 6 callersMethod_stop_typing_keepalive
(self, room_id: str, *, clear_typing: bool)
agent/src/channels/matrix.py:724
↓ 6 callersFunction_store
()
agent/tests/test_strategy_discovery_refresh.py:90
↓ 6 callersFunction_str_field
Return the first non-empty str value found for *keys*, stripped.
agent/src/channels/mochat.py:79
↓ 6 callersFunction_stub_backtest_result
(profile: ShadowProfile)
agent/tests/test_shadow_account.py:874
↓ 6 callersFunction_stub_loader
(monkeypatch, source, *, fetch)
agent/tests/test_loader_health.py:236
↓ 6 callersFunction_summary
(ic_count: int)
agent/tests/test_factor_api.py:44
↓ 6 callersFunction_sync_provider_env
Map provider-specific env vars to OPENAI_* for ChatOpenAI. Each entry: provider_name -> (api_key_env, base_url_env). Base URLs come from .env
agent/src/providers/llm.py:1339
↓ 6 callersFunction_to_float
Coerce a possibly-string numeric field to float. Args: value: Raw value from a payload. Returns: The float, or ``None`` when
agent/src/tools/prediction_market_tool.py:284
↓ 6 callersFunction_to_float
Coerce a Shoonya API field to float, tolerating empty strings. Shoonya frequently returns ``""`` for unset numeric fields (e.g. ``netavgprc``,
agent/src/trading/connectors/shoonya/sdk.py:635
↓ 6 callersFunction_to_query_base
``EUR/USD`` / ``EURUSD.FX`` → ``EURUSD`` (upper, separators stripped).
agent/backtest/loaders/tickerall_loader.py:136
↓ 6 callersFunction_tool_arguments
Confine a worker tool call's ``run_dir`` to the agent's own workspace. Returns the arguments to execute with, plus a refusal reason when the
agent/src/swarm/worker.py:1282
↓ 6 callersFunction_trade_context
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:710
↓ 6 callersFunction_trading_client
(cfg: AlpacaConfig)
agent/src/trading/connectors/alpaca/sdk.py:828
↓ 6 callersFunction_trading_common_args
Build shared optional trading connector arguments.
agent/mcp_server.py:1629
↓ 6 callersFunction_transient_error
Build a ProviderStreamError mimicking a transient mid-stream reset.
agent/tests/test_stream_retry_escalation.py:86
↓ 6 callersFunction_utc_now
Return an audit-friendly UTC timestamp.
agent/src/agent/grounding/identity.py:138
↓ 6 callersFunction_v12_result
(**overrides)
agent/tests/test_paper_trade_v12_schema.py:120
↓ 6 callersFunction_valid_body
(**kw: Any)
agent/tests/test_alpha_compare_api.py:59
↓ 6 callersFunction_validate_bracket_artifact
Validate a caller-supplied maintenance-bracket artifact. ``binanceusdm.fetch_leverage_tiers()`` routes to Binance's signed ``GET /fapi/v1/lev
agent/backtest/loaders/ccxt_loader.py:114
↓ 6 callersFunction_verdict
Validate a fundamentals answer against a run with no market evidence.
agent/tests/test_grounding_percentage_points.py:35
↓ 6 callersFunction_verdict
(header: str, *, from_address: str = "victim@example.com")
agent/tests/test_email_authentication_results.py:203
↓ 6 callersFunction_wrapper
(adapter: object)
agent/tests/test_chat_llm_lifecycle.py:26
↓ 6 callersFunction_write_equity
(run_dir: Path, dates: List[str], portfolio_returns: np.ndarray, benchmark_returns: np.ndarray)
agent/tests/test_attribution_api.py:56
↓ 6 callersFunction_write_equity_csv
(path: Path, rows: list[dict])
agent/tests/test_backtest_summary.py:83
↓ 6 callersFunction_write_mandate
(live_runtime: Path, *, max_order_notional_usd: float = 750.0)
agent/tests/test_enforcement_l6.py:177
↓ 6 callersFunction_write_manifest
(path: Path, payload)
agent/tests/test_strategy_discovery_refresh.py:85
↓ 6 callersMethod_write_transaction
Open an immediate write transaction for cross-connection safety.
agent/src/strategy_store/sqlite_store.py:275
↓ 6 callersFunction_zip
(name: str, text: str, encoding: str = "latin-1")
agent/tests/test_br_data.py:38
↓ 6 callersFunctionargentina_sell_allowed
Acquired shares may be resold; additional certificates must be credited.
agent/backtest/engines/argentina_equity.py:623
↓ 6 callersFunctionasNumber
(value: unknown)
frontend/src/lib/swarmStatus.ts:17
↓ 6 callersFunctionauthHeaders
()
frontend/src/lib/apiAuth.ts:18
↓ 6 callersMethodavailable_cash
Spendable funds for an order at timestamp, without changing equity. Default preserves legacy immediate-settlement capital across markets.
agent/backtest/engines/base.py:586
↓ 6 callersFunctionbasel_traffic_light
Place an exception count in the Basel supervisory zone. The zone is cut on the cumulative binomial probability of the observed count under th
agent/src/quantlib/var_backtest.py:542
↓ 6 callersFunctionbootstrap_sharpe
Bootstrap a confidence interval for an annualised Sharpe ratio. A point Sharpe with no interval is not evidence: an interval that straddles z
agent/src/quantlib/timeseries.py:827
↓ 6 callersFunctionbuild_filtered_registry
Build a ToolRegistry with only specified tools. Local-tools-only filtered builder. Swarm workers should call :func:`build_swarm_registry` ins
agent/src/tools/__init__.py:320
↓ 6 callersFunctionbuild_style_exposures
Assemble a style exposure matrix from raw characteristics. Args: characteristics: Raw values, rows indexed by asset, one column per
agent/src/quantlib/factormodel.py:309
↓ 6 callersMethodcalc_commission
Calculate commission for a trade. Args: size: Trade size. price: Execution price. direction: 1 or -1.
agent/backtest/engines/base.py:655
↓ 6 callersMethodcancel_all
Request owner-scoped cancellation and optionally wait for actual reaping.
agent/src/tools/background_tools.py:379
↓ 6 callersFunctioncap_rows
Bound a per-symbol row list to keep tool payloads within budget.
agent/src/market_data.py:168
↓ 6 callersFunctioncheck_balance_sheet
Assert that a balance sheet balances, or raise naming the residual. Args: balance_sheet: The balance sheet to check. tolerance: L
agent/src/quantlib/valuation/threestatement.py:427
↓ 6 callersFunctioncointegration_test
Engle-Granger two-step cointegration test. H0 = no cointegrating relationship. Two individually non-stationary series are cointegrated when s
agent/src/quantlib/timeseries.py:147
↓ 6 callersFunctioncompute_half_life
Estimate mean-reversion half-life of a spread by delta regression. Regresses ``ΔS_t`` on ``S_{t-1}`` (Ornstein-Uhlenbeck discretisation) and
agent/src/quantlib/timeseries.py:194
↓ 6 callersFunctioncompute_idf
Compute IDF scores from a token corpus. Formula: IDF(t) = log((N - n + 0.5) / (n + 0.5) + 1) where N = total document count, n = documents co
agent/src/memory/semantic_links.py:73
↓ 6 callersFunctioncompute_sleep_ms
Compute how long the loop should sleep before its next check. Args: jobs: The current job set. now_ms: The reference time in epoc
agent/src/live/runtime/scheduler.py:146
↓ 6 callersFunctionconstructed_schedule
A schedule whose XIRR is exactly ``rate``, by construction. Four irregularly dated inflows are chosen freely; the single opening outflow is t
agent/tests/quantlib/test_fundmath.py:74
↓ 6 callersMethoddashboard
Read one coherent snapshot; derive each agent's load from its tasks.
agent/src/pixel_agents/office.py:193
↓ 6 callersFunctiondatacenter_rejection
Return the datacenter's complaint when it rejected a report query. The datacenter answers HTTP 200 with ``success: false`` both for a query it
agent/backtest/loaders/eastmoney_client.py:70
↓ 6 callersMethoddefault_config
()
agent/tests/test_channel_config_meta.py:766
↓ 6 callersFunctiondelayed_execution
Shift a signal forward to model the lag between decision and fill. A signal computed from a bar's data cannot be traded on that same bar. Shiftin
agent/src/quantlib/impact.py:295
↓ 6 callersFunctiondetect_regimes
Hysteresis (Schmitt-trigger) regime state machine on smoothed density. The market is FUSED once smoothed density reaches ``enter_threshold`` and
agent/backtest/regime.py:60
↓ 6 callersMethoddiagnostics
Return non-blocking diagnostics for assertion messages.
agent/tests/mcp_http_test_helpers.py:40
↓ 6 callersFunctiondiff_manifests
Diff two manifests, naming exactly what changed. Args: a: The earlier (or "baseline") manifest. b: The later (or "candidate") man
agent/src/governance/manifest.py:481
↓ 6 callersFunctiondiscount_fcff
Discount every projection year's FCFF to present value. Args: fcff_years: The FCFF bridge, e.g. from :func:`fcff_bridge`. wacc_ra
agent/src/quantlib/valuation/dcf.py:869
↓ 6 callersFunctiondouble_top_bottom
Detect double-top and double-bottom patterns. Args: close: Closing price series. window: Peak/valley detection window. Retur
agent/src/tools/pattern_tool.py:201
↓ 6 callersFunctionestimate_tokens
Rough token count (~4 chars/token) of any JSON-serialisable value.
agent/src/agent/context_budget.py:59
↓ 6 callersMethodevaluate
( self, account: AccountState, frames: dict[str, MarketRiskFrame], price_field
agent/backtest/perpetual_risk.py:381
↓ 6 callersMethodexecute
Fetch news headlines for one stock or the broad market. Args: **kwargs: ``scope`` ('stock' | 'global', default 'stock'), ``code``
agent/src/tools/stock_news_tool.py:310
↓ 6 callersMethodexecute
Fetch margin-trading rows and return a JSON envelope string. Args: **kwargs: ``code`` (required, str) and ``days`` (optional int)
agent/src/tools/margin_trading_tool.py:163
↓ 6 callersMethodexecute
Run one step and return the single in-band JSON document string.
agent/src/tools/paper_trade/tool.py:564
↓ 6 callersFunctionexternal_flows
Select the boundary-crossing flows and restate them portfolio-side. The returned amounts are the **negation** of ``CashFlow.amount``: the input
agent/src/quantlib/performance.py:352
↓ 6 callersFunctionfetch
()
agent/tests/test_local_loader_source_revision.py:49
↓ 6 callersMethodget
(self, name: str)
agent/tests/test_load_skill_allowlist.py:119
↓ 6 callersFunctiongetDesktopMessages
(locale: DesktopLocale)
desktop/electron/src/locales.ts:250
↓ 6 callersFunctionget_data_dir
Return and create the runtime data directory derived from config path. Args: config_path: Optional explicit config file path. Return
agent/src/config/paths.py:90
↓ 6 callersMethodget_descriptions
Return skills grouped by category for the system prompt. Returns: Grouped skill list with category headers.
agent/src/agent/skills.py:143
↓ 6 callersMethodget_messages
(self, *args, **kwargs)
agent/tests/test_channels_attempt_progress.py:34
↓ 6 callersFunctionget_sessions_dir
Return the user-level directory holding chat session records.
agent/src/config/paths.py:37
← previousnext →1,501–1,600 of 26,887, ranked by callers