MCPcopy Create free account

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

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

↓ 4 callersMethod_handle_watch_payload
(self, payload: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:682
↓ 4 callersFunction_handwritten_payload
(operation: str, **extra: object)
agent/tests/scheduling/test_system_job_protection.py:143
↓ 4 callersFunction_has_unbalanced_brackets
Return True if ``text`` contains unbalanced ``()``/``[]``/``{}`` pairs. Used to decide whether a plain Enter should submit or insert a newlin
agent/cli/input.py:121
↓ 4 callersFunction_hash_leaves
Hash a completed ``path -> canonical string`` leaf set. Args: hash_leaves: Output of one or more :func:`_flatten` calls. Returns:
agent/src/quantlib/valuation/artifact.py:500
↓ 4 callersFunction_hash_prefixed
Return a self-describing ``sha256:<hex>`` digest of ``text``.
agent/src/governance/manifest.py:123
↓ 4 callersFunction_host_validate_path_param
(value: str, kind: str)
agent/src/api/swarm_routes.py:69
↓ 4 callersFunction_hourly_frame
Eight sequential 1-hour OHLCV bars starting at midnight.
agent/tests/test_yfinance_lowercase_4h_resample.py:18
↓ 4 callersFunction_index_rows
(index: SessionSearchIndex, session_id: str)
agent/tests/test_session_delete_clears_search_index.py:55
↓ 4 callersFunction_infer_instrument_type
Normalize provider types into the identity contract.
agent/src/agent/grounding/identity.py:347
↓ 4 callersFunction_install_golden
()
agent/tests/test_paper_trade_strategy_path.py:93
↓ 4 callersMethod_instrument
(self, symbol: str)
agent/backtest/engines/argentina_equity.py:463
↓ 4 callersFunction_intent
(limit_price: float | None, side: str = "buy")
agent/tests/test_limit_price_notional.py:31
↓ 4 callersFunction_interval_span_hours
Bar span in hours for a runner interval token, ``None`` when unknown. ``1M`` is a month and ``1m`` a minute; the period tokens are looked up
agent/backtest/engines/_market_hooks.py:458
↓ 4 callersFunction_intraday_stamped_row
A daily bar carrying Yahoo's real session-open epoch (14:30 UTC).
agent/tests/test_yahoo_loader.py:51
↓ 4 callersMethod_invoke_tool
Execute a tool with heartbeat + structured progress emission. Installs a thread-local progress emitter so the tool may call ``emit_pr
agent/src/agent/tool_lifecycle.py:538
↓ 4 callersFunction_is_cjk_char
Check if character is a CJK ideograph.
agent/src/memory/search_index.py:35
↓ 4 callersFunction_is_halt_turn
Return True if ``text`` is a bare kill-switch turn. Matches a turn whose entire content (trimmed, trailing punctuation removed, lower-cased)
agent/cli/main.py:871
↓ 4 callersFunction_is_price_kind
Whether a record is money-denominated: a quote, a registered level or an amount. Args: record: One evidence record, with its raw or canon
agent/src/agent/grounding/evidence.py:687
↓ 4 callersFunction_is_skippable_side
True for known non-trade corporate-action rows; callers drop the row.
agent/src/tools/trade_journal_parsers.py:269
↓ 4 callersFunction_ist
(y: int, m: int, d: int, hh: int = 0, mm: int = 0)
agent/tests/test_zerodha_sdk.py:20
↓ 4 callersFunction_job
(jid: str, next_run_at: int, schedule: str = "interval:1000")
agent/tests/test_runtime_scheduler_kernel.py:34
↓ 4 callersFunction_job_with_session
(job_id: str, session_id: str)
agent/tests/test_verdict.py:108
↓ 4 callersFunction_json_error
Return a standard MCP JSON error envelope.
agent/mcp_server.py:425
↓ 4 callersFunction_json_ok
Return a standard MCP JSON success envelope.
agent/mcp_server.py:420
↓ 4 callersFunction_leaf
(group: str, index: int, field: str)
agent/tests/test_grounding_container_field_refs.py:60
↓ 4 callersFunction_load
Parse one preset YAML. Args: path: Path to the preset file. Returns: The parsed mapping.
agent/tests/test_preset_claim_backing.py:107
↓ 4 callersFunction_load_manifest
()
agent/tests/test_paper_trade_fixtures.py:103
↓ 4 callersFunction_load_shares
( monkeypatch: pytest.MonkeyPatch, facts: dict[str, object], start: str = "2017-05-01", end: s
agent/tests/test_fundamentals_shares_diluted_alias.py:46
↓ 4 callersMethod_load_state
Load saved account state. Returns True if a valid token was found.
agent/src/channels/weixin.py:188
↓ 4 callersFunction_local_cross
()
agent/tests/test_binance_account_reconciliation.py:68
↓ 4 callersMethod_lookup
(self, table: str, columns: str, trade_date: str, ts_code: str)
agent/src/tools/paper_trade/limits_cn_a.py:227
↓ 4 callersFunction_lot_units
Units in one standard lot: 100,000 for FX, 100 oz for gold, etc.
agent/backtest/engines/forex.py:83
↓ 4 callersFunction_lower_shadow
下影线长度。 Args: o: 开盘价序列。 c: 收盘价序列。 l: 最低价序列。 Returns: 每根K线的下影线长度。
agent/src/skills/candlestick/example_signal_engine.py:62
↓ 4 callersFunction_make_channel
()
agent/tests/test_matrix_stream_end_no_preview.py:19
↓ 4 callersFunction_make_close_df
Create a close price DataFrame.
agent/tests/test_equity_regression.py:28
↓ 4 callersFunction_make_factory
(state: dict[str, Any])
agent/tests/test_swarm_m4_e2e.py:95
↓ 4 callersFunction_make_fake_wrappers
Build lightweight ``MCPRemoteTool`` stubs without a live adapter. Mirrors the helper in ``tests/test_registry_mcp_integration.py`` so M2 test
agent/tests/test_swarm_m2_registry_assembly.py:45
↓ 4 callersFunction_make_jsonable
Convert a fallback MCP value with Pydantic's JSON serializer. FastMCP uses the same public ``pydantic_core`` primitive when producing structu
agent/src/tools/mcp.py:1455
↓ 4 callersFunction_make_mock_panel
(n_symbols: int = 10, n_days: int = 100)
agent/tests/test_bench_parallel.py:15
↓ 4 callersFunction_make_server_config
(*, enabled_tools=None)
agent/tests/test_swarm_m4_e2e.py:102
↓ 4 callersFunction_make_state
( *, list_outcomes: list, call_outcomes: list, )
agent/tests/test_swarm_m4_e2e.py:83
↓ 4 callersFunction_make_tokens
Tokenize text using the module tokenizer.
agent/tests/memory/test_semantic_links.py:22
↓ 4 callersFunction_make_tonghuashun_rows
Build Tonghuashun-format rows from (datetime, symbol, side, qty, price). Tonghuashun requires columns: 成交时间 / 证券代码 / 操作 (see `trade_journal_p
agent/tests/test_shadow_account.py:72
↓ 4 callersFunction_mandate
(**caps_overrides: Any)
agent/tests/test_advisory.py:87
↓ 4 callersFunction_mandate_is_expired
Return whether ``mandate`` is at/past its expiry as of ``now`` (fail-closed). An unparseable ``expires_at`` is treated as expired: a live mandate
agent/src/live/runtime/runner.py:199
↓ 4 callersFunction_market_for
Classify a ticker into a coarse market label for the envelope.
agent/src/tools/stock_profile_tool.py:269
↓ 4 callersFunction_mcp_tool_names
Return the MCP tool names in registration order. Returns: Tool names exactly as the MCP server exposes them.
agent/tests/test_readme_counts.py:96
↓ 4 callersFunction_mcp_wrapper
()
agent/tests/test_paper_trade_tool.py:400
↓ 4 callersFunction_mean
Compute arithmetic mean of a list (returns 0.0 for empty list).
agent/tests/memory/benchmarks/tier2_runner.py:107
↓ 4 callersFunction_member_row
(ts_code: str, l1_name: str)
agent/tests/test_alpha_bench_csi300_sector.py:39
↓ 4 callersMethod_messages_file
(self, session_id: str)
agent/src/session/store.py:49
↓ 4 callersFunction_metrics
(count: int)
agent/tests/test_mcp_result_dedup.py:20
↓ 4 callersMethod_mock_response
(self, status: int = 200, text: str = "")
agent/tests/test_southbound_tool.py:119
↓ 4 callersFunction_mode
(path: Path)
agent/tests/test_onboard_partial_env.py:24
↓ 4 callersFunction_nearest
(result: Any, value: str)
agent/tests/test_grounding_role_hardening.py:904
↓ 4 callersMethod_next_sleep_ms
Return the inter-tick sleep: the consumer's hint, or the fixed tick. The hint is read against a freshly sampled clock (post-tick), so an
agent/src/scheduling/kernel.py:275
↓ 4 callersFunction_normalize
Fold provider punctuation to ASCII and collapse whitespace. Args: text: Raw title or abstract straight off the feed. Returns:
agent/src/tools/research_papers_tool.py:595
↓ 4 callersFunction_normalize
Read ``content`` as a renderer shows its numbers. Invisible characters are dropped; a backslash before ASCII punctuation and a character refe
agent/src/agent/grounding/figures.py:391
↓ 4 callersFunction_normalize_market
Normalize a market code: uppercase, ``/`` → ``-`` (Upbit uses ``QUOTE-BASE``).
agent/src/trading/connectors/upbit/sdk.py:646
↓ 4 callersFunction_now_iso
Current time as ISO-8601 string.
agent/src/memory/lifecycle.py:61
↓ 4 callersFunction_nport
Build an N-PORT document with two holdings, real tag names and namespace.
agent/tests/test_etf_holdings_tool.py:92
↓ 4 callersFunction_npv
Net present value of dated amounts at one rate. Discounting is done in log space (``exp(-t * log1p(r))``) so a large rate over a long horizon
agent/src/quantlib/fundmath.py:263
↓ 4 callersFunction_ns
(**overrides)
agent/tests/test_alpha_bench_meta_survivorship.py:22
↓ 4 callersFunction_numbers
Every number in normalized text, with a decimal comma read as one (#1418). A comma is a decimal point when the integer part is exactly "0" ("0,66
agent/src/agent/grounding/figures.py:451
↓ 4 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/tiger/sdk.py:643
↓ 4 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/longbridge/sdk.py:800
↓ 4 callersFunction_observed
(ledger: GroundingLedger, call_id: str)
agent/tests/test_grounding_prior_run_reuse.py:60
↓ 4 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/hypothesis_tool.py:12
↓ 4 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/autopilot_tool.py:24
↓ 4 callersFunction_ok
(**payload: Any)
agent/src/tools/shadow_account_tool.py:38
↓ 4 callersFunction_ok_payload
Two ascending daily candles in Finnhub's parallel-array layout.
agent/tests/test_finnhub_loader.py:23
↓ 4 callersMethod_on_message
Parse inbound message, download attachments, and publish to the bus.
agent/src/channels/qq.py:531
↓ 4 callersMethod_on_plan_rejected
Observe a silently rejected opening-order plan. ``_plan_open_order`` returns ``None`` for several distinct reasons — nothing wanted,
agent/backtest/engines/base.py:864
↓ 4 callersMethod_open_imap_client
(self, mailbox: str, *, missing_mailbox_ok: bool = False)
agent/src/channels/email.py:679
↓ 4 callersFunction_outcome
()
agent/tests/test_paper_trade_v12_schema.py:90
↓ 4 callersFunction_pad_cik
Normalize a CIK to the SEC's zero-padded 10-digit string form. Args: cik: A CIK as an int or a string that may already be padded or carry
agent/backtest/loaders/sec_edgar_client.py:102
↓ 4 callersFunction_panel
(values: list[list[float]], columns: list[str] | None = None)
agent/tests/test_get_fundamentals_tool.py:83
↓ 4 callersFunction_panel
(engine: CompositeEngine, prev_close: float, bar_idx: int = 1)
agent/tests/test_composite_market_rules.py:47
↓ 4 callersFunction_panel_2sym
(n_rows: int, seed: int = 11)
agent/tests/factors/test_alpha101_alpha010_023_027_nan_propagation.py:22
↓ 4 callersFunction_panel_and_one_return_row
()
agent/tests/test_bench_single_ic_observation.py:18
↓ 4 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_gtja191_alpha019_086_nan_propagation.py:22
↓ 4 callersFunction_panel_with_one_gap
()
agent/tests/factors/test_alpha101_alpha009_046_nan_propagation.py:23
↓ 4 callersFunction_panel_without_gap
()
agent/tests/factors/test_qlib158_cnt_nan_propagation.py:60
↓ 4 callersFunction_parse_ccxt_symbol
Return the canonical CCXT symbol and instrument type for ``code``.
agent/backtest/loaders/ccxt_loader.py:76
↓ 4 callersFunction_parse_env_bool
Coerce environment string values to ``bool``. Accepts ``"1"``, ``"true"``, ``"yes"``, ``"on"`` (case-insensitive) as ``True`` and ``"0"``, ``
agent/src/config/env_schema.py:48
↓ 4 callersFunction_parse_expiry
Parse an ISO-8601 UTC ``expires_at`` string into an aware ``datetime``. The mandate commit path writes the expiry with a trailing ``Z`` (e.g.
agent/src/live/runtime/runner.py:170
↓ 4 callersFunction_parse_metric
Extract one us-gaap concept's reported series from a companyfacts payload. XBRL companyfacts nest as ``facts.us-gaap.<Concept>.units.<Unit>`` ->
agent/src/tools/sec_filings_tool.py:267
↓ 4 callersFunction_patch
(monkeypatch: pytest.MonkeyPatch, handler)
agent/tests/test_wallex_loader.py:60
↓ 4 callersFunction_patch_login
(monkeypatch, fake)
agent/tests/test_shoonya_empty_string_numeric.py:68
↓ 4 callersFunction_payload
(account_id: str, market: str, cash: float, orders: list[dict], day: str, fees: dict[str, float])
agent/tests/test_paper_trade_determinism.py:122
↓ 4 callersFunction_percent_mark
The percent a figure's trailing mark denotes, where the mark ends, and whether the mark is a percentage-point spelling rather than ``%``. A p
agent/src/agent/grounding/figures.py:615
↓ 4 callersFunction_portfolio_error_details
Return a user-safe connector error without signed request parameters.
agent/src/portfolio/service.py:95
↓ 4 callersFunction_portfolio_service
Return the injected portfolio service, or build the default one. Args: service: Optional pre-built service (tests inject a stub). Re
agent/cli/_legacy.py:4090
↓ 4 callersFunction_position_dict
(symbol: str, qty: float, avg_cost: float)
agent/tests/test_paper_trade_corporate_actions.py:489
↓ 4 callersFunction_pressured
(tmp_path, *, can_read=True)
agent/tests/test_swarm_context.py:57
↓ 4 callersFunction_preview_point
(row: dict)
agent/tests/test_backtest_summary.py:91
↓ 4 callersFunction_preview_tool_arguments
Return a short, redacted argument preview for streamed events.
agent/src/swarm/worker.py:1332
↓ 4 callersMethod_price_candidates
Observed price records a figure may be compared against. Filtered by symbol, then by OHLC field and trade date when the figure sits u
agent/src/agent/grounding/policies.py:1443
↓ 4 callersFunction_print
Print one line through the shared console.
agent/cli/commands/research_playbook.py:71
↓ 4 callersFunction_print_interactive_result
Print the assistant answer after the rail without boxed run panels.
agent/cli/main.py:784
← previousnext →2,201–2,300 of 26,887, ranked by callers