MCPcopy Create free account

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

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

↓ 2 callersMethod_insert_bench
Insert within the caller's transaction.
agent/src/strategy_store/sqlite_store.py:656
↓ 2 callersFunction_install
( script_text: str, log_glob: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/claude_cli_helpers.py:70
↓ 2 callersFunction_install_forbidden_fakes
Fail the test if any IMAP/SMTP transport is constructed at all.
agent/tests/test_email_connection_test.py:208
↓ 2 callersFunction_install_loader
(monkeypatch: pytest.MonkeyPatch, func)
agent/tests/test_get_fundamentals_tool.py:16
↓ 2 callersFunction_install_synthetic_root
Add :data:`_SYNTHETIC_ROOT` to the internal root set for one test. Args: monkeypatch: pytest patcher (reverted automatically at teardown)
agent/tests/test_redaction.py:23
↓ 2 callersFunction_int_arg
Resolve an optional integer argument from tool kwargs. Args: value: Raw argument value; ``None`` and ``""`` mean "not supplied".
agent/src/tools/shadow_account_tool.py:42
↓ 2 callersFunction_int_condition_value
Extract a positive integer from a scalar or tuple condition.
agent/src/shadow_account/scanner.py:276
↓ 2 callersMethod_interaction_channel_allowed
( self, interaction: discord.Interaction, channel: Any | None, )
agent/src/channels/discord.py:143
↓ 2 callersMethod_internal_job
(self)
agent/tests/test_scheduled_research_model_compat.py:132
↓ 2 callersFunction_is_a_share
(code: str)
agent/backtest/loaders/tencent_loader.py:52
↓ 2 callersFunction_is_a_share
Accept either explicit `.SH/.SZ/.BJ` suffix or bare 6-digit ticker.
agent/backtest/loaders/mootdx_loader.py:55
↓ 2 callersFunction_is_a_share
(code: str)
agent/backtest/loaders/akshare_loader.py:43
↓ 2 callersMethod_is_allowed
(self, sender_id: str, chat_id: str, channel_type: str)
agent/src/channels/slack.py:672
↓ 2 callersFunction_is_allowed_import
Decide whether an import statement target is on the whitelist.
agent/tests/factors/test_alpha_purity.py:107
↓ 2 callersFunction_is_bj
Detect 北交所 symbols. Mootdx std factory does not serve BJ data (get_k_data raises KeyError, bars() returns empty), so the loader logs a warning
agent/backtest/loaders/mootdx_loader.py:63
↓ 2 callersMethod_is_bot_mention_event
(self, mention: Any)
agent/src/channels/feishu.py:946
↓ 2 callersFunction_is_canadian_symbol
Whether *text* is a Canadian ticker (TSX ``.TO`` / TSXV ``.V``). Used for fail-fast routing: Canadian symbols are served by Yahoo only, so Ea
agent/src/tools/symbol_search_tool.py:420
↓ 2 callersFunction_is_data_agent
An agent with at least one data/analysis tool beyond the generic kit.
agent/src/swarm/worker.py:1397
↓ 2 callersFunction_is_expired
(mandate: Mandate)
agent/src/live/sdk_order_gate.py:1086
↓ 2 callersMethod_is_fatal_auth_response
(self, response: Any)
agent/src/channels/matrix.py:672
↓ 2 callersFunction_is_forbidden_os_attr
Return whether ``os.<attr>`` shells out, spawns, execs, or reads env.
agent/backtest/runner.py:520
↓ 2 callersMethod_is_group_chat_id
Return True when chat_id appears to be a Signal group ID (base64).
agent/src/channels/signal.py:1340
↓ 2 callersFunction_is_int
True for real integers only (bool is explicitly excluded).
agent/src/strategy_discovery/facade.py:99
↓ 2 callersFunction_is_literal_node
Return whether an AST node is made only from literal values.
agent/backtest/runner.py:238
↓ 2 callersMethod_is_not_modified_error
(exc: Exception)
agent/src/channels/telegram.py:934
↓ 2 callersMethod_is_os_environ
Return True when *node* is ``os.environ``.
tools/ci_env_var_gate.py:98
↓ 2 callersFunction_is_plain_dir
(path: Path)
agent/src/tools/backtest_runs_tool.py:35
↓ 2 callersMethod_is_pre_startup_event
Skip events that landed in the timeline before this process started. Matrix sync replays the room timeline on each startup/restart; without
agent/src/channels/matrix.py:767
↓ 2 callersFunction_is_rate_limited
Return whether an exception is a quota rejection rather than a failure. Args: exc: The exception raised by a Tushare endpoint call.
agent/backtest/loaders/tushare.py:38
↓ 2 callersMethod_is_reply_to_bot
(self, message: Any)
agent/src/channels/whatsapp.py:625
↓ 2 callersFunction_is_responses_required_error
Return True when an endpoint refused tools and pointed at /v1/responses. Matches the endpoint's own instruction, not a model name: the message ha
agent/src/providers/llm.py:1043
↓ 2 callersFunction_is_safe_constant_assignment
Return whether a top-level assignment is literal-only.
agent/backtest/runner.py:263
↓ 2 callersFunction_is_safe_reference
Return whether an annotation/base expression cannot call code.
agent/backtest/runner.py:272
↓ 2 callersFunction_is_scalar
(value: Any)
agent/backtest/run_card.py:374
↓ 2 callersFunction_is_secret_key
Return whether a config key must never cross the wire in clear.
agent/src/api/channels_config_routes.py:125
↓ 2 callersFunction_is_stream_usage_unsupported_error
Return True when an endpoint rejects the `stream_options` field. Matches request-validation rejections of `stream_options`/`include_usage` re
agent/src/providers/llm.py:1009
↓ 2 callersFunction_is_subdaily_index
Report whether a price frame's index carries intraday bars. A frame is sub-daily when any timestamp has a time-of-day component, or when one
agent/backtest/loaders/tushare_fundamentals.py:275
↓ 2 callersFunction_is_sum
Whether a node is a binary ``+`` or ``-``.
agent/src/agent/grounding/policies.py:227
↓ 2 callersFunction_is_transient_windows_error
True for the Windows access/sharing race on os.replace. ``winerror`` is only set on Windows; ``getattr`` keeps this a hard False on POSIX, so
agent/src/swarm/store.py:88
↓ 2 callersFunction_is_us_equity
Return whether ``code`` is a US-equity symbol this loader handles.
agent/backtest/loaders/sina_loader.py:44
↓ 2 callersFunction_iter_factor_series_files
Yield bounded, non-symlinked ``ic_series.csv`` paths. Directory entries, nesting depth, and result count are all capped. Unlike ``Path.rglob(
agent/src/api/runs_routes.py:222
↓ 2 callersFunction_iter_positions
Flatten ``stock_positions`` channels into a flat position list.
agent/src/trading/connectors/longbridge/sdk.py:825
↓ 2 callersFunction_jjcc
Wrap period blocks in the ``var apidata={...}`` envelope the endpoint returns.
agent/tests/test_etf_holdings_tool.py:204
↓ 2 callersFunction_job
(**overrides: object)
agent/tests/test_scheduling_lifespan_owner.py:98
↓ 2 callersFunction_job
(**overrides)
agent/tests/test_scheduled_delivery_clobber.py:28
↓ 2 callersFunction_job_event_stream
Shared SSE loop for bench + compare jobs. Emits ``progress`` whenever ``n_done`` advances, then a single ``result`` (projected onto the wire
agent/src/api/alpha_routes.py:752
↓ 2 callersFunction_job_snapshot
Return a bounded public snapshot; expired/restarted jobs fail explicitly.
agent/src/api/alpha_routes.py:829
↓ 2 callersFunction_job_summary
Return the confirmation line printed after a job is created.
agent/cli/commands/research_playbook.py:355
↓ 2 callersMethod_join_meta_list
Render a meta list/tuple field as a comma-joined string (or None).
agent/src/strategy_discovery/facade.py:257
↓ 2 callersFunction_journal_with_dividend
One 600519 roundtrip plus (optionally) a 500-yuan 红利入账 cash row.
agent/tests/test_shadow_account.py:764
↓ 2 callersFunction_json_dumps
(value: object)
agent/src/goal/store.py:63
↓ 2 callersFunction_json_dumps
Serialize *value* to a compact JSON string.
agent/src/strategy_store/sqlite_store.py:82
↓ 2 callersFunction_json_list
Decode a gamma field that may arrive as a JSON string or a real list. Args: value: Raw field value (``'["Yes", "No"]'`` or ``["Yes", "No"
agent/src/tools/prediction_market_tool.py:264
↓ 2 callersFunction_json_object
Parse a JSON object from a tool result when possible.
agent/src/agent/grounding/evidence.py:375
↓ 2 callersFunction_known_channel_names
Return the discovered built-in channel adapter names.
agent/src/api/channels_config_routes.py:120
↓ 2 callersFunction_known_live_brokers
Return the recognized live-broker keys (SPEC §7.2) — OAuth/mandate path only.
agent/src/api/live_routes.py:467
↓ 2 callersFunction_korea_panel
Synthetic KRX-shape OHLCV panel; vwap injected as Korea typical price.
agent/tests/factors/test_korea_universe.py:27
↓ 2 callersFunction_krw_row
()
agent/tests/test_portfolio_fx.py:44
↓ 2 callersFunction_kst_today
()
agent/src/trading/connectors/kis/sdk.py:42
↓ 2 callersFunction_labels
(rows: list[list])
agent/tests/factors/test_zscore_by_group.py:26
↓ 2 callersFunction_lag_days
Return the whole days between a report period end and its filing date.
agent/src/tools/etf_holdings_tool.py:807
↓ 2 callersFunction_last_event_timestamp
Return the timestamp of the last line in ``events.jsonl``. Used by the stale-run reaper. Returns ``None`` when the file is missing, empty, or
agent/src/swarm/store.py:42
↓ 2 callersMethod_latest
(self, artifact_id: str)
agent/src/research_artifacts/store.py:155
↓ 2 callersFunction_latest_reportable_quarter
Return the newest quarter end whose 45-day filing deadline has passed.
agent/src/tools/institutional_holdings_tool.py:384
↓ 2 callersMethod_leading_placeholder_span
Detect a leading Signal mention placeholder when mention metadata is missing. Some clients/integrations deliver mentions as a leadin
agent/src/channels/signal.py:1203
↓ 2 callersFunction_leak_frame
A fundamental whose value on bar t is exactly the t->t+1 return. This is what a same-day ``filed`` value looks like when the filing is accept
agent/tests/test_alpha_bench_pit_lag.py:51
↓ 2 callersFunction_ledger
(tmp_path: Path, *calls: tuple[str, dict])
agent/tests/test_grounding_container_field_refs.py:39
↓ 2 callersFunction_ledger
(tmp_path: Path, tool: str, payload: dict)
agent/tests/test_grounding_code_tool_envelope.py:15
↓ 2 callersFunction_ledger
(tmp_path: Path)
agent/tests/test_grounding_indexed_field_refs.py:28
↓ 2 callersFunction_ledger_state
Return (size, mtime_ns) per real live ledger; None where absent.
agent/tests/conftest.py:113
↓ 2 callersFunction_leg_premiums
Resolve explicit or Black-Scholes entry premiums for every leg.
agent/backtest/options_payoff.py:144
↓ 2 callersFunction_lens_paths
Return every lens markdown file on disk, sorted by name.
agent/tests/test_investor_lenses_skill.py:67
↓ 2 callersMethod_leverage_for_symbol
(self, symbol: str)
agent/backtest/engines/composite.py:340
↓ 2 callersMethod_leverage_for_symbol
Return leverage used to size and margin one symbol.
agent/backtest/engines/base.py:929
↓ 2 callersFunction_lifecycle_status
Map upstream flags plus a settlement state onto one lifecycle label. ``archived`` is checked first because it describes the catalogue entry r
agent/src/tools/prediction_market_tool.py:441
↓ 2 callersMethod_line_has_noqa
Return True when the source line contains ``# noqa: env-gate``.
tools/ci_env_var_gate.py:92
↓ 2 callersFunction_list_page
Two-row pages of the Eastmoney ETF universe, total 3.
agent/tests/test_etf_holdings_tool.py:300
↓ 2 callersFunction_listed_task_ids
(manager: BackgroundManager)
agent/tests/test_background_scope_isolation.py:41
↓ 2 callersFunction_listening_socket
Hold *port* with a real listening socket (accepts TCP handshakes).
agent/tests/test_websocket_connection_test.py:33
↓ 2 callersFunction_live_api_base
Return the base URL of the running API server for runner-control calls. Mirrors :func:`cli.main._commit_mandate`: the base is read from ``VIB
agent/cli/_legacy.py:3135
↓ 2 callersFunction_llm_update
(provider: str, model: str, effort: str)
agent/tests/test_settings_api.py:864
↓ 2 callersFunction_load
(skill: str)
agent/tests/test_skill_swing_engine_causality.py:21
↓ 2 callersFunction_load_catalogue
Load every playbook, converting a parse failure into a message. Returns: A ``(playbooks, error)`` pair. A malformed file is surfaced rath
agent/cli/commands/research_playbook.py:136
↓ 2 callersFunction_load_channel_class_or_skip
Load a discovered channel; skip only on a genuine missing-dependency envelope.
agent/tests/test_channel_authoring_contract.py:33
↓ 2 callersFunction_load_cli_env
Load dotenv values before a CLI path reads configuration. The ``alpha`` dispatch path skips ``cli._legacy._ensure_cli_env``, so ``alpha bench
agent/src/factors/cli_handlers.py:79
↓ 2 callersFunction_load_codex_oauth_provider
Load oauth-cli-kit's provider constants without using its token cache.
agent/src/providers/openai_codex.py:197
↓ 2 callersFunction_load_config
()
agent/backtest/loaders/local_loader.py:175
↓ 2 callersFunction_load_module
(stem: str)
agent/tests/factors/test_fundamental_valuation_samples.py:93
↓ 2 callersFunction_load_one
Load a single playbook by slug, converting failures into a message.
agent/cli/commands/research_playbook.py:151
↓ 2 callersMethod_load_refs_from_disk
Load refs from disk with compatibility fallback for legacy layouts.
agent/src/channels/msteams.py:642
↓ 2 callersFunction_load_skill_dir
Load a skill from a directory. Args: dir_path: Skill directory path (must contain SKILL.md). Returns: Skill instance or None
agent/src/agent/skills.py:65
↓ 2 callersFunction_loader_cache_metadata_path
(cache_path: Path)
agent/backtest/loaders/base.py:714
↓ 2 callersFunction_local
Strip an XML namespace from a tag name.
agent/src/tools/institutional_holdings_tool.py:716
↓ 2 callersFunction_loguru_style_calls
(path: Path)
agent/tests/test_channel_stdlib_logging.py:47
↓ 2 callersFunction_long_payload
``count`` ascending daily observations, oldest first, from 2000-01-01.
agent/tests/test_fred_macro_tool.py:191
↓ 2 callersFunction_looks_like_ticker
(token: str)
agent/src/trading/connectors/etoro/instruments.py:364
↓ 2 callersFunction_looks_like_tool_call_syntax
Return whether final text still contains provider tool-call DSL. When tool calling is unavailable, a model may nonetheless answer with its na
agent/src/agent/tool_results.py:72
↓ 2 callersFunction_lookup_codes
(universe: str)
agent/src/tools/autopilot_tool.py:205
↓ 2 callersFunction_loopback_proxy_bypass
Keep local FastMCP fixture traffic out of developer/system HTTP proxies.
agent/tests/mcp_http_test_helpers.py:166
↓ 2 callersFunction_make_agent_spec
Build a minimal SwarmAgentSpec for direct worker invocation.
agent/tests/test_swarm_m1_config_plumbing.py:31
← previousnext →4,001–4,100 of 26,887, ranked by callers