MCPcopy Create free account

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

Functions8,953 in github.com/HKUDS/Vibe-Trading

↓ 5 callersFunction_is_index
Detect A-share index symbols (000xxx.SH, 000300.SH, 399xxx.SZ).
agent/backtest/loaders/tushare.py:22
↓ 5 callersFunction_is_intraday_interval
Return whether *interval* is finer than one day (minute/hour bars). Daily-and-coarser intervals (``1D``/``1W``/``1M``) carry no meaningful in
agent/backtest/loaders/yahoo_loader.py:59
↓ 5 callersFunction_is_local_client
Return whether the request originates from a loopback client.
agent/src/api/security.py:259
↓ 5 callersFunction_is_supported
Return whether *code* is a symbol this loader handles (US/HK/India).
agent/backtest/loaders/yahoo_loader.py:41
↓ 5 callersFunction_is_us_equity
Detect US equity symbols (e.g. AAPL.US).
agent/backtest/loaders/tushare.py:39
↓ 5 callersFunction_json_safe
(value: Any)
agent/src/market_data.py:70
↓ 5 callersFunction_kinds
(report: ReconcileReport)
agent/tests/test_runtime_reconcile.py:73
↓ 5 callersFunction_login
Login to Shoonya API with TOTP authentication. Sessions are cached per ``user_id`` so distinct accounts never share an authenticated client.
agent/src/trading/connectors/shoonya/sdk.py:516
↓ 5 callersFunction_make_agent_json
Write a minimal agent.json config pointing at the fake stdio server. Args: tmp_path: Temporary directory to place the config file in.
agent/tests/test_mcp_stdio_integration.py:53
↓ 5 callersFunction_make_bar
(close: float = 180.0)
agent/tests/test_global_equity_engine.py:23
↓ 5 callersFunction_make_context
(**overrides: Any)
agent/tests/test_advisory.py:152
↓ 5 callersMethod_make_price_df
Build a DataFrame with trade_date as the index name (like real loaders).
agent/tests/test_correlation.py:40
↓ 5 callersFunction_make_runtime
Build a SwarmRuntime backed by a tmp-path SwarmStore.
agent/tests/test_swarm_m1_config_plumbing.py:25
↓ 5 callersFunction_managed_accounts
(ib: Any)
agent/src/trading/connectors/ibkr/local.py:427
↓ 5 callersFunction_min_interval
Resolve the per-call minimum spacing, honoring the env override.
agent/backtest/loaders/yahoo_client.py:64
↓ 5 callersFunction_normalize_codes
Normalize symbol strings for a source. Args: codes: Raw code list. source: Data source. Returns: Normalized codes.
agent/backtest/runner.py:377
↓ 5 callersFunction_normalize_side
Return 'buy'/'sell', falling back to 'buy'.
agent/src/tools/trade_journal_parsers.py:124
↓ 5 callersMethod_normalize_signal_id
Normalize Signal identifiers (phone/uuid/service-id) for matching.
agent/src/channels/signal.py:1014
↓ 5 callersFunction_now_iso
()
agent/src/goal/store.py:54
↓ 5 callersFunction_panel
(n: int = 5)
agent/tests/factors/test_registry.py:101
↓ 5 callersFunction_payload
Build a TIME_SERIES_DAILY-shaped payload from (date, o, h, l, c, v) tuples.
agent/tests/test_alphavantage_loader.py:15
↓ 5 callersFunction_payload
Wrap report rows in the datacenter ``result.data`` envelope.
agent/tests/test_lockup_expiry_tool.py:20
↓ 5 callersFunction_pip_value
Size of 1 pip for the pair. Args: symbol: Forex pair (e.g. 'EUR/USD', 'USD/JPY'). Returns: 1 pip in price terms (0.0001 or 0
agent/backtest/engines/forex.py:43
↓ 5 callersMethod_post_json
(self, path: str, payload: dict[str, Any])
agent/src/channels/mochat.py:907
↓ 5 callersFunction_price_features_as_of
Compute price-context features as-of *buy_dt* from a price frame. Every value is read from bars dated ``<= buy_dt`` only; bars in the ``(buy_
agent/src/shadow_account/extractor.py:240
↓ 5 callersFunction_print
(msg: str)
agent/src/factors/cli_handlers.py:79
↓ 5 callersMethod_process_message
Process incoming message and forward to bus.
agent/src/channels/wecom.py:217
↓ 5 callersFunction_proposal
()
agent/tests/test_cli_live.py:470
↓ 5 callersFunction_range
K线振幅(最高 - 最低)。 Args: h: 最高价序列。 l: 最低价序列。 Returns: 每根K线的振幅。
agent/src/skills/candlestick/example_signal_engine.py:35
↓ 5 callersFunction_read_config_file
Read a supported config file format into a dictionary. Args: path: Config file path to decode. Returns: The decoded config o
agent/src/config/loader.py:232
↓ 5 callersMethod_records
(self)
agent/tests/test_fetch_sina_penalties.py:199
↓ 5 callersFunction_render_snapshot
Render a compact goal card.
agent/cli/commands/goal.py:89
↓ 5 callersFunction_require_alpaca
()
agent/src/trading/connectors/alpaca/sdk.py:515
↓ 5 callersFunction_resolve_acc_id
Resolve and guard the account id by its ``trd_env``. Calls ``get_acc_list()``, keeps rows whose ``trd_env`` matches the profile, and either c
agent/src/trading/connectors/futu/sdk.py:699
↓ 5 callersFunction_resolve_summary
Return report.md content if it exists, otherwise fall back to text.
agent/src/swarm/worker.py:913
↓ 5 callersFunction_resolve_swarm_agent_config_path
Pick the operator config the swarm runtime should boot against. Resolution order (first hit wins): 1. ``VIBE_TRADING_SWARM_AGENT_CONFIG`` en
agent/src/config/loader.py:154
↓ 5 callersFunction_run
(**kw)
agent/tests/test_options_pricing_degenerate.py:20
↓ 5 callersFunction_run
(**kwargs: Any)
agent/tests/test_report_audit_tool.py:193
↓ 5 callersMethod_run
(self, payload, *, period, statement="balance", code="600519.SH", secid="1.600519")
agent/tests/test_financial_statements_tool.py:292
↓ 5 callersFunction_run_agent
Build AgentLoop and execute, return result dict. Args: proposal_sink: Optional callable invoked with the payload of every ``m
agent/cli/_legacy.py:972
↓ 5 callersFunction_safe_call
Call ``obj.name(*args, **kwargs)`` if it exists, retrying without kwargs. Tiger SDK signatures vary across versions (some read methods take an
agent/src/trading/connectors/tiger/sdk.py:722
↓ 5 callersMethod_safe_float
(value: Any)
agent/src/channels/msteams.py:538
↓ 5 callersMethod_sanitize_fts_query
Sanitize a user query for FTS5 MATCH syntax. - Splits on non-alphanumeric/CJK to extract tokens - Joins with OR so any-word-matches (
agent/src/session/search.py:192
↓ 5 callersFunction_save_partial
Best-effort write to ``.env.partial`` (crash-resilience nicety).
agent/cli/onboard.py:101
↓ 5 callersMethod_save_state
(self)
agent/src/channels/weixin.py:221
↓ 5 callersMethod_scan_entries
Scan all .md files (except MEMORY.md) and parse frontmatter. Returns: List of parsed memory entries.
agent/src/memory/persistent.py:180
↓ 5 callersFunction_select_with_back
Vertically-scrollable selector. Returns chosen value, BACK, or CANCEL. Keybindings: ↑/↓ navigate, Enter confirm, Esc/← back, Ctrl+C cancel. F
agent/cli/onboard.py:145
↓ 5 callersMethod_send_typing
Best-effort sendtyping wrapper.
agent/src/channels/weixin.py:1065
↓ 5 callersMethod_sender_id
Build sender_id with username for allowlist matching.
agent/src/channels/telegram.py:1097
↓ 5 callersMethod_session_dir
(self, session_id: str)
agent/src/session/store.py:42
↓ 5 callersFunction_session_id
Return the active CLI session id, optionally creating one.
agent/cli/commands/goal.py:71
↓ 5 callersMethod_setup_mocks
(self, monkeypatch, n_alphas=5)
agent/tests/test_bench_parallel.py:72
↓ 5 callersFunction_shuffle_within_rows
Cross-sectionally permute finite values within each row. This preserves the per-date cross-sectional distribution of the factor while destroy
agent/src/factors/bench_runner_strict.py:99
↓ 5 callersMethod_stop_typing
Stop typing indicator for a channel.
agent/src/channels/discord.py:777
↓ 5 callersFunction_strip_jsonp
Extract the JSON array embedded in Sina's JSONP wrapper. Args: raw: Raw response body, e.g. ``var x=([{"d":"2024-01-02",...}]);``. R
agent/backtest/loaders/sina_loader.py:54
↓ 5 callersFunction_suggest_commands
Return up to three "did you mean" suggestions for ``unknown``. Uses :func:`difflib.get_close_matches` (edit-distance based) as the primary si
agent/cli/main.py:549
↓ 5 callersFunction_sync_provider_env
Map provider-specific env vars to OPENAI_* for ChatOpenAI. Each entry: provider_name -> (api_key_env, base_url_env). All base URLs must be se
agent/src/providers/llm.py:467
↓ 5 callersFunction_to_futu_ktype
Map project interval string to a futu KLType enum value. Lazy-imports futu so the module can be imported without futu installed. Unknown inte
agent/backtest/loaders/futu.py:50
↓ 5 callersFunction_to_yahoo_interval
Map a project interval string to Yahoo's chart interval string. Args: interval: Backtest interval such as ``1D`` or ``1H``. Returns:
agent/backtest/loaders/yahoo_loader.py:46
↓ 5 callersFunction_trade_client
(cfg: TigerConfig)
agent/src/trading/connectors/tiger/sdk.py:575
↓ 5 callersFunction_trade_context
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:557
↓ 5 callersFunction_trade_ctx
Open an ``OpenSecTradeContext`` against the local OpenD gateway.
agent/src/trading/connectors/futu/sdk.py:669
↓ 5 callersFunction_trading_client
(cfg: AlpacaConfig)
agent/src/trading/connectors/alpaca/sdk.py:523
↓ 5 callersFunction_trd_env_enum
Return the ``TrdEnv`` enum value for this profile's environment.
agent/src/trading/connectors/futu/sdk.py:693
↓ 5 callersFunction_truncate_body
Clip `content` to `limit` chars total, leaving room for the marker. The marker is reserved inside the limit (not appended on top) so the on-
agent/src/memory/persistent.py:105
↓ 5 callersFunctioncandlestick_patterns
Detect candlestick patterns: doji, hammer, and engulfing. Args: open_: Open price series. high: High price series. low: L
agent/src/tools/pattern_tool.py:55
↓ 5 callersMethodcheck_available
Check if this tool's dependencies are met. Override in subclasses to check for API keys, packages, etc. Tools that return False are e
agent/src/agent/tools.py:30
↓ 5 callersFunctioncheck_mandate
Evaluate one order intent against the mandate (fail-closed). Checks run in a fixed order and the first failure produces the verdict: exclude-
agent/src/live/enforcement.py:384
↓ 5 callersFunctioncmd_connector_halt
Trip the halt switch for a live remote MCP connector profile.
agent/cli/_legacy.py:4228
↓ 5 callersFunctioncmd_live_halt
Trip the kill switch — write the HALT sentinel (privileged). With no broker, trips the global switch (halts all brokers); with a broker, trip
agent/cli/_legacy.py:3503
↓ 5 callersFunctioncompute_sleep_ms
Compute how long the loop should sleep before its next check. Args: jobs: The current job set. now_ms: The reference time in epoc
agent/src/live/runtime/scheduler.py:132
↓ 5 callersMethodcompute_stale_threshold
Per-run silence budget before a ``running`` run looks abandoned. With ``HeartbeatTimer`` wrapping ``registry.execute`` in the swarm w
agent/src/swarm/store.py:313
↓ 5 callersFunctionctrl_c_within_window
Return True if the most recent Ctrl+C press was a "second press". A "second press" means the user pressed Ctrl+C twice within ``window_sec``
agent/cli/input.py:339
↓ 5 callersFunctiondiscover_channel_names
Return all built-in channel module names by scanning the package (zero imports).
agent/src/channels/registry.py:87
↓ 5 callersMethodexecute
Start a research goal. Args: **kwargs: Tool arguments from the model. Returns: JSON envelope with the goal s
agent/src/tools/goal_tool.py:184
↓ 5 callersMethodexecute
Fetch margin-trading rows and return a JSON envelope string. Args: **kwargs: ``code`` (required, str) and ``days`` (optional int)
agent/src/tools/margin_trading_tool.py:163
↓ 5 callersFunctionextract_order_intent
Parse Robinhood ``place_equity_order`` kwargs into a normalized :class:`OrderIntent`. Returns ``None`` (→ DENY) whenever the tool is not a recogn
agent/src/trading/connectors/robinhood/extractor.py:59
↓ 5 callersFunctionfetch_market_data
Fetch normalized OHLCV data through the repository loader layer.
agent/src/market_data.py:80
↓ 5 callersFunctionfetch_market_data_json
Fetch market data and return strict JSON.
agent/src/market_data.py:127
↓ 5 callersMethodfinish
(self, result: dict[str, Any], elapsed: float | None = None)
agent/cli/ui/rail.py:418
↓ 5 callersFunctionget_config_path
Return the active config file path. Prefers the first existing candidate. If an explicit path is provided, returns that path directly. If no
agent/src/config/paths.py:39
↓ 5 callersMethodget_current_goal
Return the current goal for a session.
agent/src/goal/store.py:460
↓ 5 callersFunctionget_env_or
Read an env var with a backward-compatible alias fallback. Several env vars were renamed during the centralization effort (e.g. ``VIBE_TRADIN
agent/src/config/accessor.py:110
↓ 5 callersMethodget_historical_bars
(self, symbol, **kw)
agent/tests/test_india_broker_loader.py:76
↓ 5 callersMethodget_messages
Read all messages for a session. Args: session_id: Session ID. limit: Maximum number of messages to return.
agent/src/session/store.py:155
↓ 5 callersMethodinterval
Build an interval trigger firing every ``interval_ms`` ms. Args: interval_ms: Cadence in milliseconds; must be strictly positive.
agent/src/live/runtime/triggers.py:160
↓ 5 callersMethodis_allowed
Preserve Telegram's legacy id|username allowlist matching.
agent/src/channels/telegram.py:450
↓ 5 callersMethodlist
(self, *, zoo: str)
agent/tests/factors/test_bench_strict.py:422
↓ 5 callersMethodload_all
Load all tasks for the current run. Returns: List of SwarmTask sorted by ID.
agent/src/swarm/task_store.py:76
↓ 5 callersFunctionloader_cache_get
Return a cached DataFrame for one payload, or ``None`` on any miss. Misses include: cache disabled, range not yet settled, entry absent, or a
agent/backtest/loaders/base.py:308
↓ 5 callersFunctionloader_cache_put
Write one non-empty DataFrame to the cache; a no-op when not cacheable. Skips a disabled cache, an unsettled range, and empty/non-DataFrame resul
agent/backtest/loaders/base.py:336
↓ 5 callersFunctionmain
CLI entrypoint returning a process exit code.
agent/cli/_legacy.py:5340
↓ 5 callersFunctionnormalize_mcp_tool_schema
Normalize remote MCP input schemas into OpenAI-compatible objects. Args: schema: Raw MCP input schema. Returns: A JSON Schem
agent/src/tools/mcp.py:231
↓ 5 callersMethodquery_events
Fetch and normalise feed items, dropping anything not yet knowable. Args: codes: Instrument codes to query. as_of: Po
agent/backtest/loaders/rsshub_events.py:343
↓ 5 callersMethodquery_fundamentals
Query a fundamental table and filter out rows unpublished by ``as_of``.
agent/backtest/loaders/tushare_fundamentals.py:136
↓ 5 callersFunctionread_document
Read any supported document; dispatch by extension. Args: file_path: Absolute path to the file. pages: Only used for PDF — e.g. "
agent/src/tools/doc_reader_tool.py:283
↓ 5 callersMethodreap_stale_running_runs
Sweep all run directories and reconcile each one. Returns IDs of runs whose status flipped from ``running`` to a terminal status — us
agent/src/swarm/store.py:529
↓ 5 callersMethodrecord_press_and_check_window
Record the current press, return True iff inside the window. Args: window_sec: Two-press window in seconds. Returns:
agent/cli/input.py:181
↓ 5 callersMethodrender
(self)
agent/cli/ui/rail.py:437
↓ 5 callersFunctionrender_tool_event
Return a Rich :class:`Text` row describing a single tool call. Args: name: Raw tool name (``get_financials``); pretty-printed in output.
agent/cli/components/tool_event.py:150
← previousnext →501–600 of 8,953, ranked by callers