MCPcopy Create free account

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

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

↓ 1 callersFunction_claim_factor_artifact
Check whether an artifact can be read inside the response byte budget. Symlinks are rejected so companion files cannot escape the discovered
agent/src/api/runs_routes.py:82
↓ 1 callersFunction_claim_filename
(episode: str)
agent/src/live/runtime/sweep_latch.py:59
↓ 1 callersFunction_clamp
Coerce a requested count into ``1..maximum``, falling back to ``default``.
agent/src/tools/etf_holdings_tool.py:1860
↓ 1 callersFunction_clamp_days
Coerce the ``days`` argument into the supported ``[1, _MAX_DAYS]`` range. Args: days: Caller-supplied lookback window; may be missing or
agent/src/tools/block_trades_tool.py:75
↓ 1 callersFunction_clamp_days
Coerce the requested ``days`` to a sane integer within bounds. Args: days: Raw value from kwargs (may be ``None``, str, or int). Ret
agent/src/tools/margin_trading_tool.py:75
↓ 1 callersFunction_clamp_horizon
Coerce a caller horizon into ``[1, _MAX_HORIZON_DAYS]`` days. Args: horizon_days: Caller-supplied value of any type. Returns:
agent/src/tools/lockup_expiry_tool.py:57
↓ 1 callersFunction_clamp_int
Validate and clamp an integer parameter. Args: value: Raw parameter value; ``None`` selects the default. Numeric strings and
agent/src/tools/prediction_market_tool.py:977
↓ 1 callersFunction_clamp_limit
Coerce a requested report count into the supported ``1.._MAX_LIMIT`` range.
agent/src/tools/research_reports_tool.py:228
↓ 1 callersFunction_clamp_limit
Coerce a requested count into the supported ``1.._MAX_LIMIT`` range.
agent/src/tools/sec_filings_tool.py:176
↓ 1 callersFunction_clamp_limit
Coerce a requested count into the supported ``1.._MAX_LIMIT`` range.
agent/src/tools/symbol_search_tool.py:411
↓ 1 callersFunction_clamp_limit
Coerce a requested observation count into the supported range.
agent/src/tools/fred_macro_tool.py:254
↓ 1 callersFunction_clamp_lookback
Clamp a requested lookback to ``[1, _MAX_LOOKBACK_DAYS]``.
agent/src/tools/southbound_tool.py:89
↓ 1 callersFunction_clamp_periods
Coerce a requested period count into the supported ``1.._MAX_PERIODS`` range.
agent/src/tools/shareholder_count_tool.py:168
↓ 1 callersFunction_class_body_bindings
Every class-body statement that binds a bare name, in body order.
agent/tests/test_dataclass_field_name_collisions.py:81
↓ 1 callersFunction_classify
Classify a single metric value against three descending thresholds. Thresholds are ordered high→low (healthy > warning > decayed). A value at
agent/src/strategy_store/decay.py:57
↓ 1 callersFunction_classify_pattern
根据 Fibonacci 比率判断 XABCD 属于哪种谐波形态。 Args: x_price: X 点价格。 a_price: A 点价格。 b_price: B 点价格。 c_price: C 点价格。 d
agent/src/skills/harmonic/example_signal_engine.py:128
↓ 1 callersFunction_classify_query_market
Route a free-text lookup query to the A-share or the US path. Adds one rule to :func:`_classify_market`: a query containing Han characters is
agent/src/tools/etf_holdings_tool.py:257
↓ 1 callersFunction_classify_sender_ids
(jids: list[Any])
agent/src/channels/whatsapp.py:155
↓ 1 callersFunction_classify_target_relevance
Classify whether a Sina penalty record is countable for this stock. Args: record: Parsed penalty record. target_aliases: Normaliz
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:192
↓ 1 callersFunction_clean
(value: Any)
agent/src/trading/service.py:1728
↓ 1 callersFunction_clean_date
Trim a timestamp cell to its ``YYYY-MM-DD`` date, or ``None``.
agent/src/tools/research_reports_tool.py:381
↓ 1 callersFunction_clean_date
Trim a datacenter timestamp to its ``YYYY-MM-DD`` date, or ``None``.
agent/src/tools/shareholder_count_tool.py:282
↓ 1 callersFunction_clean_levels
Normalize a ccxt bids/asks array into sorted-by-caller ``(price, amount)`` pairs. Rows with a non-positive or non-finite price/amount are dropped
agent/src/tools/orderbook_depth_tool.py:209
↓ 1 callersFunction_clean_limit
(kwargs: Any)
agent/src/tools/gildata_research_tools.py:83
↓ 1 callersFunction_clean_market_data_type
Normalize a market-data tier, accepting either the code or its name.
agent/src/trading/connectors/ibkr/local.py:699
↓ 1 callersFunction_clean_optional_str
(value: Any)
agent/src/trading/connectors/ibkr/local.py:721
↓ 1 callersFunction_clean_query
(kwargs: Any)
agent/src/tools/gildata_research_tools.py:76
↓ 1 callersFunction_clean_summary
Collapse whitespace and strip commas so the value is CSV-safe.
agent/backtest/loaders/rsshub_events.py:294
↓ 1 callersMethod_cleanup_expired_hashes
Remove hash entries older than the dedup window to bound memory use.
agent/src/memory/persistent.py:508
↓ 1 callersFunction_clear_codex_token
Remove only Vibe's invalid credential cache.
agent/src/providers/openai_codex.py:122
↓ 1 callersFunction_clear_halt_from_repl
Clear the global kill switch from the REPL (``/resume``). Clearing the halt is a privileged surface action — an explicit re-enable, never an
agent/cli/main.py:914
↓ 1 callersFunction_clear_token_cache
Discard this environment's rejected token before one bounded retry.
agent/src/trading/connectors/kis/sdk.py:876
↓ 1 callersFunction_client_portfolio
(payload: Any)
agent/src/trading/connectors/etoro/sdk.py:367
↓ 1 callersFunction_clip
Return *value* stringified and clipped to *limit* characters.
agent/src/openbb_bridge/event_mapper.py:41
↓ 1 callersFunction_clm_car_std_error
CAR standard error from the full prediction-error covariance matrix. Written as matrix algebra (Campbell, Lo & MacKinlay eq. 4.4.14), not the
agent/tests/quantlib/test_eventstudy.py:116
↓ 1 callersFunction_close
(date, legs, underlying="SPY")
agent/tests/test_options_margin.py:51
↓ 1 callersFunction_close_etoro_position
Resolve and validate an eToro position before a full or partial close.
agent/src/trading/service.py:874
↓ 1 callersFunction_close_on_or_before
(frame: pd.DataFrame, dt: pd.Timestamp)
agent/src/tools/trade_journal_tool.py:50
↓ 1 callersMethod_close_proceeds
Capital a close at *exit_price* would return, without closing. Mirrors the credit in ``_close_position`` (margin + pnl - exit commiss
agent/backtest/engines/base.py:2197
↓ 1 callersFunction_closed_vocabulary
Return a known diagnostic label, never arbitrary report-controlled text.
agent/src/api/live_routes.py:255
↓ 1 callersMethod_closes_frame
Shape the fetch envelope into a date-indexed close-price panel.
agent/src/tools/portfolio_risk_tool.py:187
↓ 1 callersFunction_cluster_variance
Calculate the variance of an inverse-variance weighted sub-cluster.
agent/src/quantlib/portfolio.py:95
↓ 1 callersFunction_cn_column_map
Map logical holding columns to ``(index, unit_scale)`` from the table head. Eastmoney reports 持股数 in 万股 and 持仓市值 in 万元 (both ten-thousands),
agent/src/tools/etf_holdings_tool.py:856
↓ 1 callersFunction_cn_etf_list
Return every exchange-traded fund Eastmoney lists, memoized when complete. The quote server caps a page at 100 rows regardless of the requested `
agent/src/tools/etf_holdings_tool.py:1201
↓ 1 callersFunction_cn_fetch_year
Fetch one calendar year of report periods, each annotated with coverage.
agent/src/tools/etf_holdings_tool.py:1472
↓ 1 callersFunction_cn_holdings_periods
Fetch a fund's disclosed stock holdings by period, newest period first. The endpoint silently ignores an out-of-range ``year`` and answers with t
agent/src/tools/etf_holdings_tool.py:1003
↓ 1 callersFunction_cn_periodic_reports
Map period end to the interim/annual report that discloses it in full. This is the only authority on whether a June or December period's complete
agent/src/tools/etf_holdings_tool.py:1044
↓ 1 callersFunction_cn_quote
Fetch one A-share fund's name and market size from the Eastmoney quote API. Args: secid: Eastmoney secid such as ``"1.510050"``. Ret
agent/src/tools/etf_holdings_tool.py:1175
↓ 1 callersMethod_coalesce_stream_deltas
Merge consecutive _stream_delta messages for the same target. This reduces the number of API calls when the queue has accumulated mul
agent/src/channels/manager.py:546
↓ 1 callersFunction_coerce_audit_rows
Coerce model/API-style audit rows into dataclasses.
agent/src/tools/goal_tool.py:35
↓ 1 callersFunction_coerce_bool
Coerce a boolean parameter, tolerating common LLM string forms.
agent/src/tools/strategy_discovery_tool.py:112
↓ 1 callersFunction_coerce_exit_code
Normalize command return values to an integer exit code.
agent/cli/_legacy.py:284
↓ 1 callersFunction_coerce_float
Coerce a parameter to a finite float.
agent/src/tools/orderbook_depth_tool.py:193
↓ 1 callersFunction_coerce_flow_timing
Validate the flow-timing token. Args: raw: Value supplied for ``flow_timing``; ``None`` selects the default. Returns: Either
agent/src/tools/cashflow_analytics_tool.py:406
↓ 1 callersFunction_coerce_int
(value: Any)
agent/cli/ui/rail.py:62
↓ 1 callersFunction_coerce_int
Coerce a parameter to an int, accepting the JSON shapes callers emit. An LLM filling a tool call routinely sends ``"10"`` or ``10.0`` where the
agent/src/tools/prediction_market_tool.py:947
↓ 1 callersFunction_coerce_int
Coerce a parameter to int, accepting the JSON shapes an LLM tends to send.
agent/src/tools/orderbook_depth_tool.py:176
↓ 1 callersFunction_coerce_json_string
Decode JSON array/object strings some MCP clients send for list/dict args. FastMCP publishes optional list/dict parameters as ``anyOf`` schemas,
agent/mcp_server.py:454
↓ 1 callersFunction_coerce_kinds
Validate an optional kind-classification override. Args: raw: Value supplied for ``external_kinds`` or ``internal_kinds``. field_
agent/src/tools/cashflow_analytics_tool.py:430
↓ 1 callersFunction_coerce_numeric
Keep only the scalar numeric fields from a metrics dict.
agent/src/shadow_account/backtester.py:517
↓ 1 callersFunction_coerce_opt_float
Coerce an optional numeric parameter; reject NaN/inf and bad types.
agent/src/tools/strategy_discovery_tool.py:82
↓ 1 callersFunction_coerce_position_qty
Parse a broker position ``qty`` into a finite float, or ``None``. The signed quantity decides the close side and size, so it must be a real f
agent/src/live/runtime/flatten.py:426
↓ 1 callersFunction_coerce_usage_int
Coerce provider token counts to non-negative ints.
agent/src/agent/llm_usage.py:27
↓ 1 callersFunction_coerce_valuations
Parse the raw valuation array into ``(date, value)`` pairs. Args: raw: Value supplied for the ``valuations`` parameter. Returns:
agent/src/tools/cashflow_analytics_tool.py:305
↓ 1 callersFunction_coerce_value
Coerce one CSV cell to int / float / None / str. Integer-looking text becomes ``int``, finite float-looking text becomes ``float``, empty or
agent/src/tools/run_artifact_tool.py:213
↓ 1 callersFunction_collapse_nullable_union
Collapse top-level nullable unions when a single non-null branch exists. Args: schema: Normalized schema. Returns: Collapsed
agent/src/tools/mcp.py:1064
↓ 1 callersFunction_collect
(gen)
agent/tests/test_eventbus_clear_subscribers.py:61
↓ 1 callersMethod_collect
Assemble the appearances and (optionally) seat detail payload. Args: trade_date: Dashed ``YYYY-MM-DD`` trade date. co
agent/src/tools/dragon_tiger_tool.py:282
↓ 1 callersMethod_collect_outbound_media_candidates
Deduplicate and resolve outbound attachment paths.
agent/src/channels/matrix.py:379
↓ 1 callersFunction_collect_python_files
Return all .py files under SCAN_TARGETS, minus SKIP_PREFIXES and ALLOWED_PREFIX.
tools/ci_env_var_gate.py:199
↓ 1 callersFunction_collect_raw_fields
(schema: Any, fields: Iterable[str])
agent/backtest/loaders/fundamentals_loader.py:358
↓ 1 callersMethod_collect_self_addresses
Return normalized email addresses owned by this channel instance.
agent/src/channels/email.py:720
↓ 1 callersMethod_collect_sender_id_parts
Collect all known sender identifier variants from an envelope.
agent/src/channels/signal.py:1119
↓ 1 callersMethod_collect_source
Read one source's account and positions, pricing what the connector omits. Args: source: The enabled source to read.
agent/src/portfolio/service.py:960
↓ 1 callersFunction_collect_top_level_property_names
Collect top-level property names across composed object schemas.
agent/src/tools/mcp.py:1107
↓ 1 callersMethod_collect_widgets
Return every widget across the primary / secondary / extra groups.
agent/src/openbb_bridge/context_injector.py:259
↓ 1 callersFunction_columns
( numeric: dict[str, pd.DataFrame], categorical: dict[str, pd.DataFrame], row: int, )
agent/src/quantlib/neutralization.py:124
↓ 1 callersFunction_combined_output
(stdout: str | None, stderr: str | None)
agent/src/tools/background_tools.py:130
↓ 1 callersFunction_coming_soon
Render the placeholder panel for not-yet-wired commands.
agent/cli/commands/chat.py:30
↓ 1 callersFunction_command_from_args
(args: Any)
agent/cli/ui/rail.py:241
↓ 1 callersFunction_commit_mandate
Commit a mandate selection via the surface commit endpoint. This is the single privileged write that activates a mandate. The pick is a SURFA
agent/cli/main.py:1174
↓ 1 callersFunction_commit_scalable_mandate
Write a valid committed mandate for Scalable, so a denial is not 'no mandate'.
agent/tests/test_scalable_connector.py:351
↓ 1 callersFunction_compact_date
Render a date string as Stooq's ``YYYYMMDD`` form.
agent/backtest/loaders/stooq_loader.py:154
↓ 1 callersFunction_compact_date
(value: str)
agent/src/tools/tushare_fallbacks.py:47
↓ 1 callersFunction_compact_lines
(value: str, *, max_lines: int)
agent/cli/ui/rail.py:185
↓ 1 callersFunction_compact_match
Return a short, single-line match excerpt for warning metadata.
agent/src/security/scanner.py:258
↓ 1 callersFunction_compare
Compare a feature value against scalar or ``(op, threshold)`` rules.
agent/src/shadow_account/scanner.py:236
↓ 1 callersFunction_compare_envelope
()
agent/tests/test_alpha_cli_dotenv.py:97
↓ 1 callersFunction_comparison
( field: str, local_value: float, exchange_value: float, tolerance: ReconciliationTolerance,
agent/backtest/binance_account_reconciliation.py:273
↓ 1 callersFunction_complete
(candidate: pd.DataFrame | pd.Series)
agent/src/quantlib/neutralization.py:137
↓ 1 callersFunction_complete_paginated_reply
Follow a connector's advertised pagination cursor to the last page. Robinhood's list reads answer one page at a time: the reply's ``next`` is
agent/src/trading/service.py:1619
↓ 1 callersFunction_completion_body
(model: str)
agent/tests/test_opencode_provider.py:25
↓ 1 callersFunction_completion_url
(base_url: str)
agent/src/api/custom_provider_routes.py:87
↓ 1 callersMethod_compose_inbound_content
Combine message text with attachment markers.
agent/src/channels/discord.py:737
↓ 1 callersFunction_compounded
Compounded return from per-bar simple returns (empty product → 0.0).
agent/src/strategy_discovery/evidence_harness.py:357
↓ 1 callersFunction_comps_gaps
Collect comps-specific notes: excluded multiples and omitted EV-bridge components. Args: result: A completed :class:`CompsResult`.
agent/src/quantlib/valuation/artifact.py:603
↓ 1 callersFunction_comps_headline
Return the comps valuation-conclusion bullet lines.
agent/src/quantlib/valuation/artifact.py:1493
↓ 1 callersFunction_comps_sensitivity_lines
Return the comps sensitivity bullet lines: each multiple's peer spread.
agent/src/quantlib/valuation/artifact.py:1510
↓ 1 callersMethod_compute_factors
计算单只股票的因子值。 Args: df: OHLCV DataFrame。 Returns: 包含各因子列的 DataFrame。
agent/src/skills/multi-factor/example_signal_engine.py:69
↓ 1 callersFunction_compute_features
Compute a features row per profitable roundtrip. Columns: symbol, market, holding_days, pnl, pnl_pct, entry_hour, entry_weekday, buy_dt, sell
agent/src/shadow_account/extractor.py:276
← previousnext →5,501–5,600 of 26,887, ranked by callers