MCPcopy Create free account

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

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

↓ 2 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/api/test_run_detail_offload.py:16
↓ 2 callersFunction_client_config
Build a ``TigerOpenClientConfig`` from connector settings.
agent/src/trading/connectors/tiger/sdk.py:559
↓ 2 callersFunction_client_options
Return explicit SDK options without disabling stored CLI credentials.
agent/src/providers/copilot_auth.py:67
↓ 2 callersFunction_client_returning
(responses: list[_Response], sent: list[dict])
agent/tests/test_openai_codex_replay.py:223
↓ 2 callersFunction_client_rows
Two ascending bars in eastmoney_client.fetch_kline output shape.
agent/tests/test_eastmoney_loader.py:22
↓ 2 callersFunction_clip_preserve
(text: str, limit: int)
agent/cli/ui/rail.py:222
↓ 2 callersFunction_clob_market_to_gamma_shape
Re-key a CLOB market object onto the gamma field names. The CLOB ``/markets/<conditionId>`` response uses snake_case and nests outcomes under
agent/src/tools/prediction_market_tool.py:742
↓ 2 callersFunction_close
Send an opposite deal pinned to the position ticket (risk-reducing only).
agent/src/trading/connectors/mt5/orders.py:339
↓ 2 callersFunction_close
Whether two values agree inside the evidence tolerance.
agent/src/agent/grounding/policies.py:133
↓ 2 callersMethod_close_candidates
Return unique clients this wrapper is responsible for closing.
agent/src/providers/chat.py:416
↓ 2 callersMethod_close_once
(self)
agent/src/providers/stream_guard.py:80
↓ 2 callersMethod_close_price
(self, day: str, sym_data: data.SymbolData)
agent/src/tools/paper_trade/engine.py:381
↓ 2 callersFunction_close_series
Extract the close-price series from a loader frame, date-indexed and sorted. Supports ``trade_date`` as the index name, as a column, or a plain
agent/backtest/correlation.py:151
↓ 2 callersFunction_closed_page
(orders: list[dict], *, has_next: bool, next_cursor: str | None = None)
agent/tests/test_sdk_connectors_toss.py:182
↓ 2 callersFunction_cn_a_open_map
Query the CH calendar once and reduce rows to {date: is_open}. The table carries one row per exchange per date; SSE and SZSE share the cn_a h
agent/src/tools/paper_trade/calendar.py:219
↓ 2 callersFunction_cn_code_and_secid
Split an A-share fund symbol into its bare code and Eastmoney secid. A bare six-digit code carries no exchange, so the exchange is derived from
agent/src/tools/etf_holdings_tool.py:275
↓ 2 callersFunction_code_to_symbol
(code: str)
agent/skills/ashare-mootdx/references/a_mootdx_fetcher.py:20
↓ 2 callersFunction_codex_refresh_lock
Serialize refresh-token rotation across threads and processes.
agent/src/providers/openai_codex.py:154
↓ 2 callersFunction_coerce_expiration
Coerce an epoch-second expiration to ``int``; ``None`` when absent/bad.
agent/src/tools/options_chain_tool.py:143
↓ 2 callersFunction_coerce_float
Coerce a raw provider cell to ``float``, ``None`` on missing/garbage.
agent/src/tools/southbound_tool.py:73
↓ 2 callersFunction_coerce_float
Coerce a raw Eastmoney numeric cell to ``float`` or ``None``. Args: value: Raw value from the payload (number, numeric string, or sentine
agent/src/tools/northbound_tool.py:49
↓ 2 callersFunction_coerce_int
Coerce an integer parameter; raise ``ValueError`` on bad input.
agent/src/tools/strategy_discovery_tool.py:70
↓ 2 callersFunction_coerce_legs
Parse and validate raw JSON-style leg objects.
agent/src/tools/options_payoff_tool.py:233
↓ 2 callersFunction_coerce_limit
Clamp a requested row limit into the supported range. Args: value: Raw ``limit`` argument (may be missing, a string, or a number). R
agent/src/tools/iwencai_tool.py:52
↓ 2 callersFunction_coerce_position_rows
Normalize a positions payload to a list of position dicts.
agent/src/live/enforcement.py:348
↓ 2 callersFunction_collect_banner_stats
Return the four banner stat values, computing them at most once. The interactive launch path runs every probe synchronously (the user is alre
agent/cli/main.py:191
↓ 2 callersMethod_collect_tool_call_thought_signatures
(cls, tool_calls: Any)
agent/src/providers/llm.py:407
↓ 2 callersFunction_collisions
Describe every dataclass/NamedTuple field shadowed by a class-body binding.
agent/tests/test_dataclass_field_name_collisions.py:112
↓ 2 callersFunction_colored
(value: float, text: str)
agent/src/shadow_account/pdf_fallback.py:67
↓ 2 callersFunction_columns_required_from_factor_spec
Extract ``columns_required`` from supported factor spec shapes. Args: spec: Factor metadata as a dict, an Alpha-like object with ``meta``
agent/backtest/runner.py:959
↓ 2 callersFunction_compact
Format a date as Eastmoney's ``YYYY-MM-DD`` filter literal.
agent/src/tools/lockup_expiry_tool.py:52
↓ 2 callersMethod_compact_to_budget
Run the compaction layers the prompt has actually grown into. Args: messages: Message list, mutated in place. run_dir
agent/src/agent/loop.py:1349
↓ 2 callersFunction_comparable_text
(value: Any)
agent/src/agent/resolution_context.py:177
↓ 2 callersFunction_comparison_ledger
A ledger holding quotes for two instruments, as a comparison run does.
agent/tests/test_agent_grounding.py:2185
↓ 2 callersFunction_compute_derived
(derived: Any, dependencies: dict[str, pd.DataFrame])
agent/backtest/loaders/fundamentals_loader.py:406
↓ 2 callersFunction_compute_manifest_hash
Hash the run composition (NOT ``run_id``/``timestamp`` — see module docstring). ``tools.tools_hash`` alone (rather than re-embedding the full nam
agent/src/governance/manifest.py:193
↓ 2 callersFunction_conditional_coverage_result
Combine coverage and independence evaluated on the same sample.
agent/src/quantlib/var_backtest.py:526
↓ 2 callersMethod_config
(**over)
agent/tests/test_local_source_routing.py:228
↓ 2 callersFunction_config_error
(problems: List[str])
agent/backtest/engines/argentina_equity.py:853
↓ 2 callersFunction_configure_llm_preflight
Install a minimal OpenAI-compatible provider environment for preflight tests.
agent/tests/test_preflight.py:12
↓ 2 callersFunction_configured_db_path
Return the configured snapshot path, or the container default. Returns: ``VIBE_TW_STOCK_DB`` when set, otherwise :data:`DEFAULT_DB_PATH`.
agent/src/tools/taiwan_stock_data_tool.py:22
↓ 2 callersFunction_connect_with_timeout
Bound SDK 0.9.3/0.9.4 connections while preserving SDK host routing. Args: timeout: Connection deadline in seconds. api_key: SDK
agent/backtest/loaders/baostock_loader.py:106
↓ 2 callersFunction_console
Return the shared CLI console.
agent/cli/commands/strategy_evidence.py:27
↓ 2 callersFunction_console
Return the shared CLI console.
agent/cli/commands/institutional/runner.py:48
↓ 2 callersFunction_constant_weights
(names: list[str], index: pd.Index, values: Mapping[str, float])
agent/src/quantlib/combination.py:202
↓ 2 callersMethod_consume_readonly_replay_visibility
Release replay leases once a successful model request carried them.
agent/src/agent/tool_lifecycle.py:736
↓ 2 callersFunction_contained
Refuse artifacts whose resolved destination escapes the run directory.
agent/src/tools/backtest_summary.py:170
↓ 2 callersFunction_contained_path
Resolve containment using filesystem identity for existing root aliases. A case-insensitive filesystem can resolve ``dropbox`` and ``Dropbox`` to
agent/src/tools/path_utils.py:54
↓ 2 callersMethod_context_budget
Compaction thresholds for the active model's real context window.
agent/src/agent/loop.py:1327
↓ 2 callersFunction_context_module
()
agent/tests/test_strategy_discovery_routing.py:64
↓ 2 callersFunction_contract_to_dict
(contract: Any)
agent/src/trading/connectors/ibkr/local.py:782
↓ 2 callersMethod_convert_input
Re-attach Gemini thought signatures dropped by dict->message conversion. The AgentLoop replays history as OpenAI-format dicts, stamping t
agent/src/providers/llm.py:438
↓ 2 callersMethod_convert_table
Convert a Markdown table to a Slack-readable list.
agent/src/channels/slack.py:770
↓ 2 callersFunction_convert_tools
(tools: list[dict[str, Any]] | None)
agent/src/providers/openai_codex.py:547
↓ 2 callersFunction_correction_line
Render one rejected figure as `written | declared role | evidence`. Args: issue: One figure-scoped validation issue. Returns:
agent/src/agent/grounding/release.py:99
↓ 2 callersFunction_count_audits
Run one runner over ``ticks`` halted ticks; return audit count + kinds.
agent/tests/test_sweep_latch.py:397
↓ 2 callersFunction_counts
Return every code-derived count the READMEs state. Returns: Mapping of badge key to the count the code ships.
agent/tests/test_readme_counts.py:194
↓ 2 callersFunction_cover_page
Render a cover page reporting ``total`` as its ``tableValueTotal``.
agent/tests/test_institutional_holdings_tool.py:172
↓ 2 callersFunction_create_prompt_session
Create a prompt_toolkit PromptSession with history and live toolbar. Args: stats: Session statistics for the live bottom toolbar. Re
agent/cli/_legacy.py:216
↓ 2 callersFunction_create_stale_feature_database
Build a snapshot whose newest indicators lag the newest price bar.
agent/tests/test_taiwan_stock_data_tool.py:362
↓ 2 callersFunction_credential_env_source
Return the env name supplying the selected provider credential.
agent/src/providers/llm.py:892
↓ 2 callersFunction_credential_error_message
(error: LongbridgeCredentialError)
agent/src/trading/connectors/longbridge/sdk.py:285
↓ 2 callersFunction_credential_reference
Return the credential locator implied by a profile's transport. Args: profile_id: Profile backing the connection instance. connec
agent/src/trading/connections.py:96
↓ 2 callersMethod_criterion_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:964
↓ 2 callersMethod_currency_is_surfaced
Return whether a quote currency or an unambiguous alias is visible.
agent/src/agent/grounding/policies.py:2543
↓ 2 callersFunction_currency_prefix_start
Where a currency mark attached to the left of a figure begins ("HK$1.10", "USD 100").
agent/src/agent/grounding/figures.py:1091
↓ 2 callersFunction_d1_d2
Compute the Black-Scholes d1 and d2 terms. Args: S: Underlying spot price. K: Strike price. T: Time to expiry in years.
agent/src/quantlib/options.py:203
↓ 2 callersFunction_daily_page
Build a normalized daily frame indexed by trade date.
agent/tests/test_tencent_loader.py:125
↓ 2 callersFunction_data_client
(cfg: AlpacaConfig)
agent/src/trading/connectors/alpaca/sdk.py:835
↓ 2 callersFunction_data_content
(*payloads: str)
agent/tests/test_openbb_bridge/test_context_injector.py:40
↓ 2 callersFunction_data_feed
Map the configured ``feed`` string to the Alpaca ``DataFeed`` enum.
agent/src/trading/connectors/alpaca/sdk.py:842
↓ 2 callersMethod_database_path
(self)
agent/src/channels/whatsapp.py:298
↓ 2 callersFunction_datacenter_payload
Two daily rows in the Eastmoney RZRQ datacenter response shape.
agent/tests/test_margin_trading_tool.py:18
↓ 2 callersMethod_day_gate
(self, day: DayPlan, order: Order)
agent/src/tools/paper_trade/engine.py:269
↓ 2 callersFunction_deal_to_dict
(row: Mapping[str, Any])
agent/src/trading/connectors/futu/sdk.py:1314
↓ 2 callersFunction_decay_check
(artifact_id: str)
agent/tests/test_backtest_records_bench.py:115
↓ 2 callersFunction_decay_fields
Read-time decay verdict for one evidence row (plan D1/D2). Computed from the row's own ``date_ranges`` window end at query time — never persi
agent/src/strategy_discovery/facade.py:117
↓ 2 callersFunction_decide
Ask the CLI for the next step; refused calls are fed back for a new choice. Every attempt shares one deadline, so feedback retries cannot stretch
agent/src/providers/claude_cli.py:376
↓ 2 callersFunction_decimal
(value: Any)
agent/src/portfolio/compatibility.py:293
↓ 2 callersFunction_declared_currency_ledger
One two-bar quote for ``symbol``; provenance declares ``quote_currency`` if given.
agent/tests/test_agent_grounding.py:3578
↓ 2 callersFunction_declared_universe
(source: str)
agent/src/tools/paper_trade/strategy_exec.py:230
↓ 2 callersMethod_declining_equity
Equity that declines from 1M to 800K (-20%).
agent/tests/test_metrics.py:357
↓ 2 callersFunction_decoded_streams
Read the ASCII85/Flate streams this ReportLab renderer writes.
agent/tests/test_pdf_report_arabic.py:23
↓ 2 callersFunction_default_as_of
Default measurement date for a PME calculation. Uses the terminal valuation mark's own date when the series carries one, because that mark is
agent/src/quantlib/fundmath.py:1443
↓ 2 callersFunction_default_max_iterations
()
agent/src/swarm/worker.py:44
↓ 2 callersFunction_default_output_dir
()
agent/src/tools/alpha_bench_tool.py:1264
↓ 2 callersFunction_default_rates
()
agent/tests/test_mt5_loader.py:41
↓ 2 callersFunction_deny_breach
Audit + return a refusal for a ``check_mandate`` breach.
agent/src/live/sdk_order_gate.py:831
↓ 2 callersMethod_derivation
Evaluate a declaration's note as an observation-anchored formula. Returns the ``(result, operands, points)`` triple when the note is
agent/src/agent/grounding/policies.py:1920
↓ 2 callersFunction_derived_dependencies
(derived: Any)
agent/backtest/loaders/fundamentals_loader.py:401
↓ 2 callersFunction_derived_field
(schema: Any, field: str)
agent/backtest/loaders/fundamentals_loader.py:383
↓ 2 callersFunction_derived_totals_are_complete
Reject snapshots whose derived Binance total omitted an unpriced asset.
agent/src/portfolio/store.py:14
↓ 2 callersFunction_describe_identifier
Describe an export identifier without refusing anything. Args: raw: The raw ``ISIN`` column value. Returns: The identifier a
agent/src/portfolio/extraetf.py:868
↓ 2 callersFunction_design
(x: np.ndarray, weights: np.ndarray)
agent/src/quantlib/neutralization.py:95
↓ 2 callersFunction_desktop_secure_credential_names
Return secrets owned by the desktop host when secure storage is active.
agent/src/api/settings_routes.py:202
↓ 2 callersFunction_desktop_secure_credentials_enabled
()
agent/src/api/settings_routes.py:211
↓ 2 callersMethod_detect
检测单个标的的谐波形态。 优先 pyharmonics,失败则回退内置检测器。 Args: df: OHLCV DataFrame。 Returns: 检测到的形态列表。
agent/src/skills/harmonic/example_signal_engine.py:366
↓ 2 callersMethod_detect_market
(self, code: str)
agent/src/skills/cross-market-strategy/example_signal_engine.py:48
↓ 2 callersMethod_detect_msg_format
Determine the optimal Feishu message format for *content*. Returns one of: - ``"text"`` – plain text, short and no markdown
agent/src/channels/feishu.py:1290
↓ 2 callersFunction_detect_primary_source
Pick primary source for annualization (e.g. bars per year). Args: codes: All symbols. source: Config ``source`` field. Retur
agent/backtest/runner.py:1882
← previousnext →3,701–3,800 of 26,887, ranked by callers