MCPcopy Create free account

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

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

↓ 1 callersFunction_validate_authorization_credential
Reject credentials that cannot form a legal ASCII Bearer header.
agent/src/providers/llm.py:901
↓ 1 callersFunction_validate_backtest_dates
Validate backtest dates before writing any run artifacts.
agent/src/tools/autopilot_tool.py:238
↓ 1 callersFunction_validate_class_body
Reject import-time execution inside class bodies.
agent/backtest/runner.py:305
↓ 1 callersFunction_validate_comparison
(item: Any)
agent/backtest/binance_shadow_evidence.py:377
↓ 1 callersMethod_validate_completion_audit
( self, goal: GoalRecord, audit: list[AuditRow], )
agent/src/goal/store.py:899
↓ 1 callersMethod_validate_config
(self)
agent/src/channels/email.py:429
↓ 1 callersFunction_validate_cron_field
Raise ``ValueError`` when one cron field is malformed or out of range.
agent/src/scheduling/triggers.py:60
↓ 1 callersMethod_validate_date
Normalize an optional ISO date bound. Args: value: Raw request value. field_name: Field name used in the error messag
agent/src/tools/taiwan_stock_data_tool.py:486
↓ 1 callersFunction_validate_evidence
(evidence: Mapping[str, Any])
agent/backtest/binance_shadow_evidence.py:262
↓ 1 callersFunction_validate_expectations
(expect: Mapping[str, Any])
agent/evals/harness/schema.py:79
↓ 1 callersFunction_validate_explicit_headers
Reject explicit provider headers that HTTPX cannot encode safely.
agent/src/providers/llm.py:919
↓ 1 callersMethod_validate_figures
Check every measurement-shaped number against its declared role. Args: content: The candidate answer. block: Its pars
agent/src/agent/grounding/policies.py:476
↓ 1 callersMethod_validate_identity
Validate aggregate state and listed/private contradictions.
agent/src/agent/grounding/policies.py:472
↓ 1 callersMethod_validate_inbound_auth
Validate inbound Bot Framework bearer token.
agent/src/channels/msteams.py:511
↓ 1 callersFunction_validate_inputs
Reject genuinely invalid inputs at the boundary (P06). T == 0 is a *valid* expiry (handled downstream as intrinsic value), so it is intention
agent/src/tools/options_pricing_tool.py:13
↓ 1 callersFunction_validate_key
Return error message or None if key looks plausible.
agent/cli/onboard.py:381
↓ 1 callersMethod_validate_limit
Coerce the row limit into the supported range. Args: value: Raw request value. Returns: The limit as an inte
agent/src/tools/taiwan_stock_data_tool.py:517
↓ 1 callersFunction_validate_model_base_url
Accept HTTP(S) provider endpoints without embedded URL credentials.
agent/src/api/settings_routes.py:289
↓ 1 callersFunction_validate_moonshot_reasoning_effort
Reject an effort level the kimi-k3.1 API would reject (issue #2020). Moonshot publishes ``reasoning_effort`` for kimi-k3.1 as one of ``low``/
agent/src/providers/llm.py:1480
↓ 1 callersFunction_validate_node
Recursive subset validator: type/const/enum/required/properties/items/ additionalProperties(bool). Unknown keywords are ignored — the skeleton
agent/src/tools/paper_trade/schema.py:619
↓ 1 callersFunction_validate_ohlcv_code
Reject an ``ohlcv:<CODE>`` suffix that could escape the artifacts dir. Raises: ValueError: If the code is empty or carries path separator
agent/src/tools/run_artifact_tool.py:85
↓ 1 callersMethod_validate_output
( alpha_id: str, result: Any, panel: dict[str, pd.DataFrame], )
agent/src/factors/registry.py:406
↓ 1 callersFunction_validate_preset_name
Reject names that are empty or could escape a presets directory. Preset names map directly to ``<dir>/<name>.yaml``; a name carrying a path s
agent/src/swarm/presets.py:47
↓ 1 callersMethod_validate_price_provenance
Walk declared provenance checks only after a price was checked.
agent/src/agent/grounding/policies.py:2538
↓ 1 callersFunction_validate_recovery_evidence
(action, response)
agent/src/live/sdk_order_gate.py:756
↓ 1 callersMethod_validate_schema
(self, schema: TableSchema, frame: pd.DataFrame)
agent/backtest/loaders/tushare_fundamentals.py:240
↓ 1 callersFunction_validate_signal_engine_class
Pre-flight check: SignalEngine can be instantiated with no args and has generate().
agent/backtest/runner.py:825
↓ 1 callersFunction_validate_source
(path: Path, source: str)
agent/src/tools/paper_trade/strategy_exec.py:289
↓ 1 callersFunction_validate_source_order_update
Validate one market reorder; return ``(env_var, dotenv value)``. A null/empty order — or one equal to the default — maps to an empty string,
agent/src/api/settings_routes.py:634
↓ 1 callersFunction_validate_stockid
从 600000.SH / 000001.SZ / 600000 中抽取 6 位股票代码。
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:112
↓ 1 callersFunction_validate_string_list
(value: Any, name: str)
agent/backtest/binance_shadow_evidence.py:368
↓ 1 callersFunction_validate_timestamp_text
(value: Any, name: str)
agent/backtest/binance_shadow_evidence.py:352
↓ 1 callersFunction_validate_weights
Validate weights and preserve the exposure semantics for each book type. Long-only weights retain the historical normalization to sum 1. A book w
agent/backtest/risk_xray.py:49
↓ 1 callersFunction_validation
(value: Any)
agent/src/factors/data_availability.py:151
↓ 1 callersFunction_valuation
(frame: pd.DataFrame)
agent/src/tools/paper_trade/data.py:207
↓ 1 callersMethod_valuation_price
(self, symbol: str, day: str, avg_cost: Decimal)
agent/src/tools/paper_trade/engine.py:491
↓ 1 callersMethod_value
(self, S: float, hv: float, ts: pd.Timestamp, legs: List[Leg])
agent/src/skills/options-strategy/example_signal_engine.py:56
↓ 1 callersFunction_vault_store
(tmp_path, connection_id, profile_id)
agent/tests/test_local_connections.py:238
↓ 1 callersMethod_venue_mismatch_hints
Turn a same-issuer venue mismatch into an actionable resolver hint. ``BLDP.US`` against a locked ``BLDP.TO`` is not a typo of one identity;
agent/src/agent/grounding/identity.py:552
↓ 1 callersFunction_verdict_record_or_none
Parse a persisted last_verdict, degrading an unreadable one to None. A malformed verdict must never take the job down with it, the same way an
agent/src/scheduled_research/models.py:161
↓ 1 callersMethod_verification_status
Return whether evidence has a traceable local artifact/run source.
agent/src/goal/store.py:846
↓ 1 callersFunction_verify_upgrade
Re-read the installed version from a fresh process to confirm the upgrade.
agent/cli/commands/update.py:208
↓ 1 callersFunction_version_from_pyproject
Read ``[project] version`` from the repo's ``pyproject.toml``. Returns: The declared version, or ``"unknown"`` if the file cannot be loca
agent/cli/_version.py:16
↓ 1 callersFunction_volatility
(port: pd.Series, ppy: int | None)
agent/backtest/risk_xray.py:228
↓ 1 callersFunction_volume_from
(loader_cls)
agent/tests/test_volume_unit_consistency.py:23
↓ 1 callersFunction_wait_for_http_ready
Poll the fixture endpoint until it is reachable.
agent/tests/mcp_http_test_helpers.py:311
↓ 1 callersMethod_wait_for_reply
(self, session_id: str, attempt_id: str | None, *, progress: Any = None)
agent/src/channels/runtime.py:372
↓ 1 callersFunction_wait_for_server_port
Wait until the fixture writes back its bound port.
agent/tests/mcp_http_test_helpers.py:287
↓ 1 callersFunction_wait_for_tick
Pump the ib_async event loop until the snapshot ticker fills. ``reqMktData(..., snapshot=True)`` returns immediately but the ticker fields (b
agent/src/trading/connectors/ibkr/local.py:393
↓ 1 callersFunction_wait_for_worker_retry
Wait before a retry and return whether cancellation interrupted it.
agent/src/swarm/runtime.py:164
↓ 1 callersFunction_wait_port
(host: str, port: int, timeout: float)
agent/tests/test_mcp_server_http_transport.py:34
↓ 1 callersFunction_wait_until_ws_running
Park until the dedicated loop is actually running inside ``start()``.
agent/tests/test_feishu_stop.py:92
↓ 1 callersFunction_walk_book
Consume ``levels`` (best price first) until ``base_qty_target`` base units are filled. Args: levels: ``(price, amount)`` pairs in walk or
agent/src/tools/orderbook_depth_tool.py:242
↓ 1 callersFunction_walk_chain
Walk an amendment chain into the quarter's actual holdings. Never raises. ``RESTATEMENT`` replaces everything accumulated so far; ``NEW HOLDINGS`
agent/src/tools/institutional_holdings_tool.py:1207
↓ 1 callersFunction_walk_forward_weights
Estimate weights at each rebalance from strictly earlier IC values.
agent/src/quantlib/combination.py:207
↓ 1 callersFunction_warn_deprecated_token_threshold
()
agent/src/agent/context_budget.py:100
↓ 1 callersFunction_warn_fsync_failure
Log the first ledger fsync failure for this process, then stay quiet. Mirrors ``src.agent.trace.TraceWriter._warn_fsync_failure``: the write
agent/src/live/audit.py:80
↓ 1 callersMethod_warnings
Describe every reason this snapshot must be read with caution. Args: accounts: The per-source account rows of this snapshot.
agent/src/portfolio/service.py:1200
↓ 1 callersMethod_was_mentioned
(self, message: Any)
agent/src/channels/whatsapp.py:609
↓ 1 callersFunction_wave_panel
A panel that rises and falls, so cntp5's output is not a constant.
agent/tests/factors/test_registry.py:343
↓ 1 callersFunction_websocket_hints
Return the hand-written WebSocket field hints (``enabled`` excluded). ``required`` decision: nothing is unconditionally required — host/port/path
agent/src/channels/config_meta.py:211
↓ 1 callersFunction_websockets_available
Return whether the ``websockets`` core dependency imports.
agent/src/channels/websocket_probe.py:61
↓ 1 callersFunction_weekdays
(start: date, end: date)
agent/src/br_data/cotahist.py:149
↓ 1 callersFunction_weekdays_between
Weekday dates strictly between two ISO dates (gap audit helper).
agent/tests/test_paper_trade_fixtures.py:286
↓ 1 callersFunction_welcome_widths
Calculate welcome-screen column widths from the terminal width.
agent/cli/_legacy.py:517
↓ 1 callersFunction_wilder_average
Seed with a simple mean, then recurse over observed values. Args: values: Gains or losses, possibly containing missing observations.
agent/src/shadow_account/indicators.py:9
↓ 1 callersFunction_window
(frame: pd.DataFrame, start_date: str, end_date: str, *, end_inclusive: bool)
agent/tests/paper_trade_5m_fixtures.py:174
↓ 1 callersFunction_window_corr
NaN-aware correlation matrix of one trailing window. Args: window: Array of shape (bars, n_assets) of returns, may contain NaN. m
agent/src/factors/zoo/academic/corr_rewire.py:74
↓ 1 callersFunction_window_from_rule
Infer a recent-return window from common condition keys.
agent/src/shadow_account/scanner.py:207
↓ 1 callersFunction_wiring_landed
()
agent/tests/test_strategy_discovery_routing.py:70
↓ 1 callersFunction_with_fingerprint
(facts: FiveMinuteFacts)
agent/src/tools/paper_trade/data_5m.py:545
↓ 1 callersFunction_with_forced_frontmatter_name
Force the frontmatter ``name:`` field to match the directory slug. SkillsLoader identifies a skill by its frontmatter ``name``, not by its di
agent/src/tools/skill_writer_tool.py:54
↓ 1 callersMethod_with_thread_context
Include thread history the first time the bot is pulled into a Slack thread.
agent/src/channels/slack.py:566
↓ 1 callersFunction_within
Whether ``span`` sits inside any of ``spans``.
agent/src/agent/grounding/figures.py:1165
↓ 1 callersMethod_within_written_precision
Whether a figure is ``target`` correctly rounded to the digits it was written with. Raw evidence uses the relative :data:`_TOLERANCE` band. A
agent/src/agent/grounding/policies.py:1646
↓ 1 callersFunction_without_fenced_code
Blank fenced examples without changing the report's line numbers.
agent/src/tools/report_audit_tool.py:189
↓ 1 callersFunction_without_labels
A note with its words removed, so the arithmetic between them can be read. "等权Sharpe 0.692 − 风险平价 0.651" is the arithmetic "0.692 − 0.651"; a
agent/src/agent/grounding/policies.py:425
↓ 1 callersFunction_without_positions
Return a filing detail stripped of its position list, safe to embed in an envelope.
agent/src/tools/institutional_holdings_tool.py:1021
↓ 1 callersMethod_workspace_controls_available
(self, connection: Any)
agent/src/channels/websocket.py:304
↓ 1 callersMethod_workspace_scope_or_error
( self, connection: Any, resolver: Callable[[], Any], *, chat_id: str
agent/src/channels/websocket.py:831
↓ 1 callersFunction_worst
Return the worse of two signals.
agent/src/strategy_store/decay.py:52
↓ 1 callersFunction_wrap
(text: str, width: int)
agent/cli/ui/rail.py:228
↓ 1 callersFunction_write
(path: Path, content: str)
wiki/scripts/build_alpha_library.py:478
↓ 1 callersFunction_write
()
agent/tests/test_oauth_token_cache.py:137
↓ 1 callersFunction_write_agent_config
(tmp_path: Path, channels: dict[str, Any])
agent/tests/test_channel_noop_refresh.py:194
↓ 1 callersFunction_write_agent_config
( tmp_path: Path, channels: dict[str, Any], *, suffix: str = ".json" )
agent/tests/test_channels_config_api.py:96
↓ 1 callersFunction_write_backtest
(directory: Path, rejections: dict | None = None)
agent/tests/test_backtest_runs_tool.py:18
↓ 1 callersFunction_write_backtest_run
( run_dir: Path, symbols: int, bars: int, equity_rows: int )
agent/tests/api/test_run_preview.py:29
↓ 1 callersFunction_write_balance_sheet_sheet
Write the "Balance Sheet" sheet, opening plus every period, with the balance residual.
agent/src/quantlib/valuation/artifact.py:1400
↓ 1 callersFunction_write_cash_flow_sheet
Write the "Cash Flow Statement" sheet, incl. the convergence diagnostics.
agent/src/quantlib/valuation/artifact.py:1382
↓ 1 callersFunction_write_chat_run
(run_dir: Path)
agent/tests/api/test_run_preview.py:54
↓ 1 callersMethod_write_compressed
Write compressed content back to the memory file atomically. Updates frontmatter compression_level and updated_at, replaces body.
agent/src/memory/lifecycle.py:352
↓ 1 callersFunction_write_deck_section
Append one heading paragraph plus one bulleted paragraph per line to a text frame.
agent/src/quantlib/valuation/artifact.py:1553
↓ 1 callersMethod_write_entry
(tmp_path, filename, name, quality_score, days_ago, access_count, body, entry_id)
agent/tests/memory/test_tier2_integration.py:313
↓ 1 callersFunction_write_escape
()
agent/tests/test_oauth_token_cache.py:155
↓ 1 callersFunction_write_fcff_bridge_sheet
Write the "FCFF Bridge" sheet: one row per year plus a PV total row.
agent/src/quantlib/valuation/artifact.py:1095
↓ 1 callersMethod_write_file
Write a file to a skill subdirectory.
agent/src/tools/skill_writer_tool.py:349
↓ 1 callersMethod_write_heartbeat
Record a liveness heartbeat for this tick (best-effort). A failed heartbeat write must never abort a tick (the trading decision is fa
agent/src/live/runtime/runner.py:554
↓ 1 callersFunction_write_implied_valuation_sheet
Write the "Implied Valuation" sheet: target metric x peer quantiles, EV and equity.
agent/src/quantlib/valuation/artifact.py:1283
↓ 1 callersFunction_write_income_statement_sheet
Write the "Income Statement" sheet: one row per projected period.
agent/src/quantlib/valuation/artifact.py:1366
← previousnext →7,701–7,800 of 26,887, ranked by callers