MCPcopy Create free account

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

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

↓ 2 callersFunction_find_matching_position
Find a matching open position. Args: positions: Current open positions. underlying: Underlying instrument code. option_ty
agent/backtest/engines/options_portfolio.py:672
↓ 2 callersMethod_find_required
(records: list[Hypothesis], hypothesis_id: str)
agent/src/hypotheses/registry.py:392
↓ 2 callersFunction_fingerprint
One-way fingerprint for a cache-key component that may carry secrets.
agent/src/tools/mcp.py:72
↓ 2 callersFunction_fingerprint
(payload: CustomProviderTestRequest)
agent/src/api/custom_provider_routes.py:144
↓ 2 callersFunction_finite_float
Parse a finite float, returning ``None`` for invalid values. Args: value: Candidate numeric value. Returns: Parsed finite fl
agent/src/api/runs_routes.py:48
↓ 2 callersFunction_finite_number
Return *value* as a finite float, or ``None`` when it is not one.
agent/src/shadow_account/codegen.py:77
↓ 2 callersFunction_first_existing_env_path
Return the first configured `.env` candidate that exists, if any.
agent/cli/main.py:303
↓ 2 callersFunction_first_positive_float
Return the first present key's value as a positive float, else ``None``.
agent/src/trading/connectors/robinhood/extractor.py:173
↓ 2 callersFunction_fit
(window: np.ndarray)
agent/tests/factors/test_qlib158_regression.py:20
↓ 2 callersFunction_fixture_frame
()
agent/tests/test_paper_trade_multiday.py:70
↓ 2 callersFunction_fixture_frame
()
agent/tests/test_paper_trade_strategy_path.py:71
↓ 2 callersMethod_flag_stale_features
Mark rows whose indicators predate their price bar. The newest price row and the newest feature row are selected independently, so th
agent/src/tools/taiwan_stock_data_tool.py:556
↓ 2 callersFunction_flatten_account_fields
Flatten a remote-MCP account payload into (tag, value) rows. Nested one level (e.g. ``buying_power.buying_power``) rather than recursing arbi
agent/cli/_legacy.py:4760
↓ 2 callersFunction_flatten_columns
Flatten any leftover multi-index columns after symbol selection. Args: frame: Price dataframe. symbol: yfinance symbol used for c
agent/backtest/loaders/yfinance_loader.py:148
↓ 2 callersFunction_flatten_data_map
Convert a fetched ``data_map`` into normalized price rows. Args: data_map: Symbol-keyed frame dictionary returned by ``DataLoader``.
agent/src/ui_services.py:606
↓ 2 callersFunction_flow
(last_full: float, *, ytd: float, prior_ytd: float, month: int = 12)
agent/tests/quantlib/valuation/test_artifact.py:125
↓ 2 callersMethod_flush_delayed_entries
(self, key: str, target_id: str, target_kind: str, reason: str, entry: MochatBufferedEntry | None)
agent/src/channels/mochat.py:783
↓ 2 callersMethod_flush_locked
(self, now: float | None = None)
agent/src/session/checkpoint.py:81
↓ 2 callersMethod_flush_tool_hints
Send any buffered tool hints for *chat_id* as a single message. Tool hints are coalesced to reduce message count and avoid hitting the
agent/src/channels/weixin.py:1033
↓ 2 callersFunction_fmt
Render a large number with K / M / B / T suffixes for readability.
agent/src/tools/financial_rigor_tool.py:78
↓ 2 callersFunction_font_runs
Select embedded fonts by real glyph coverage; never emit missing boxes.
agent/src/tools/pdf_report.py:47
↓ 2 callersFunction_force_stop_process_tree
Force-stop one tracked process tree without draining its pipes.
agent/src/tools/background_tools.py:96
↓ 2 callersMethod_forget_channel
(self, channel_or_id: Any)
agent/src/channels/discord.py:418
↓ 2 callersFunction_format_last_tick
Render a runner's last-tick timestamp as an absolute + relative string. Args: tick: A ``datetime`` or ISO-8601 string from the liveness h
agent/cli/_legacy.py:3606
↓ 2 callersFunction_format_price
Render a price without scientific notation (``%g`` gives "1.23457e+06").
agent/src/agent/grounding/release.py:64
↓ 2 callersMethod_format_result_message
Format the final execution result message. Args: attempt: The terminal attempt. Returns: The reply text show
agent/src/session/service.py:902
↓ 2 callersFunction_format_seconds
Format elapsed seconds for compact terminal display.
agent/cli/_legacy.py:394
↓ 2 callersFunction_format_start_failure
( service_name: str, proc: subprocess.Popen[str], *, command: list[str], ready_url: str,
agent/tests/mcp_http_test_helpers.py:132
↓ 2 callersMethod_format_telegram_error
Return a short, readable error summary for logs.
agent/src/channels/telegram.py:1623
↓ 2 callersFunction_format_tool_call_args
Smart-format tool argument summary.
agent/cli/_legacy.py:893
↓ 2 callersFunction_formula_to_html
(formula: str)
agent/scripts/w4a_patch_blog.py:131
↓ 2 callersMethod_forward_slash_command
( self, interaction: discord.Interaction, command_text: str, )
agent/src/channels/discord.py:157
↓ 2 callersFunction_frame
(seed: int, bars: int = 320)
agent/tests/test_skill_swing_engine_causality.py:29
↓ 2 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_limits.py:49
↓ 2 callersFunction_frame
()
agent/tests/test_journal_inverted_date_filter.py:11
↓ 2 callersFunction_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_determinism.py:104
↓ 2 callersFunction_frame
(rows: Iterable[tuple[str, float]])
agent/tests/test_paper_trade_1d_fingerprint.py:26
↓ 2 callersFunction_frame
()
agent/tests/test_journal_unsupported_filter.py:13
↓ 2 callersFunction_frame
()
agent/tests/factors/test_ts_argext_tie_backend.py:24
↓ 2 callersFunction_frames
Collect every (event, data) frame until the bus closes the stream. ``until_closed_by`` is a timer that clears the session on the bus once the
agent/tests/test_session_events_replay_start.py:45
↓ 2 callersFunction_frames
()
agent/tests/test_trade_journal_fifo.py:51
↓ 2 callersFunction_free_port
Return a loopback port the OS just handed out (free at bind time).
agent/tests/test_channels_config_api.py:180
↓ 2 callersFunction_from_yahoo_symbol
Translate a Yahoo symbol into the project convention + market label. Args: raw_symbol: The Yahoo-side symbol (e.g. ``AAPL``, ``0700.HK``,
agent/src/tools/symbol_search_tool.py:869
↓ 2 callersFunction_fsync_dir
Fsync a directory so a new file's directory entry survives a crash.
agent/src/governance/ledger.py:355
↓ 2 callersFunction_fsync_directory
(directory: Path)
agent/src/live/pending_action.py:382
↓ 2 callersMethod_gc
(self)
agent/src/channelsui/gateway_services.py:48
↓ 2 callersFunction_generic_datetime_cell
Normalize a generic datetime/date cell; Excel serials become ISO datetime.
agent/src/tools/trade_journal_parsers.py:667
↓ 2 callersFunction_get
(cfg: KISConfig, path: str, *, tr_id: str, params: Mapping[str, Any])
agent/src/trading/connectors/kis/sdk.py:754
↓ 2 callersMethod_get_access_token
Get or refresh Access Token.
agent/src/channels/dingtalk.py:296
↓ 2 callersFunction_get_agent_style
Assign a consistent color to each agent.
agent/cli/_legacy.py:2129
↓ 2 callersFunction_get_channel_runtime
Late-access _get_channel_runtime for test monkeypatch compat.
agent/src/api/channels_routes.py:81
↓ 2 callersMethod_get_evidence
(self, evidence_id: str)
agent/src/goal/store.py:932
↓ 2 callersFunction_get_loader
Return a DataLoader class for a source name, with fallback. Args: source: Source name (tushare/okx/yfinance/akshare/ccxt). Returns:
agent/backtest/runner.py:916
↓ 2 callersFunction_get_ocr_choice
Return the configured OCR engine choice (cached per process).
agent/src/tools/ocr/engine.py:93
↓ 2 callersFunction_get_paginated
Follow KIS's ``tr_cont`` continuation protocol, merging every page's rows. A response ``tr_cont`` header of ``F`` (first page, more follows) or `
agent/src/trading/connectors/kis/sdk.py:764
↓ 2 callersFunction_get_run_swarm_tool_schema
Return the JSON-Schema for ``run_swarm`` via FastMCP introspection. Uses the public ``FastMCP.get_tool`` API so the test exercises the schema
agent/tests/test_swarm_m5_trust_model.py:76
↓ 2 callersFunction_get_scheduled_research_executor
Return the singleton scheduled research executor.
agent/src/api/scheduled_routes.py:155
↓ 2 callersFunction_get_session_service
Lazy-init session service when ENABLE_SESSION_RUNTIME=true.
agent/src/api/state.py:29
↓ 2 callersMethod_get_typing_ticket
Get typing ticket with per-user refresh + failure backoff cache.
agent/src/channels/weixin.py:936
↓ 2 callersFunction_get_usdm_observation
(cfg: BinanceConfig, exchange: Any)
agent/src/trading/connectors/binance/sdk.py:755
↓ 2 callersMethod_goal_from_row
(row: sqlite3.Row)
agent/src/goal/store.py:940
↓ 2 callersFunction_grid
(start: str, step_minutes: int, count: int)
agent/tests/test_paper_trade_5m_payload.py:36
↓ 2 callersFunction_growth_panel
(field: str)
agent/tests/factors/test_fundamental_expansion_price_samples.py:64
↓ 2 callersFunction_guard_pool
Wrap the transport's connection pool backend in the public-only check. Raises: RuntimeError: If the installed httpx no longer exposes the
agent/src/providers/endpoint_guard.py:140
↓ 2 callersFunction_halt_episode
Return the identity of the *newest* tripped halt episode, if any. Both the per-broker and the global sentinel can be tripped, at different ti
agent/src/live/runtime/sweep_latch.py:188
↓ 2 callersFunction_halt_fill_recovery
(broker, session_id, mandate, action, evidence, positions, reason, checked)
agent/src/live/sdk_order_gate.py:707
↓ 2 callersMethod_handle_discord_message
Handle incoming Discord messages from discord.py. Self-loop guard: only drop messages from this bot's own account. Messages from othe
agent/src/channels/discord.py:577
↓ 2 callersMethod_handle_inbound
(self, msg: InboundMessage)
agent/src/channels/runtime.py:122
↓ 2 callersMethod_handle_neonize_message
(self, client: Any, event: Any)
agent/src/channels/whatsapp.py:503
↓ 2 callersMethod_handle_scheduled_confirmation
Commit/discard exact IM confirmation replies outside the model. Tokens are exact-match by design so the model can never confirm on the
agent/src/channels/runtime.py:294
↓ 2 callersFunction_has_issues
Validate a final answer with no tool evidence at all.
agent/tests/test_grounding_language_parity.py:33
↓ 2 callersMethod_headers
( self, *, force_refresh: bool = False, rejected_access: str | None = None,
agent/src/providers/openai_codex.py:771
↓ 2 callersFunction_health_payload
()
agent/src/api/system_routes.py:236
↓ 2 callersFunction_hint
Print a next-step hint to stderr when stdout is a TTY. Goes to stderr so it does not pollute JSON / pipe-friendly stdout output.
agent/src/factors/cli_handlers.py:155
↓ 2 callersFunction_historical_var
A real quantlib_call historical_var envelope and the VaR it returned.
agent/tests/test_grounding_role_hardening.py:616
↓ 2 callersMethod_hk_board_lot
Return the board lot for one HK symbol. A symbol the configured table does not cover is sized on the default lot, which looks exactly
agent/backtest/engines/global_equity.py:116
↓ 2 callersFunction_hk_kline_payload
(tencent_code: str)
agent/tests/test_tencent_loader.py:29
↓ 2 callersFunction_hk_lot_key
Normalise an HK symbol so ``00700.HK``, ``0700.HK`` and ``700.hk`` match. Args: symbol: Symbol as written in config or carried by the dat
agent/backtest/engines/global_equity.py:46
↓ 2 callersFunction_hk_success_hash
(account_state: dict)
agent/tests/test_paper_trade_tool.py:261
↓ 2 callersFunction_hold
(engine: CompositeEngine, symbol: str, entry_day: str)
agent/tests/test_composite_market_rules.py:36
↓ 2 callersFunction_hold
(engine, direction)
agent/tests/test_india_close_direction.py:35
↓ 2 callersFunction_host_matches
Return whether ``host`` matches an allow-list ``pattern``. Mirrors Starlette's TrustedHostMiddleware semantics: ``*`` allows any host and a l
agent/mcp_server.py:227
↓ 2 callersFunction_host_shell_tools_enabled_for_request
(request: Request)
agent/src/api/swarm_routes.py:73
↓ 2 callersFunction_host_without_port
Normalize a Host header to a lowercase hostname without a port.
agent/src/api/security.py:118
↓ 2 callersFunction_hourly_rows
(opens: list[float])
agent/tests/test_ccxt_perpetual_loader.py:16
↓ 2 callersFunction_http_error_body
Return the response body of an HTTP status error, if there is one. ``httpx.HTTPStatusError`` stringifies to the status and URL only, so the s
agent/src/tools/mcp.py:1408
↓ 2 callersMethod_hydrate_after_subscribe
Replay goal/run strip state after subscribe (same-process refresh).
agent/src/channels/websocket.py:349
↓ 2 callersFunction_ic
Mean cross-sectional Spearman IC between the factor and forward returns.
agent/tests/test_alpha_bench_pit_lag.py:65
↓ 2 callersFunction_identifier_cell
Return the ``ISIN`` column, refusing text that cannot identify anything. The identifier column is read through :func:`_describe_identifier` rathe
agent/src/portfolio/extraetf.py:696
↓ 2 callersFunction_ignored_root_entries
()
agent/tests/test_gitignore_runtime_files.py:97
↓ 2 callersFunction_import_candidate
Return the filesystem candidate for an import path. Browser uploads are exposed as ``uploads/<name>`` so the UI never needs a local absolute
agent/src/tools/path_utils.py:301
↓ 2 callersFunction_import_module
Import an allowlisted module by its short name. Args: short_name: Key of :data:`ALLOWED_MODULES`. Returns: The imported modu
agent/src/tools/quantlib_tool.py:103
↓ 2 callersMethod_indent
Indent every line of *text* by four spaces.
agent/src/openbb_bridge/context_injector.py:252
↓ 2 callersFunction_independence_from_pairs
Evaluate independence from observed consecutive pairs only.
agent/src/quantlib/var_backtest.py:442
↓ 2 callersFunction_india_intent
()
agent/tests/test_india_mandate.py:57
↓ 2 callersFunction_india_panel
Synthetic NSE-shape OHLCV panel; vwap injected as India typical price.
agent/tests/factors/test_india_universe.py:26
↓ 2 callersFunction_infer_market
Use the engine's market rules without its default for unknown instruments.
agent/backtest/benchmark.py:151
↓ 2 callersMethod_ingest_generic_numeric
Flatten bounded numeric leaves from other market-sensitive tools.
agent/src/agent/grounding/evidence.py:1344
↓ 2 callersMethod_input_tokens
(self, messages: list[dict])
agent/tests/test_context_budget.py:199
↓ 2 callersFunction_inputs
()
agent/tests/test_optimizer_causality.py:32
← previousnext →3,901–4,000 of 26,887, ranked by callers