MCPcopy Create free account

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

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

↓ 6 callersFunction_cache_frame
(value: float = 1.0)
agent/tests/test_loader_retry_helpers.py:214
↓ 6 callersMethod_capture
Run build_llm for the Anthropic provider and return adapter kwargs. Patches the temperature-safe subclass factory rather than the module
agent/tests/test_llm_reasoning_effort.py:424
↓ 6 callersFunction_check
(mandate: Mandate, intent: OrderIntent)
agent/tests/test_mandate_forex.py:85
↓ 6 callersMethod_clean_cjk
Collapse unigram/bigram tokens back into readable CJK display text. ``_prepare_cjk`` stores a CJK run as unigrams-then-bigrams so FTS5 can
agent/src/memory/search_index.py:481
↓ 6 callersFunction_client
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/sdk.py:78
↓ 6 callersFunction_cn_a_data
(from_date: str = _DAY, to_date: str = _DAY)
agent/tests/test_paper_trade_validation.py:62
↓ 6 callersFunction_collapse_ws
(value: Any)
agent/cli/ui/rail.py:58
↓ 6 callersFunction_commit_mandate
(live_runtime: Path)
agent/tests/test_readonly_default.py:103
↓ 6 callersFunction_configure
Point the local loader at a temp config file.
agent/tests/test_local_loader.py:16
↓ 6 callersMethod_connect
(self)
agent/src/tools/paper_trade/accounts.py:63
↓ 6 callersMethod_connect
(self)
agent/src/live/runtime/decision_budget.py:65
↓ 6 callersFunction_convert_messages
Convert loop messages into Responses ``instructions`` + ``input`` items. Args: messages: OpenAI-format loop messages. replay_reas
agent/src/providers/openai_codex.py:466
↓ 6 callersFunction_daily
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_5m_session.py:73
↓ 6 callersFunction_decimal
(value: Any, default: Decimal = Decimal("0"))
agent/src/portfolio/service.py:147
↓ 6 callersFunction_dedupe_finish_reason
Relays (OpenRouter) emit finish_reason per chunk; AIMessageChunk.__add__ concatenates into 'stopstop', 'tool_callstool_calls', etc. Return the
agent/src/providers/chat.py:54
↓ 6 callersMethod_delta_chunk
(self, delta: dict, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:320
↓ 6 callersFunction_detect_market_for_align
Lightweight market detection for ffill_limit calculation.
agent/backtest/engines/base.py:135
↓ 6 callersFunction_df
()
agent/tests/test_price_caliber.py:23
↓ 6 callersFunction_draft
()
agent/tests/test_scheduled_research_confirmation.py:20
↓ 6 callersMethod_emit_event
Persist an event and forward to live callback if registered. Args: run_id: Run identifier. event: Event to persist.
agent/src/swarm/runtime.py:472
↓ 6 callersFunction_enable_tap
(monkeypatch, fake_forward)
agent/tests/test_alpaca_tap_routing.py:164
↓ 6 callersFunction_encode
Serialize a quantlib result into JSON-safe data. Dataclasses become dicts, enums become their value, numpy and pandas objects become plain co
agent/src/tools/quantlib_tool.py:182
↓ 6 callersMethod_ensure_fallback_workers
(self)
agent/src/channels/mochat.py:616
↓ 6 callersFunction_envelope
Build the standard JSON response.
agent/src/tools/doc_reader_tool.py:87
↓ 6 callersFunction_envelope
Common payload header stamped on every read result.
agent/src/trading/connectors/mt5/reads.py:46
↓ 6 callersFunction_equity_rows
(count: int)
agent/tests/test_backtest_summary.py:68
↓ 6 callersFunction_err
(msg: str)
agent/src/factors/cli_handlers.py:136
↓ 6 callersFunction_exact
Convert any numeric to an exact Decimal, avoiding float binary traps. Raises: ValueError: If ``value`` is a bool or is NaN / infinite, so
agent/src/tools/financial_rigor_tool.py:63
↓ 6 callersFunction_exchange
Build a ccxt Binance client bound to the configured market/environment.
agent/src/trading/connectors/binance/sdk.py:799
↓ 6 callersFunction_execute_key_gated
Run a key-gated MCP tool, preserving its env-var-named error. If a credential is missing, use the tool's own actionable error response. Args
agent/mcp_server.py:2180
↓ 6 callersFunction_export
(columns: list[str], rows: list[dict[str, str]])
agent/tests/test_extraetf_reader.py:131
↓ 6 callersFunction_extract_product
Extract product code from futures symbol. Handles CME conventions: - Product + month-code + year: ESZ4, CLF25, GCM2025 - Product + Y
agent/backtest/engines/global_futures.py:138
↓ 6 callersFunction_fetch_price_series
Fetch daily price frames for each code via the loader fallback chains. Args: codes: Asset codes as supplied by the caller (used as result
agent/backtest/correlation.py:268
↓ 6 callersFunction_fixture_5m
(day: str = _DAY)
agent/tests/test_paper_trade_5m_session.py:31
↓ 6 callersFunction_formula_in_note
Find the derivation a note states. The whole note is tried first, then each segment between result separators ("0.666 × 0.97 = 0.646"); separ
agent/src/agent/grounding/policies.py:436
↓ 6 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_tool.py:106
↓ 6 callersFunction_frame
(rows, codes=("A", "B"))
agent/tests/test_rebalance_notes.py:18
↓ 6 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_golden_cn_a.py:68
↓ 6 callersMethod_from_row
(row: sqlite3.Row)
agent/src/research_artifacts/store.py:132
↓ 6 callersFunction_fts_payload
Wrap hits in the full-text-search envelope shape.
agent/tests/test_institutional_holdings_tool.py:158
↓ 6 callersFunction_get
( cfg: TossConfig, path: str, *, authed: bool, account_scoped: bool, params: Mapping[s
agent/src/trading/connectors/toss/sdk.py:504
↓ 6 callersFunction_get_codex_token
Return a usable Vibe-owned token, refreshing once when required. Args: force_refresh: Refresh even when the local expiry clock is still f
agent/src/providers/openai_codex.py:330
↓ 6 callersMethod_get_conn
Get or create SQLite connection with WAL mode.
agent/src/memory/search_index.py:229
↓ 6 callersFunction_get_goal_store
Return the shared finance goal store.
agent/src/api/sessions_routes.py:241
↓ 6 callersFunction_get_json
Throttled GET returning decoded JSON. Args: url: Fully-qualified endpoint URL. host_key: Throttle bucket, one of the module's two
agent/src/tools/prediction_market_tool.py:241
↓ 6 callersFunction_get_swarm_runtime
Lazy-init SwarmRuntime singleton.
agent/src/api/swarm_routes.py:21
↓ 6 callersFunction_gildata_symbol
Translate a project symbol into Gildata's A-share convention. Gildata A-share tools accept ``代码.交易所后缀`` with the SH/SZ/BJ suffixes. The proje
agent/backtest/loaders/gildata_loader.py:119
↓ 6 callersFunction_grid
Return a compact display grid for tests.
agent/tests/test_options_payoff.py:24
↓ 6 callersFunction_group_codes_by_market
Group symbols by detected market type. Args: codes: List of symbol strings. Returns: Mapping market_type -> list of codes.
agent/backtest/runner.py:884
↓ 6 callersFunction_guard
(adapter)
agent/tests/test_enforcement_l6.py:247
↓ 6 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/runs_routes.py:864
↓ 6 callersFunction_hourly_index
(start: str = "2026-01-02", periods: int = 24)
agent/tests/test_shadow_account.py:2065
↓ 6 callersFunction_infer_market_from_symbol
Best-effort market inference from a symbol string.
agent/src/tools/trade_journal_parsers.py:694
↓ 6 callersFunction_install_urlopen
Route ``urllib.request.urlopen`` to ``handler(req)`` and record calls. Returns the call log: a list of ``(method, url, header_names)`` tuples.
agent/tests/test_tap_forward.py:50
↓ 6 callersFunction_intent_with_quantity
(quantity: float)
agent/tests/test_mandate_forex.py:269
↓ 6 callersFunction_intraday
(day: str, prices: dict[str, float], auction: float | None = None)
agent/tests/test_paper_trade_5m_session.py:44
↓ 6 callersFunction_is_index
Detect A-share index symbols (000xxx.SH, 000300.SH, 399xxx.SZ).
agent/backtest/loaders/tushare.py:88
↓ 6 callersFunction_is_local_client
Return whether the request originates from a loopback client.
agent/src/api/security.py:507
↓ 6 callersFunction_kinds
(report: ReconcileReport)
agent/tests/test_runtime_reconcile.py:74
↓ 6 callersFunction_leaf_name
The last field name of an evidence path, without its list index.
agent/src/agent/grounding/evidence.py:453
↓ 6 callersFunction_limit
(value: Any)
agent/src/tools/br_market_data_tool.py:41
↓ 6 callersFunction_lines_with_offsets
Return each line of ``content`` with its character offset in it.
agent/src/agent/grounding/figures.py:335
↓ 6 callersFunction_live_api_call
Call an R6 live-runner endpoint and decode the JSON response. Args: method: HTTP verb (``"GET"`` or ``"POST"``). path: Endpoint p
agent/cli/_legacy.py:3157
↓ 6 callersFunction_load_equity
Load equity curve from artifacts/equity.csv.
agent/backtest/validation.py:412
↓ 6 callersFunction_load_optimizer
Dynamically load an optimizer function from config. Args: config: Backtest configuration. Returns: Optimizer callable, or No
agent/backtest/engines/base.py:370
↓ 6 callersFunction_local_client
Return a TestClient that simulates a loopback caller.
agent/tests/test_sse_ticket_and_headers.py:19
↓ 6 callersFunction_local_plugin_call
Call a read operation on a user-installed local connector adapter.
agent/src/trading/service.py:153
↓ 6 callersFunction_maintenance_rate
Look up tiered maintenance margin rate.
agent/backtest/engines/_market_hooks.py:473
↓ 6 callersFunction_make_agent_config
Build an AgentConfig from a server-name → config-dict map.
agent/tests/test_swarm_m2_registry_assembly.py:38
↓ 6 callersFunction_make_agent_json
Write a minimal agent.json config pointing at the fake stdio server. Args: tmp_path: Temporary directory to place the config file in.
agent/tests/test_mcp_stdio_integration.py:50
↓ 6 callersFunction_make_bar
(close: float = 180.0)
agent/tests/test_global_equity_engine.py:24
↓ 6 callersFunction_make_fake_wrappers
Build lightweight MCPRemoteTool stubs without a live adapter.
agent/tests/test_registry_mcp_integration.py:28
↓ 6 callersFunction_mandate
( *, instruments: tuple[InstrumentType, ...], asset_classes: tuple[AssetClass, ...], min_marke
agent/tests/test_mandate_forex.py:49
↓ 6 callersMethod_matches_evidence
Whether a figure equals evidence, at its own scale or a metric's. ``direct`` is compared literally. ``scaled`` absorbs fraction vs percent
agent/src/agent/grounding/policies.py:1602
↓ 6 callersFunction_min_interval
Resolve the per-call minimum spacing, honoring the env override.
agent/backtest/loaders/yahoo_client.py:67
↓ 6 callersMethod_minimal
(self, tmp_path: Path)
agent/tests/test_research_playbooks.py:308
↓ 6 callersFunction_mock_quote
(monkeypatch, last: float)
agent/tests/test_sdk_connectors_upbit.py:56
↓ 6 callersFunction_norm_text
文本归一化:NFKC 折叠全角/半角 + 去除内部空白。 应用场景(CR P2):新浪页面会出现“5%以上股东”、“控股 股东”等变体, 原吝始“kw in text”会漏命中。归一化后“5%”→“5%”,中文间空格被吃掉。
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:100
↓ 6 callersMethod_normalize
Normalize AKShare DataFrame to standard OHLCV schema. AKShare Chinese column names: 日期, 开盘, 最高, 最低, 收盘, 成交量 AKShare English column na
agent/backtest/loaders/akshare_loader.py:419
↓ 6 callersFunction_normalize_codes
Normalize symbol strings for a source. Args: codes: Raw code list. source: Data source. Returns: Normalized codes.
agent/backtest/runner.py:934
↓ 6 callersFunction_normalize_date
Normalize a calendar date to ``YYYY-MM-DD``. The connector documents ``YYYY-MM-DD`` parameters, but the stored ``cal_date`` spelling is unver
agent/src/tools/paper_trade/calendar.py:202
↓ 6 callersMethod_normalize_signal_id
Normalize Signal identifiers (phone/uuid/service-id) for matching.
agent/src/channels/signal.py:1062
↓ 6 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/okx/sdk.py:658
↓ 6 callersFunction_open
(date, legs, underlying="SPY")
agent/tests/test_options_margin.py:47
↓ 6 callersFunction_order
(guard: order_guard.LiveOrderGuardTool, **extra: Any)
agent/tests/test_robinhood_live_account_binding.py:77
↓ 6 callersFunction_packaged_version
()
agent/tests/test_release_version_consistency.py:34
↓ 6 callersMethod_paginate
( self, session: requests.Session, endpoint: str, inst_id: str, start_
agent/backtest/loaders/okx.py:267
↓ 6 callersFunction_panel
(high_age=0, low_age=0, rows=N)
agent/tests/factors/test_gtja191_highday_lowday_recency.py:31
↓ 6 callersMethod_patch_transport
(self, monkeypatch, side_effect)
agent/tests/test_fund_nav_tool.py:96
↓ 6 callersFunction_payload
Build a TIME_SERIES_DAILY-shaped payload from (date, o, h, l, c, v) tuples.
agent/tests/test_alphavantage_loader.py:16
↓ 6 callersMethod_pin
(self, monkeypatch, module)
agent/tests/test_strategy_store.py:1413
↓ 6 callersFunction_pos
(direction: int, leverage: float = 1.0, entry: float = 100.0, size: float = 10.0)
agent/tests/test_market_hooks_liquidation.py:21
↓ 6 callersFunction_prepare_bench_panel
Load only the declared PIT fundamental inputs for the selected factors. Args: registry: Registry holding the factors being evaluated.
agent/src/tools/alpha_bench_tool.py:876
↓ 6 callersFunction_price_features_as_of
Compute price-context features as-of *buy_dt* from a price frame. Every value is read from completed daily bars strictly before the buy date;
agent/src/shadow_account/extractor.py:218
↓ 6 callersFunction_price_field_for_path
Map a generic evidence JSON path to a canonical price field. Args: path: Recorded evidence field, e.g. ``"data.quote[0].last_price"``.
agent/src/agent/grounding/evidence.py:459
↓ 6 callersMethod_price_records
Return observed OHLC/price evidence only.
agent/src/agent/grounding/evidence.py:1508
↓ 6 callersFunction_profile
()
agent/tests/test_shadow_result_cache.py:22
↓ 6 callersFunction_profile
()
agent/tests/test_shadow_attribution.py:19
↓ 6 callersFunction_profile_id
Normalize an optional connector profile id.
agent/cli/_legacy.py:3984
↓ 6 callersMethod_prompt_cache_request
Return the messages and call kwargs to send, with cache markers when they apply. Markers are added only for the direct Anthropic adapter, onl
agent/src/providers/chat.py:396
← previousnext →1,401–1,500 of 26,887, ranked by callers