MCPcopy Create free account

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

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

↓ 3 callersFunction_div
(dt: str, symbol: str, amount: float)
agent/tests/test_trade_journal_currency_pools.py:100
↓ 3 callersFunction_dividend_rec
(dt: str, symbol: str, amount: float, market: str = "china_a")
agent/tests/test_trade_journal.py:495
↓ 3 callersFunction_drawdown
(port: pd.Series)
agent/backtest/risk_xray.py:262
↓ 3 callersFunction_drive_worker
( tmp_path: Path, llm: _ScriptedLLM, *, tools: list[str], max_iterations: int = 3, can
agent/tests/test_swarm_cache_source.py:306
↓ 3 callersFunction_effective_fee_model
()
agent/tests/test_paper_trade_multiday.py:93
↓ 3 callersFunction_email_pdf_password_configured
Read only whether the private Email PDF password is configured.
agent/src/api/scheduled_routes.py:435
↓ 3 callersMethod_emit_session_event
Forward swarm status to the hosting session SSE channel if present.
agent/src/tools/swarm_tool.py:527
↓ 3 callersFunction_engine_trade_rows
Entry+exit row pairs, exactly as the engine writer emits them.
agent/tests/test_strategy_discovery_harness.py:211
↓ 3 callersFunction_ensure_not_system_job
Refuse any proposal that would create, replace or cancel a system job. ``system:``-prefixed ids are seeded and repaired only by :func:`src.sc
agent/src/scheduled_research/proposals.py:89
↓ 3 callersFunction_ensure_session_id
Return a host-owned session id, registering the session record if new. The research-goal tools are registered unconditionally and resolve their
agent/cli/_legacy.py:1038
↓ 3 callersFunction_envelope
Serialize an envelope whose ``record_key`` list is paged to fit one result.
agent/src/tools/institutional_holdings_tool.py:1690
↓ 3 callersFunction_envelope
(out: str)
agent/tests/test_alpha_bench_meta_survivorship.py:82
↓ 3 callersFunction_epoch_seconds
Convert a ``YYYY-MM-DD`` date to UTC midnight epoch seconds. Computed from the parsed calendar date (not ``time.time()``) so the window is re
agent/backtest/loaders/yahoo_loader.py:122
↓ 3 callersFunction_equity_curve_with_zero
An equity curve that hits zero then recovers (e.g. a margin call + reset).
agent/tests/test_metrics_inf_zero_equity.py:43
↓ 3 callersFunction_err
(msg: str)
agent/src/hypotheses/cli_handlers.py:57
↓ 3 callersFunction_error
Build the failure envelope as a JSON string. Args: message: Human-readable error description. Returns: A ``{"ok": false, "er
agent/src/tools/sector_tool.py:56
↓ 3 callersFunction_error
(exc: Exception)
agent/src/tools/research_artifact_tool.py:16
↓ 3 callersFunction_error
Render a failure envelope as a JSON string.
agent/src/tools/institutional_holdings_tool.py:1685
↓ 3 callersFunction_error
Standard error envelope shared with the other agent tool modules.
agent/src/strategy_discovery/facade.py:79
↓ 3 callersFunction_error_envelope_message
Return the error string when a broker call failed via envelope. The MCP adapter converts a failed remote call into ``{"status": "error", "err
agent/src/live/runtime/flatten.py:451
↓ 3 callersMethod_evaluate_and_liquidate
( self, timestamp: pd.Timestamp, price_field: str )
agent/backtest/engines/crypto.py:328
↓ 3 callersFunction_events
(rows: list[tuple[str, str, str, float, str, str]])
agent/tests/test_rsshub_events_lookahead.py:32
↓ 3 callersFunction_exact_decimal
(value)
agent/src/live/sdk_order_gate.py:791
↓ 3 callersFunction_exchange_for
Map the project suffix to the broker exchange code (NSE / BSE).
agent/backtest/loaders/india_broker_loader.py:85
↓ 3 callersFunction_execute
(manager: BackgroundManager, task_id: str, command: str)
agent/tests/test_background_tools.py:21
↓ 3 callersMethod_execute_open_order
Commit a previously priced opening order.
agent/backtest/engines/base.py:2125
↓ 3 callersFunction_extract_post_content
Extract text and image keys from Feishu post (rich text) message. Handles three payload shapes: - Direct: {"title": "...", "content": [[..
agent/src/channels/feishu.py:305
↓ 3 callersFunction_extract_reference_links
Return every markdown link target containing ``references/``. Args: skill: Skill directory name (e.g. ``tushare``). Returns:
agent/tests/test_skill_reference_links.py:70
↓ 3 callersFunction_extract_rules
Cluster profitable roundtrips, derive one rule per dense cluster.
agent/src/shadow_account/extractor.py:329
↓ 3 callersMethod_extract_symbol_arguments
Extract model-selected identities from well-known argument keys.
agent/src/agent/grounding/identity.py:999
↓ 3 callersFunction_extract_text_content
Join text content blocks from a FastMCP response. Args: content: Content block list. Returns: Joined text block content.
agent/src/tools/mcp.py:1346
↓ 3 callersFunction_fake_response
(text: str, status_ok: bool = True)
agent/tests/test_sina_loader.py:142
↓ 3 callersFunction_feishu_section
(**overrides: Any)
agent/tests/test_channels_config_api.py:161
↓ 3 callersMethod_fetch_a_share
Fetch A-share via stock_zh_a_hist.
agent/backtest/loaders/akshare_loader.py:232
↓ 3 callersMethod_fetch_candles
Paginated candle download (history endpoint for deep ranges).
agent/backtest/loaders/okx.py:220
↓ 3 callersFunction_figure_reasons
(result)
agent/tests/test_grounding_backtest_outputs.py:166
↓ 3 callersFunction_file_hash
(path: Path)
agent/backtest/run_card.py:273
↓ 3 callersFunction_file_sha256
Hex SHA-256 of a file's bytes, or None when it cannot be read.
agent/src/agent/grounding/evidence.py:256
↓ 3 callersFunction_fill
Apply a relative impact to a price and return the fill. Args: prices: Validated reference prices as a float array. direction: 1 t
agent/src/quantlib/impact.py:152
↓ 3 callersFunction_filter_df
()
agent/tests/test_trade_journal.py:586
↓ 3 callersMethod_finalize_tool_result
Record a tool result: update memory, append message, write trace, emit event. Args: tc: Tool call object. result: Raw
agent/src/agent/tool_lifecycle.py:796
↓ 3 callersFunction_find_column
Match a header name against aliases, case-insensitively.
agent/src/strategy_discovery/run_artifacts.py:94
↓ 3 callersMethod_finish_run
Record one attempt's outcome and persist the terminal state. Shared by the prompt path — *now_ms* is the firing time, dispatch return
agent/src/scheduled_research/executor.py:453
↓ 3 callersFunction_flat_bars
(periods: int)
agent/tests/test_dropped_target_adjustments.py:34
↓ 3 callersFunction_flat_frames
Per-symbol flat 100.0 frame: ``bars`` business days ending ``end_day``. Flat closes keep the T4 detector silent (close-to-close ratio 1.0 — no
agent/tests/test_paper_trade_perf.py:78
↓ 3 callersFunction_forbid_spawn
Fail the test if anything starts a process from a print path. The original implementation launched `cli._legacy serve` detached, with stdout
agent/tests/test_cli_backtest_summary.py:26
↓ 3 callersFunction_force
Call _plan_open_order in a way that triggers exactly `reason`.
agent/tests/test_plan_rejected.py:83
↓ 3 callersFunction_format_result
Format a SwarmRun into a JSON result string. Args: run: SwarmRun instance. preset: Matched preset name. variables: Extrac
agent/src/tools/swarm_tool.py:765
↓ 3 callersFunction_format_tool_result_preview
Smart-format tool result preview.
agent/cli/_legacy.py:913
↓ 3 callersFunction_forward
Forward returns readable on ``rows`` only; every other row is all-NaN.
agent/tests/quantlib/test_combination_single_ic_std.py:35
↓ 3 callersFunction_frame
(day: str, close: float)
agent/tests/test_paper_trade_purity.py:102
↓ 3 callersFunction_frame
(rows)
agent/tests/test_trade_journal_reversal_fees.py:11
↓ 3 callersMethod_frame
(n=260)
agent/tests/test_warmup_window.py:261
↓ 3 callersMethod_fsync_dir
Fsync a directory so new/renamed entries survive a crash. Args: directory: Directory whose entry table should be flushed.
agent/src/agent/trace.py:269
↓ 3 callersFunction_futu
(code: str, market: str, currency: str)
agent/tests/test_portfolio_futu_prefixed_codes.py:11
↓ 3 callersFunction_futu_config
()
agent/tests/test_position_read_error_envelope.py:44
↓ 3 callersFunction_future_expiry
()
agent/tests/test_runtime_runner.py:86
↓ 3 callersFunction_futures_engine
(*, allow: bool)
agent/tests/test_nonpositive_prices.py:225
↓ 3 callersMethod_get_alpha_registry
Return the Alpha Zoo registry, tolerating a failed zoo load. The default resolution goes through the process-wide ``get_default_regis
agent/src/strategy_discovery/facade.py:232
↓ 3 callersFunction_get_client
()
agent/skills/ashare-mootdx/references/a_mootdx_fetcher.py:17
↓ 3 callersFunction_get_emitter
Return the active emitter on the current thread, if any.
agent/src/agent/progress.py:84
↓ 3 callersFunction_get_facade
Construct the facade lazily so importing this module never touches the strategy-discovery storage layer until a tool actually runs.
agent/src/tools/strategy_discovery_tool.py:50
↓ 3 callersMethod_get_messages
Return the request's message list, or an empty list.
agent/src/openbb_bridge/adapter.py:269
↓ 3 callersMethod_get_sdm_store
Return the SDM store, lazily importing the shared singleton.
agent/src/strategy_discovery/facade.py:180
↓ 3 callersMethod_get_state_dir
(self)
agent/src/channels/weixin.py:177
↓ 3 callersMethod_global_bool
Read a global boolean from the top-level channels config.
agent/src/channels/manager.py:204
↓ 3 callersFunction_group_codes_by_source
Group symbols by inferred source (back-compat). Args: codes: List of symbol strings. Returns: Mapping source -> list of code
agent/backtest/runner.py:900
↓ 3 callersFunction_handle_swarm_command
Route swarm sub-commands.
agent/cli/_legacy.py:2012
↓ 3 callersFunction_has_control_characters
Report whether text carries characters that are corruption, not content. C0 controls (below 32), DEL and the C1 block are all refused. None of th
agent/src/portfolio/extraetf.py:680
↓ 3 callersFunction_hold
Give the composite a HOSE position with fill evidence.
agent/tests/test_composite_vietnam_rules.py:39
↓ 3 callersMethod_hold_locked
Whether a settled record must survive a non-conclusive resolver step. A repeat resolution that fails, is refused or comes back empty carries
agent/src/agent/grounding/identity.py:652
↓ 3 callersFunction_host
Return the ``api_server`` host module for late-access attribute reads.
agent/src/api/channels_config_routes.py:115
↓ 3 callersFunction_id
(prefix: str)
agent/src/goal/store.py:59
↓ 3 callersMethod_id_matches_account
Return True when an identifier refers to the bot account.
agent/src/channels/signal.py:1108
↓ 3 callersFunction_import_mt5
Lazy-import the Windows-only SDK; ``None`` when absent.
agent/backtest/loaders/mt5_loader.py:58
↓ 3 callersFunction_index_level_at
Look up one date in an index lookup table, or fail loudly. Args: lookup: Table built by :func:`_index_levels_by_date`. day: Date
agent/src/quantlib/fundmath.py:1392
↓ 3 callersFunction_index_levels_by_date
Build a date -> level lookup table from a public index series. Args: index_levels: Public-market index levels, a ``pandas.Series`` whose
agent/src/quantlib/fundmath.py:1344
↓ 3 callersFunction_index_normalized
Spell dotted collection indices with brackets (``a.0.b`` -> ``a[0].b``).
agent/src/agent/grounding/policies.py:60
↓ 3 callersFunction_inputs
()
agent/tests/quantlib/test_factormodel_negative_specific_variance.py:11
↓ 3 callersFunction_install_fake_baostock
(monkeypatch: pytest.MonkeyPatch, fake: Any)
agent/tests/factors/test_valuation_baostock_fallback.py:82
↓ 3 callersFunction_install_fake_ddgs
Replace the ``ddgs`` module so no HTTP request can be issued.
agent/tests/test_tools_type_value_safety.py:263
↓ 3 callersFunction_install_fake_popen
(monkeypatch: pytest.MonkeyPatch, popen: _FakePopen)
agent/tests/test_bash_tool.py:54
↓ 3 callersFunction_install_fake_tushare
Install deterministic credentials and an in-memory Tushare module.
agent/tests/test_alpha_bench_universe_metadata.py:50
↓ 3 callersMethod_instance
(self, model: str = "kimi-k2-thinking")
agent/tests/test_kimi_reasoning_content.py:203
↓ 3 callersFunction_instrument_id
(item: dict[str, Any])
agent/src/trading/connectors/etoro/instruments.py:487
↓ 3 callersFunction_instrument_type_id
(item: dict[str, Any])
agent/src/trading/connectors/etoro/instruments.py:401
↓ 3 callersFunction_intraday
(day: str, prices: dict[str, float], auction: float | None = None)
agent/tests/test_paper_trade_5m_engine.py:47
↓ 3 callersFunction_is_anthropic_temperature_unsupported_error
Return True when an Anthropic error reports `temperature` as unsupported. Matches the model-level deprecation ("`temperature` is deprecated for t
agent/src/providers/llm.py:1063
↓ 3 callersFunction_is_cn_index
Detect CN index symbols served by ``IndexDailyQuote``.
agent/backtest/loaders/gildata_loader.py:90
↓ 3 callersFunction_is_currency_word
Whether a CJK run is short enough to be a currency word and holds a money mark.
agent/src/agent/grounding/figures.py:691
↓ 3 callersMethod_is_direct_room
(self, room: MatrixRoom)
agent/src/channels/matrix.py:750
↓ 3 callersFunction_is_forbidden_module_path
Return True when a dotted module path names a forbidden module or subtree. Args: name: Dotted module path, e.g. ``socket`` or ``src.tradi
agent/backtest/runner.py:424
↓ 3 callersFunction_is_metadata_count_leaf
Whether an evidence leaf is a sample size, window or duration. Args: path: Recorded evidence field, e.g. ``"stats.return_observations"``.
agent/src/agent/grounding/evidence.py:472
↓ 3 callersFunction_is_numeric_pick
Return the chosen ordinal if ``text`` is a bare numeric pick, else None. Only a turn that is *exactly* a positive integer (e.g. ``"2"``) counts a
agent/cli/main.py:987
↓ 3 callersFunction_is_pipe_row
(line: str)
agent/cli/ui/transcript.py:117
↓ 3 callersFunction_is_private
Check whether *addr* is non-globally-routable (private/internal/mesh). ``addr.is_global`` is False for loopback, link-local, RFC 1918 private,
agent/src/channels/utils.py:210
↓ 3 callersFunction_is_real_number
Return whether ``value`` is a non-bool int/float.
agent/src/live/mandate/commit.py:52
↓ 3 callersFunction_is_spa_html_route
Return True when *path* corresponds to a frontend SPA page that shadows an API endpoint and should fall back to ``index.html`` on browser navi
agent/src/api/helpers.py:47
↓ 3 callersMethod_is_tool_readonly
Return whether a tool is known to be side-effect free.
agent/src/agent/tool_lifecycle.py:704
↓ 3 callersMethod_is_trusted_service_url
Return True for HTTPS Bot Framework service URLs trusted for bearer replies.
agent/src/channels/msteams.py:704
← previousnext →2,801–2,900 of 26,887, ranked by callers