MCPcopy Create free account

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

Functions30,405 in github.com/HKUDS/Vibe-Trading

↓ 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:466
↓ 4 callersFunction_json_ok
Return a standard MCP JSON success envelope.
agent/mcp_server.py:461
↓ 4 callersMethod_kind_fits
Whether a record is of the kind ``figure`` can be grounded in. Mirrors the narrowing ``_referenced`` applies, so a hint never points at
agent/evals/grounding/policies.py:1329
↓ 4 callersFunction_live_api_call
Call an R6 live-runner endpoint and decode the JSON response.
agent/cli/commands/live.py:25
↓ 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:111
↓ 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_load_universe_panel
Load OHLCV(+amount, +vwap) wide panel for the requested universe. Returns a dict keyed by panel column (open/high/low/close/volume/amount/vwap)
agent/src/tools/alpha_bench_tool.py:127
↓ 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:99
↓ 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:49
↓ 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:1456
↓ 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:106
↓ 4 callersFunction_make_state
( *, list_outcomes: list, call_outcomes: list, )
agent/tests/test_swarm_m4_e2e.py:87
↓ 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:81
↓ 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_map
Rename mapped fields, convert their units, and keep unmapped keys under ``extra``.
agent/src/trading/connectors/openalgo/sdk.py:295
↓ 4 callersFunction_market_for
Classify a ticker into a coarse market label for the envelope.
agent/src/tools/stock_profile_tool.py:270
↓ 4 callersFunction_market_registry
(market_calls: list, monkeypatch)
agent/tests/test_session_conversation_kernel.py:196
↓ 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_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 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:25
↓ 4 callersFunction_new_llm_usage_summary
Create the run-scoped provider usage accumulator.
agent/src/product/usage.py:68
↓ 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_no_network
(monkeypatch)
agent/tests/test_openalgo_connector.py:90
↓ 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:596
↓ 4 callersFunction_normalize_market
Normalize a market code: uppercase, ``/`` → ``-`` (Upbit uses ``QUOTE-BASE``).
agent/src/trading/connectors/upbit/sdk.py:646
↓ 4 callersFunction_normalize_mcp_value
Unwrap a value from a remote MCP call into plain JSON-safe data.
agent/cli/commands/connectors.py:567
↓ 4 callersFunction_now_iso
Current time as ISO-8601 string.
agent/src/memory/lifecycle.py:84
↓ 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_numbered
(run: Path, count: int = 2000)
agent/tests/test_read_file_refusals.py:111
↓ 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:68
↓ 4 callersFunction_offline_step
(monkeypatch)
agent/tests/test_paper_trade_cancellation_surfaces.py:48
↓ 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:40
↓ 4 callersFunction_ok_payload
Two ascending daily candles in Finnhub's parallel-array layout.
agent/tests/test_finnhub_loader.py:23
↓ 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:915
↓ 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:169
↓ 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:363
↓ 4 callersFunction_partial_market_day
Session volume 1_000 shares across two bars; first bar ref 10.00.
agent/tests/test_paper_trade_5m_partial_fills.py:261
↓ 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/evals/grounding/figures.py:647
↓ 4 callersFunction_persisted_text
Return every byte persisted under ``run_dir`` (trace JSONL + sidecars).
agent/tests/test_redaction_shared.py:438
↓ 4 callersFunction_portfolio_error_details
Return a user-safe connector error without signed request parameters.
agent/src/portfolio/service.py:97
↓ 4 callersFunction_portfolio_service
Return the injected portfolio service, or build the default one.
agent/cli/commands/portfolio.py:7
↓ 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:66
↓ 4 callersFunction_preview_point
(row: dict)
agent/tests/test_backtest_summary.py:95
↓ 4 callersFunction_preview_tool_arguments
Return a short, redacted argument preview for streamed events.
agent/src/swarm/node.py:505
↓ 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/evals/grounding/policies.py:1459
↓ 4 callersFunction_print
Print one line through the shared console.
agent/cli/commands/research_playbook.py:30
↓ 4 callersFunction_print_interactive_result
Print the assistant answer after the rail without boxed run panels.
agent/cli/main.py:511
↓ 4 callersFunction_print_json_result
Print a machine-readable run summary.
agent/cli/commands/execution.py:13
↓ 4 callersFunction_prior_row
(strategy_id="alpha_zoo:prior")
agent/tests/test_strategy_discovery_hard_gates.py:57
↓ 4 callersFunction_pro_api
()
agent/src/tools/tushare_fallbacks.py:23
↓ 4 callersMethod_process_inbound_event
(self, target_id: str, event: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:719
↓ 4 callersFunction_profile_fits_ceilings
Return whether every clamped limit in ``profile`` is within ``ceilings``. Both sides are first normalized to canonical limit names (see :func
agent/src/live/mandate/commit.py:348
↓ 4 callersFunction_proposal
Return a minimal valid proposal payload for commit_mandate.
agent/tests/test_mandate_commit_security.py:20
↓ 4 callersFunction_provider_env
Return a catalog provider's key env, base-URL env and whether it needs a key. Args: provider: Configured provider label or alias. Re
agent/cli/commands/providers.py:13
↓ 4 callersMethod_pump
(self, session_id: str, tail: _Tail)
agent/src/session/event_projection.py:275
↓ 4 callersFunction_quarter_chain
Read one quarter's filings into an ordered amendment chain. Ordering is the order the filings take effect: originals first, then amendments o
agent/src/tools/institutional_holdings_tool.py:1072
↓ 4 callersFunction_rate_limit_error
Build a retryable 429-style error carrying a Retry-After header.
agent/tests/test_stream_retry_escalation.py:108
↓ 4 callersFunction_rate_to_dict
Map one rates row (numpy structured row, mapping, or object) defensively.
agent/src/trading/connectors/mt5/reads.py:321
↓ 4 callersFunction_raw
Unwrap a Yahoo ``{"raw":..,"fmt":..}`` cell to its numeric ``raw`` value. Args: value: A Yahoo scalar, which may be a plain value or a fo
agent/src/tools/stock_profile_tool.py:41
↓ 4 callersMethod_read
(self, session_id: str)
agent/src/session/event_projection.py:235
↓ 4 callersFunction_read_json
Parse a document-reader JSON envelope.
agent/tests/test_doc_reader_security.py:23
↓ 4 callersMethod_read_json
(path: Path)
agent/src/session/store.py:361
← previousnext →2,601–2,700 of 30,405, ranked by callers