MCPcopy Create free account

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

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

↓ 1 callersFunction_runner_scheduler_task
Return the live task driving the runner's scheduler, or ``None``. Neither ``LiveRunner`` nor ``Scheduler`` exposes a public accessor for the
agent/src/api/live_routes.py:855
↓ 1 callersFunction_runtime_file_values
( runtime_root: Path, )
agent/src/trading/connectors/longbridge/credentials.py:136
↓ 1 callersMethod_safe_callback_data
(label: str)
agent/src/channels/telegram.py:1691
↓ 1 callersFunction_safe_divide
Divide two aligned series, returning NaN where the denominator is zero.
agent/backtest/loaders/_fundamental_schema.py:22
↓ 1 callersFunction_safe_float
Convert values to floats without raising. Args: value: Value to convert. Returns: A float or ``None`` when conversion fails.
agent/src/ui_services.py:540
↓ 1 callersMethod_safe_json
Best-effort parse of the forwarded broker result for the audit record.
agent/src/live/order_guard.py:813
↓ 1 callersMethod_safe_media_filename
Return a local-only filename for downloaded Feishu media.
agent/src/channels/feishu.py:1517
↓ 1 callersFunction_safe_relative_resolve
Resolve a manifest-relative path, or return ``None`` if it is unsafe. Rejects empty paths, null bytes, absolute paths (POSIX or Windows shape
agent/src/tools/run_artifact_tool.py:102
↓ 1 callersMethod_safe_sidecar_path
Return a sidecar path only if it stays inside ``dir_path``.
agent/src/agent/trace.py:365
↓ 1 callersFunction_sanitize_cache_segment
(value: str)
agent/backtest/loaders/base.py:707
↓ 1 callersFunction_sanitize_filename
Sanitize filename to avoid traversal and problematic chars.
agent/src/channels/qq.py:86
↓ 1 callersFunction_sanitize_filename
Sanitize filename to avoid traversal and problematic chars.
agent/src/channels/wecom.py:30
↓ 1 callersFunction_sanitize_finite_json
Replace non-finite JSON numeric leaves with ``None`` recursively. Args: value: Parsed JSON value. Returns: JSON-compatible v
agent/src/api/runs_routes.py:64
↓ 1 callersMethod_sanitize_fts_query
Sanitize user query for FTS5 MATCH syntax. Extracts alphanumeric tokens (2+ chars) and CJK characters, generates bigrams for consecut
agent/src/memory/search_index.py:538
↓ 1 callersFunction_sanitize_reset_reason
Return a bounded, credential-free one-line reason for a degraded reset (#1625).
agent/src/api/channels_config_routes.py:370
↓ 1 callersMethod_save
(self, kwargs: dict)
agent/src/tools/remember_tool.py:101
↓ 1 callersFunction_save_cache
Persist the code map best-effort; failures only cost a re-resolve.
agent/backtest/loaders/gildata_codes.py:73
↓ 1 callersMethod_save_cursor_debounced
(self)
agent/src/channels/mochat.py:878
↓ 1 callersMethod_save_envelope_media
Decode and persist ``media`` items from a ``message`` envelope. Returns ``(paths, None)`` on success or ``([], reason)`` on the first
agent/src/channels/websocket.py:604
↓ 1 callersMethod_save_result
Save parts that fit through the real read_file result envelope. JSON escaping and the path count toward the shared result cap. Splitting
agent/src/swarm/context.py:101
↓ 1 callersFunction_saved_bars_per_year
Annualisation factor for a saved run, chosen the way the runner chose it. The engine passes the run's ``bars_per_year`` into :func:`run_validatio
agent/backtest/validation.py:540
↓ 1 callersFunction_scalar_score
Find the last absolute row holding the extreme, then count its age.
agent/tests/factors/test_gtja191_highday_lowday_recency.py:105
↓ 1 callersMethod_scan
(self)
agent/src/factors/registry.py:223
↓ 1 callersFunction_scan_roots
Find every rate in a window where the NPV crosses or touches zero. The window is sampled on a grid that is uniform in ``log(1 + r)``, so the
agent/src/quantlib/fundmath.py:355
↓ 1 callersFunction_scan_runtime_reachable
Reject forbidden ops in ``SignalEngine`` methods + their transitive callees. Entry points are every method defined directly on the ``SignalEngine
agent/backtest/runner.py:746
↓ 1 callersFunction_scenario
()
agent/tests/test_scheduled_delivery_hook.py:71
↓ 1 callersFunction_scenario_ivs
Resolve bounded explicit IV scenarios or the skill's five defaults.
agent/src/tools/options_payoff_tool.py:322
↓ 1 callersMethod_schedule
(self, symbol: str, bar: pd.Series)
agent/backtest/engines/crypto.py:172
↓ 1 callersFunction_schedule_shape_ok
Whether *schedule*/*timezone* pass the store's syntactic validation — exactly the check ``store.upsert(validate=True)`` applies, so the local-
agent/src/scheduling/system_jobs.py:335
↓ 1 callersFunction_scheduled_proposal_frame_from_tool_result
Build a deterministic scheduled-research confirmation SSE frame.
agent/src/api/sessions_routes.py:303
↓ 1 callersFunction_scheduled_routes_under_test
Every mounted route whose path lives under ``/scheduled-runs``.
agent/tests/test_playbooks_surface.py:323
↓ 1 callersFunction_scheduler_enabled
Return whether the background executor is switched on for this install.
agent/cli/commands/research_playbook.py:247
↓ 1 callersFunction_schema
(allow_tools: bool)
agent/src/providers/claude_cli.py:221
↓ 1 callersFunction_schema_allows_additional_top_level_keys
Return whether a schema may accept top-level keys beyond known properties.
agent/src/tools/mcp.py:1126
↓ 1 callersFunction_schema_keyword_allows_values
Return whether a schema keyword encodes an open-ended allowance.
agent/src/tools/mcp.py:1147
↓ 1 callersFunction_schema_looks_object_like
Return whether a schema appears to describe a top-level object.
agent/src/tools/mcp.py:1083
↓ 1 callersFunction_schema_uses_composed_top_level_rules
Return whether a schema relies on top-level composition or refs.
agent/src/tools/mcp.py:1100
↓ 1 callersFunction_score_sentence
Score a sentence by normalized sum of IDF weights. Score = sum(idf(token) for token in sentence) / len(tokens). Returns 0.0 for empty sentenc
agent/src/memory/compression.py:111
↓ 1 callersFunction_screen_market
Fetch the ``top_n`` instruments of ``market`` ranked by ``sort_by``. Args: market: One of :data:`_MARKET_FS` keys (``a`` / ``us`` / ``hk`
agent/src/tools/market_screener_tool.py:120
↓ 1 callersFunction_sd_tools_landed
()
agent/tests/test_strategy_discovery_mcp.py:42
↓ 1 callersMethod_sdm_summaries
Catalog entries for every SDM artifact (sorted).
agent/src/strategy_discovery/facade.py:308
↓ 1 callersFunction_search_eastmoney
Query Eastmoney's suggest endpoint and normalize the candidates. Fails fast for Canadian (``.TO``/``.V``) queries: Eastmoney has no Canada co
agent/src/tools/symbol_search_tool.py:678
↓ 1 callersFunction_search_events
Search the event catalogue by keyword. Args: query: Free-text keyword(s). limit: Maximum events to return. status: ``"ope
agent/src/tools/prediction_market_tool.py:891
↓ 1 callersFunction_search_public_exchanges
Resolve an exact pair against the public venue catalogs. Args: crypto_pair: Canonical ``BASE-QUOTE`` spelling. Returns: ``(c
agent/src/tools/symbol_search_tool.py:508
↓ 1 callersFunction_search_selected_connector
Resolve an explicit pair against the active crypto connector, if supported.
agent/src/tools/symbol_search_tool.py:556
↓ 1 callersFunction_search_snippet
Map native FTS match spans back to the original, bounded excerpt.
agent/src/session/search.py:44
↓ 1 callersFunction_search_yahoo
Query Yahoo's search endpoint and normalize the quote candidates. Args: query: Free-text name or ticker fragment. Returns: `
agent/src/tools/symbol_search_tool.py:798
↓ 1 callersFunction_seat_row
Project a raw seat row to a compact, named record. Args: raw: One live Eastmoney buy- or sell-side seat row. side: The side repre
agent/src/tools/dragon_tiger_tool.py:168
↓ 1 callersFunction_seats_by_reason
Group seat rows by listing reason, each group ranked per side. A security listed for several reasons on one day (one ``TRADE_ID`` each) has a
agent/src/tools/dragon_tiger_tool.py:137
↓ 1 callersFunction_seats_payload
(rows: list[dict[str, Any]])
agent/tests/test_dragon_tiger_tool.py:166
↓ 1 callersFunction_sec_instant_matches
Return whether an instant (balance-sheet) fact belongs in the cadence. Instant facts carry no span, so their cadence can only be read off the
agent/src/tools/financial_statements_tool.py:481
↓ 1 callersFunction_section_enabled
(section: Any)
agent/src/channels/registry.py:232
↓ 1 callersMethod_section_enabled
Return whether a channel section enables the adapter.
agent/src/channels/manager.py:409
↓ 1 callersFunction_security_middleware
Build the Host + Origin allow-list middleware for network MCP transports. Args: allowed_hosts: Trusted hostnames from ``_parse_allowed_ho
agent/mcp_server.py:317
↓ 1 callersFunction_seed_job
Build a fresh row for *spec* (mirrors ``build_job_from_draft``'s next-run convention: cron-with-tz waits for its next slot; interval/UTC-cron due
agent/src/scheduling/system_jobs.py:313
↓ 1 callersFunction_seed_ledger
(tmp_path: Path, record: dict)
agent/tests/test_api_live_runtime.py:1015
↓ 1 callersFunction_seed_normal_job
(store: ScheduledResearchJobStore, job_id: str = "job-normal")
agent/tests/scheduling/test_system_job_protection.py:107
↓ 1 callersFunction_seed_proposal
(tmp_path: Path, proposal_id: str, broker: str = "robinhood")
agent/tests/test_api_live_runtime.py:733
↓ 1 callersMethod_seed_quality_ladder
(self, tmp_path)
agent/tests/test_strategy_discovery_facade.py:297
↓ 1 callersMethod_seed_symbols
Lock exact symbols explicitly supplied by a user.
agent/src/agent/grounding/identity.py:631
↓ 1 callersMethod_seed_targets_from_config
(self)
agent/src/channels/mochat.py:380
↓ 1 callersFunction_seed_token
()
agent/tests/test_readonly_default.py:314
↓ 1 callersFunction_seeded_manager
Build a real manager and record a last chat through the real dispatcher. Driving an actual outbound message through ``_dispatch_outbound`` is wha
agent/tests/test_channel_reset_notice.py:80
↓ 1 callersFunction_seeded_panel
Same seeded panel used to generate the goldens (np.random.RandomState(42)). 30 rows × 5 codes; A-share convention amount = volume * close * 100.
agent/tests/factors/test_gtja191_part1_samples.py:25
↓ 1 callersFunction_segment_with_gaps
Split ``text`` into (content, following-whitespace-run-length) pairs.
agent/src/memory/search_index.py:134
↓ 1 callersFunction_segments
Enumerate every citable ``(section, index, sentence)`` of a paper. Normalization is re-applied here (it is idempotent) so no caller can feed
agent/src/tools/research_papers_tool.py:633
↓ 1 callersFunction_select
( candidates: dict[str, pd.DataFrame | pd.Series], base: np.ndarray, weights: np.ndarray, sele
agent/src/quantlib/neutralization.py:143
↓ 1 callersFunction_select_alpha_ids
( registry: Any, *, alpha_id: str | None, zoo: str | None )
agent/src/tools/alpha_bench_tool.py:1029
↓ 1 callersFunction_select_first_local
Return the first available local (non-cloud) engine, sorted by name. Instantiates every registered engine to probe :meth:`is_available`, so e
agent/src/tools/ocr/engine.py:100
↓ 1 callersFunction_select_market_engine
Create the appropriate market engine based on data source and market type. Routing priority: 1. Detect market type from symbol patterns (fu
agent/backtest/runner.py:1746
↓ 1 callersFunction_select_nport_filing
Pick the filing covering the newest report period, newest vintage first. Args: filings: Atom-derived filings for one series, newest filed
agent/src/tools/etf_holdings_tool.py:614
↓ 1 callersFunction_select_numeric
Stdin-only fallback selector.
agent/cli/onboard.py:270
↓ 1 callersFunction_select_reason
Extract a human-readable reason from an IMAP ``select`` response.
agent/src/channels/email_probe.py:67
↓ 1 callersFunction_select_result_data
Choose a JSON-safe local ``data`` view for a structured MCP result. FastMCP unwraps primitive return values from ``{"result": value}`` and ex
agent/src/tools/mcp.py:1206
↓ 1 callersFunction_select_sort
Pick sort column + direction for the query. Single-code history reads newest-first; the market calendar reads soonest-first so the nearest un
agent/src/tools/lockup_expiry_tool.py:110
↓ 1 callersMethod_select_trusted_authentication_results
Select one unambiguous receiver header by configured authserv-id. The receiving provider MUST remove forged copies bearing its own ID
agent/src/channels/email.py:1002
↓ 1 callersFunction_selected_factor_specs
Return selected factor metadata configured for the run. The current runner has no dedicated factor-zoo execution path, so this accepts the sh
agent/backtest/runner.py:983
↓ 1 callersFunction_send
()
agent/tests/test_session_timestamp_timezone.py:54
↓ 1 callersMethod_send_file
Send a file attachment via discord.py.
agent/src/channels/discord.py:292
↓ 1 callersMethod_send_http_request
Send JSON-RPC request via HTTP.
agent/src/channels/signal.py:1449
↓ 1 callersMethod_send_markdown_text
(self, token: str, chat_id: str, content: str)
agent/src/channels/dingtalk.py:612
↓ 1 callersMethod_send_media
Read bytes -> base64 upload -> msg_type=7 send.
agent/src/channels/qq.py:346
↓ 1 callersMethod_send_media
(self, client: Any, to: Any, media_path: str)
agent/src/channels/whatsapp.py:415
↓ 1 callersMethod_send_media_file
Upload a local file to WeChat CDN and send it as a media message. Follows the exact protocol from ``@tencent-weixin/openclaw-weixin`` v1.0.3:
agent/src/channels/weixin.py:1328
↓ 1 callersMethod_send_media_ref
(self, token: str, chat_id: str, media_ref: str)
agent/src/channels/dingtalk.py:620
↓ 1 callersFunction_send_scheduled_briefing
Deliver one briefing through the configured IM channel. Args: channel: Channel id as configured in the channel runtime. target: E
agent/src/api/scheduled_routes.py:113
↓ 1 callersMethod_sender_approved_via_pairing
Return True if any normalized variant of sender_id is in the pairing store. Pairing approval may be recorded under any of the identifier form
agent/src/channels/signal.py:419
↓ 1 callersFunction_sentence
(text: str, limit: int)
agent/cli/ui/transcript.py:166
↓ 1 callersFunction_sentinel_identity
Return ``(instant_ns, identity)`` for one halt sentinel, or ``None``. ``tripped_at`` is the identity when the sentinel carries a parseable one;
agent/src/live/runtime/sweep_latch.py:124
↓ 1 callersMethod_serialize
Serialize the envelope inside the agent's tool-result budget. Bulk actions can serialize to hundreds of thousands of characters, whil
agent/src/tools/taiwan_stock_data_tool.py:1025
↓ 1 callersFunction_serialize_number
Canonical number token for an int or float (bools never reach here).
agent/src/tools/paper_trade/state_hash.py:125
↓ 1 callersFunction_serialize_result
Keep structured results usable through the agent's delivery cap.
agent/src/tools/backtest_tool.py:312
↓ 1 callersMethod_server_features
(client: Any)
agent/src/channels/email.py:818
↓ 1 callersFunction_service
(tmp_path: Path, monkeypatch)
agent/tests/test_session_service_lifecycle.py:25
↓ 1 callersMethod_session_for
(self, msg: InboundMessage)
agent/src/channels/runtime.py:345
↓ 1 callersFunction_session_id
(session: Session | dict[str, Any] | Any)
agent/src/channels/runtime.py:482
↓ 1 callersFunction_session_of
Session that created a run, from the ``req.json`` the loop wrote.
agent/src/tools/backtest_runs_tool.py:55
↓ 1 callersMethod_session_watch_worker
(self, session_id: str)
agent/src/channels/mochat.py:639
↓ 1 callersMethod_set_tool_call_thought_signature
(tool_call: Any, signature: str)
agent/src/providers/llm.py:509
↓ 1 callersFunction_settings_store
(tmp_path)
agent/tests/test_futu_portfolio_currency.py:18
← previousnext →7,301–7,400 of 26,887, ranked by callers