MCPcopy Create free account

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

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

↓ 2 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/zerodha/sdk.py:447
↓ 2 callersFunction_as_tau
Normalise scalar or sequence maturity argument to a 1-D float array.
agent/src/quantlib/fixedincome.py:602
↓ 2 callersFunction_assert_gateway
Fail with a clean error when the local OpenD gateway is unreachable.
agent/src/trading/connectors/futu/sdk.py:1035
↓ 2 callersFunction_assert_owner_only_mode_on_posix
(cache: Path)
agent/tests/test_oauth_token_cache.py:29
↓ 2 callersMethod_astream
Async route matching ``_stream`` for Responses compatibility.
agent/src/providers/llm.py:700
↓ 2 callersMethod_atomic_write
Atomically write a file: write to .tmp then rename. Args: path: Target file path. content: File content.
agent/src/swarm/store.py:576
↓ 2 callersFunction_atomic_write_json
Write ``payload`` as JSON to ``path`` atomically with 0600 perms. The parent directory is created 0700 and the file is written via a same-dir
agent/src/live/mandate/commit.py:167
↓ 2 callersFunction_atomic_write_secret
Write *content* to *path* atomically with 0600 permissions. The file holds provider API keys, so a crash mid-write must never leave a half-wr
agent/src/api/helpers.py:73
↓ 2 callersMethod_attach
Idempotently subscribe *connection* to *chat_id*.
agent/src/channels/websocket.py:307
↓ 2 callersFunction_attach_delivery_listener
Let a finished run push its briefing without waiting for the next tick. The listener only *asks* for a sweep. Delivery correctness lives in the
agent/src/api/state.py:80
↓ 2 callersFunction_attribute_dotted_path
Rebuild the dotted path of an attribute chain (``a.b.c`` -> ``a.b.c``). The root name alone cannot decide a forbidden-subtree check: ``src`` is
agent/backtest/runner.py:533
↓ 2 callersFunction_attribute_root_name
Return the leftmost ``Name`` id of an attribute chain (``a.b.c`` -> ``a``).
agent/backtest/runner.py:525
↓ 2 callersFunction_attribution_bars_per_year
Infer the annualization factor from the run's bar interval label.
agent/src/api/attribution_core.py:95
↓ 2 callersFunction_attribution_symbol_cumulative_return
Buy-and-hold close-to-close return for one symbol from its OHLCV artifact. Returns ``last_close / first_close - 1`` over the date-sorted rows, or
agent/src/api/attribution_core.py:253
↓ 2 callersFunction_attribution_symbol_is_path_safe
Reject symbols that could escape the artifacts directory when used in paths. Symbols come from ``positions.csv`` headers and ``config.json`` code
agent/src/api/attribution_core.py:237
↓ 2 callersFunction_audit
Append one redacted live-action record for a sweep broker call. Fail-safe: an audit write must never abort the sweep. The ledger write does r
agent/src/live/runtime/flatten.py:493
↓ 2 callersFunction_audit_action
( broker, session_id, *, remote_tool: str, kind, outcome, mandate, intent,
agent/src/live/sdk_order_gate.py:1046
↓ 2 callersFunction_auth_headers
Bearer auth headers for the hosted API.
agent/backtest/loaders/tickerall_loader.py:131
↓ 2 callersMethod_authentication_results_segments
Split clauses outside quoted strings and discard nested RFC comments. Malformed quoted strings or comments refuse the whole header.
agent/src/channels/email.py:959
↓ 2 callersFunction_authorize_timeout_seconds
Resolve the OAuth authorize handshake deadline in seconds. Reads ``VIBE_LIVE_AUTHORIZE_TIMEOUT_SECONDS`` and falls back to :data:`_LIVE_AUTHO
agent/cli/_legacy.py:3118
↓ 2 callersFunction_bad_request_error
Build a ProviderStreamError mimicking a deterministic 400 rejection.
agent/tests/test_stream_retry_escalation.py:105
↓ 2 callersFunction_balance
(cfg: KISConfig)
agent/src/trading/connectors/kis/sdk.py:660
↓ 2 callersFunction_balance_to_dict
(item: Any)
agent/src/trading/connectors/longbridge/sdk.py:847
↓ 2 callersMethod_band
(self, symbol: str, day: str, sym_data: data.SymbolData)
agent/src/tools/paper_trade/engine.py:449
↓ 2 callersFunction_bar
(**over)
agent/tests/test_price_caliber.py:494
↓ 2 callersFunction_bare_code
Return the numeric stock code without its exchange suffix.
agent/src/tools/research_reports_tool.py:202
↓ 2 callersFunction_bare_code
Strip any exchange suffix to the bare numeric A-share code. Args: code: A symbol such as ``"600519.SH"``, ``"000001.SZ"`` or ``"600519"``
agent/src/tools/dragon_tiger_tool.py:58
↓ 2 callersFunction_bare_query
Strip any exchange suffix to the bare code used as a news search term.
agent/src/tools/stock_news_tool.py:83
↓ 2 callersFunction_bare_us_ticker
Drop the project's ``.US`` suffix so SEC tickers line up. The resolver publishes US listings as ``<SYM>.US`` (see ``symbol_search_tool._from_
agent/src/tools/etf_holdings_tool.py:470
↓ 2 callersFunction_bars
(n: int)
agent/tests/test_connector_history_display.py:12
↓ 2 callersFunction_bars
(n: int = 5)
agent/tests/test_ccxt_loader_bounded.py:29
↓ 2 callersFunction_bars_to_frame
Convert the broker ``bars`` list into a clipped OHLCV frame, or ``None``.
agent/backtest/loaders/india_broker_loader.py:99
↓ 2 callersMethod_base_metadata
Build common metadata for text and media handlers.
agent/src/channels/matrix.py:977
↓ 2 callersMethod_bench_values
Column values of a bench row other than ``id`` and ``created_at``. One list serves both the insert and the duplicate check, so a column
agent/src/strategy_store/sqlite_store.py:624
↓ 2 callersFunction_blank_to_none
Normalize blank MCP strings to None.
agent/mcp_server.py:446
↓ 2 callersFunction_bounded
Return a scrubbed, bounded ``<side>: <error>`` detail string.
agent/src/channels/email_probe.py:61
↓ 2 callersFunction_bp_multiplier
Resolve a yield input unit to its basis-point multiplier. Args: input_unit: A key of :data:`SPREAD_INPUT_UNITS`. Returns: Th
agent/src/quantlib/credit.py:560
↓ 2 callersFunction_brackets
(coefficient: float | None = None)
agent/tests/test_perpetual_risk.py:24
↓ 2 callersFunction_breach
Construct a :class:`BreachEvent` with a computed ``overage``.
agent/src/live/enforcement.py:188
↓ 2 callersFunction_bridge_delta
Compute the EV-minus-equity-value delta and which optional items were omitted. The delta is added to equity value to reach EV, and subtracted fro
agent/src/quantlib/valuation/comps.py:370
↓ 2 callersFunction_brief
Render a rejected argument for an error message without ever raising. ``repr()`` is not total: an int with more than 4300 digits raises ``Val
agent/src/tools/trading_connector_tool.py:64
↓ 2 callersFunction_broker_key
(broker: str)
agent/src/live/pending_action.py:375
↓ 2 callersFunction_broker_rows
Return broker permissions for the display language's table.
agent/src/trading/capability_matrix.py:71
↓ 2 callersMethod_budget
(self, config: Optional[dict[str, Any]])
agent/src/providers/claude_cli.py:536
↓ 2 callersFunction_build_agent
Build an AgentLoop with a real (but shell-free) registry and a stub LLM. Args: llm: Stub LLM object exposing stream_chat/chat. ev
agent/tests/test_reasoning_delta_throttle.py:53
↓ 2 callersFunction_build_agent
Build an AgentLoop with the same lightweight registry pattern as loop tests.
agent/tests/test_auto_compact_chunked_summary.py:27
↓ 2 callersMethod_build_and_capture
(self, temperature: str)
agent/tests/test_llm.py:966
↓ 2 callersFunction_build_attribution_payload
Assemble the full attribution payload from a run's artifacts. Args: run_dir: Root directory of the run. Returns: The respons
agent/src/api/attribution_core.py:767
↓ 2 callersMethod_build_channel
Build one adapter instance and record its status (``None`` if it cannot be built). Args: name: Channel name. section:
agent/src/channels/manager.py:114
↓ 2 callersFunction_build_data_source_settings_response
Build the public data source settings payload.
agent/src/api/settings_routes.py:668
↓ 2 callersFunction_build_explicit_run
Explicit-benchmark run across two asset classes with weights < 1 (cash).
agent/tests/test_attribution_api.py:127
↓ 2 callersFunction_build_headers
(account_id: str, access_token: str)
agent/src/providers/openai_codex.py:408
↓ 2 callersFunction_build_manager
Construct a manager whose adapters are :class:`FakeChannel`.
agent/tests/test_channel_manager_health.py:89
↓ 2 callersFunction_build_matrix_text_content
Constructs and returns a dictionary representing the matrix text content with optional HTML formatting and reference to an existing event for
agent/src/channels/matrix.py:150
↓ 2 callersFunction_build_panel
Recreate the exact seeded panel used to write the golden CSVs.
agent/tests/factors/test_academic_samples.py:23
↓ 2 callersMethod_build_reply_context
Build reply context for outbound messages.
agent/src/channels/discord.py:331
↓ 2 callersFunction_build_run_payload
Reconcile + project a run for the MCP response. Used by ``run_swarm`` (polling + start_only). Returns a normal payload on success and a ``{"s
agent/mcp_server.py:2939
↓ 2 callersFunction_build_session_history
Load and filter recent message history for a session. Returns up to ``_HISTORY_RETAINED_TURNS`` user/assistant messages with non-empty conten
agent/cli/main.py:387
↓ 2 callersFunction_build_status_parts
Build plain-text status bar segments. Args: stats: Session statistics. Returns: List of status text segments.
agent/cli/_legacy.py:158
↓ 2 callersMethod_build_thread_relates_to
(metadata: dict[str, Any] | None)
agent/src/channels/matrix.py:819
↓ 2 callersFunction_business_error
Return the OKX business error string, or None when the call succeeded. The mandate gate fails closed only on an explicit error, so a non-zero
agent/src/trading/connectors/okx/sdk.py:674
↓ 2 callersFunction_ca_venue_sibling
Return the other Canadian venue's symbol for a ``.TO``/``.V`` code. ``HIVE.V`` -> ``HIVE.TO``, ``TD.TO`` -> ``TD.V``, ``BBD-B.TO`` -> ``BBD-B
agent/src/market_data.py:153
↓ 2 callersFunction_cache_file_identity
(path: Path)
agent/backtest/loaders/base.py:718
↓ 2 callersFunction_cache_hmac_key
Return the secret backing the cache sidecar HMAC. Priority: ``API_AUTH_KEY`` (UTF-8) when configured, else a persisted machine-local 32-byte
agent/src/tools/alpha_bench_tool.py:178
↓ 2 callersFunction_cache_mac
Keyed HMAC-SHA256 authentication tag (hex) for a cache blob.
agent/src/tools/alpha_bench_tool.py:216
↓ 2 callersFunction_cache_path
()
agent/backtest/loaders/gildata_codes.py:59
↓ 2 callersFunction_call
(codes, source="tencent")
agent/tests/test_get_market_data_provenance.py:46
↓ 2 callersMethod_call_action
( self, action: str, params: dict[str, Any], timeout: float = _ACTION_TIMEOUT,
agent/src/channels/napcat.py:484
↓ 2 callersFunction_call_srv
Share authenticated MCP transport without changing existing table callers.
agent/src/tools/gildata_srv.py:69
↓ 2 callersFunction_call_tool_results
Invoke one MCP tool and retain every result entry. Args: tool: Tool name, e.g. ``"StockDailyQuote"``. arguments: Structured tool
agent/backtest/loaders/gildata_loader.py:155
↓ 2 callersFunction_cancel_runner_task
Cancel a driver once and wait for its scheduler cleanup. Concurrent stop requests share the same driver. A second cancellation must not inter
agent/src/api/live_routes.py:933
↓ 2 callersFunction_cancels
(outcome)
agent/tests/test_paper_trade_5m_limit_price.py:206
↓ 2 callersFunction_canonical_frame
(frame: pd.DataFrame | None)
agent/src/tools/paper_trade/data.py:147
↓ 2 callersFunction_canonical_json
Serialize ``obj`` deterministically for hashing (sorted keys, compact).
agent/src/governance/manifest.py:113
↓ 2 callersFunction_canonical_symbol
(symbol: str)
agent/src/trading/connectors/binance/usdm.py:309
↓ 2 callersFunction_canonical_ticker
(token: str)
agent/src/trading/connectors/etoro/instruments.py:359
↓ 2 callersMethod_capture
(self, src: Any, msg: Any)
agent/src/providers/llm.py:427
↓ 2 callersFunction_catalog
()
agent/src/agent/context_budget.py:55
↓ 2 callersMethod_cfd_intent
(self)
agent/tests/test_mandate_forex.py:233
↓ 2 callersMethod_channel_allow_keys
Return channel IDs that can satisfy allow_channels for this channel.
agent/src/channels/discord.py:384
↓ 2 callersFunction_channel_class_from_module
Return the first BaseChannel subclass defined in *module*.
agent/src/channels/registry.py:133
↓ 2 callersFunction_channel_entry
Build one channel's GET-shape entry; secrets are masked, never returned.
agent/src/api/channels_config_routes.py:248
↓ 2 callersMethod_check_inbound_policy
Decide whether to route an inbound message past DM/group policy. Returns ``(allow, chat_id)``. Has one side effect: when a group mess
agent/src/channels/signal.py:839
↓ 2 callersMethod_check_min_bars
检查连续 Swing 点之间是否满足最少 K 线数。 Args: swings: Swing 点列表。 start: 起始索引。 count: 检查的点数。 Returns:
agent/src/skills/elliott-wave/example_signal_engine.py:165
↓ 2 callersFunction_check_name
Return *name* if it has the dotted-identifier shape, else reject it.
agent/src/scheduling/registry.py:66
↓ 2 callersMethod_check_observed
An observed figure must appear in evidence of its own kind. A currency-marked figure is answered only by money-denominated values and
agent/src/agent/grounding/policies.py:1675
↓ 2 callersFunction_child
Return ``parent``'s first child element named ``name``, or ``None``.
agent/src/tools/etf_holdings_tool.py:678
↓ 2 callersFunction_chrome
Return the shared head block, header and footer as trusted markup. They come from ``wiki/partials/`` (repository files, not manifest data), s
wiki/scripts/build_alpha_library.py:365
↓ 2 callersMethod_claim_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:979
↓ 2 callersFunction_clamp_limit
Coerce a caller-supplied ``limit`` into the supported ``1.._MAX_LIMIT`` range. Args: raw: The raw ``limit`` value from the tool arguments
agent/src/tools/stock_news_tool.py:57
↓ 2 callersFunction_clamp_lookback
Clamp a requested lookback to ``[1, _MAX_LOOKBACK_DAYS]``. Args: value: Raw ``lookback_days`` argument (any type the caller supplied).
agent/src/tools/northbound_tool.py:182
↓ 2 callersFunction_classify_filing
Decide what one filing does to the quarter it belongs to. Two independent signals exist and live filings show them disagreeing in both direct
agent/src/tools/institutional_holdings_tool.py:1026
↓ 2 callersFunction_classify_market
Classify a symbol's suffix into ``a_share``, ``us``, ``hk``, ``uk``, or ``None``. Args: code: Symbol with a market suffix (e.g. ``"600519
agent/src/tools/financial_statements_tool.py:761
↓ 2 callersFunction_clean_date
Trim a date cell to its ``YYYY-MM-DD`` form, or ``None`` when absent/blank.
agent/src/tools/fred_macro_tool.py:263
↓ 2 callersFunction_clean_inline_markdown
(text: str)
agent/cli/ui/transcript.py:159
↓ 2 callersFunction_clean_num
Normalise a numeric string with commas (ASCII or wide) to float.
agent/src/tools/report_audit_tool.py:55
↓ 2 callersFunction_clean_text
Trim a string cell, or ``None`` when absent/blank/non-string.
agent/src/tools/research_reports_tool.py:373
↓ 2 callersFunction_clear_flags
Return the ``clear_<field>`` targets from a request's extra keys.
agent/src/api/channels_config_routes.py:222
↓ 2 callersFunction_client
()
agent/tests/test_shadow_report_route_runtime_root.py:14
↓ 2 callersFunction_client
()
agent/tests/test_discord_allowed_mentions.py:25
← previousnext →3,601–3,700 of 26,887, ranked by callers