MCPcopy Create free account

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

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

↓ 1 callersFunction_resolve_override_transport
Infer transport intent from a partial MCP server override.
agent/src/config/loader.py:301
↓ 1 callersFunction_resolve_panel_long_columns
Map canonical panel fields onto a long-layout file's column headers. Mirrors ``_resolve_columns``'s matching strategy (case-insensitive alias
agent/src/entities/ingest.py:743
↓ 1 callersFunction_resolve_period_count
Validate every driver sequence shares one non-zero length and return it. Args: drivers: The driver mapping already checked by
agent/src/quantlib/valuation/threestatement.py:477
↓ 1 callersFunction_resolve_position_size
Explicit sizing wins; otherwise the mean recorded exposure; else unknown.
agent/src/strategy_discovery/evidence_harness.py:387
↓ 1 callersFunction_resolve_preset
Resolve the preset to run, returning an error string when ambiguous.
agent/src/tools/swarm_tool.py:438
↓ 1 callersFunction_resolve_profile
Return the selected profile, applying any per-commit adjustments. Adjustments may only *narrow* limits relative to the rendered profile; anyt
agent/src/live/mandate/commit.py:265
↓ 1 callersFunction_resolve_sections
Validate the requested sections, defaulting to all when omitted. Args: sections: Requested section names, or ``None`` for every section.
agent/src/tools/stock_profile_tool.py:243
↓ 1 callersMethod_resolve_server_upload_limit_bytes
Query homeserver upload limit once per channel lifecycle.
agent/src/channels/matrix.py:432
↓ 1 callersFunction_resolve_source
Pick a valid loader source from the hypothesis, else fall back to ``auto``. A hypothesis ``data_sources`` entry is free text, so an unrecognised
agent/src/tools/autopilot_tool.py:210
↓ 1 callersFunction_resolve_symbol
Map a base symbol to the account's exact broker symbol (Exness ``EURUSDm``). Mirrors mt5's ``symbols_get(f"{base}*")`` resolution against the acc
agent/backtest/loaders/tickerall_loader.py:146
↓ 1 callersMethod_resolve_target_chat_id
Resolve human-friendly Slack targets to concrete IDs when needed.
agent/src/channels/slack.py:224
↓ 1 callersFunction_resolve_timeout
(timeout_seconds: float | None)
agent/src/tools/paper_trade/strategy_exec.py:484
↓ 1 callersFunction_resolve_trace_text
( trace_root: Path, record: dict[str, Any], field_name: str )
agent/evals/harness/artifacts.py:157
↓ 1 callersFunction_resolve_tushare_api
Return an injectable API unchanged; build from token or None. A missing token returns None (the free baostock fallback serves those fields) i
agent/backtest/loaders/valuation_loader.py:100
↓ 1 callersFunction_resolve_us_secid
Resolve a US ticker to its Eastmoney secid via search, with caching. Args: code: Bare upper-cased US ticker (e.g. ``"AAPL"``). Retur
agent/backtest/loaders/eastmoney_client.py:192
↓ 1 callersMethod_resolve_user_handle
(self, handle: str)
agent/src/channels/slack.py:284
↓ 1 callersFunction_resolver_payload
(query: str, candidates: list[dict[str, Any]])
agent/tests/test_grounding_resolution_context.py:15
↓ 1 callersFunction_resolver_payload
()
agent/tests/test_grounding_release.py:84
↓ 1 callersFunction_resp_message
Pull a top-level OKX error message (``msg``) when present.
agent/src/trading/connectors/okx/sdk.py:579
↓ 1 callersFunction_response_error_body
(response: requests.Response)
agent/src/trading/connectors/etoro/client.py:369
↓ 1 callersFunction_responses_text_stream
(model: str)
agent/tests/test_llm_responses_self_heal.py:106
↓ 1 callersFunction_responses_tool_call
(model: str)
agent/tests/test_llm_responses_self_heal.py:74
↓ 1 callersFunction_restore_cache_index_dtypes
Best-effort restore of the per-level index dtypes recorded at write time. Cosmetic and non-fatal: duckdb parquet may rewrite datetime resolution,
agent/backtest/loaders/base.py:811
↓ 1 callersFunction_result
(ok: bool, *, decision: str | None = None, status: int | None = None, body: Any = None, error: str
agent/src/trading/tap_forward.py:214
↓ 1 callersFunction_result
(ok: bool, code: str, detail: str, sdk_available: bool)
agent/src/api/channels_config_routes.py:555
↓ 1 callersFunction_result
(excluded: dict[str, int])
agent/tests/test_shadow_currency_disclosure.py:49
↓ 1 callersFunction_result_summary
(tool: str, status: str, preview: Any)
agent/cli/ui/rail.py:125
↓ 1 callersFunction_retention_order
Rank record indices newest-first, round-robin across stocks. Trimming drops from the tail of this ranking, so every requested stock keeps its
agent/src/tools/taiwan_stock_data_tool.py:208
↓ 1 callersMethod_retry_delay_ms
Return bounded exponential backoff for a dispatch failure count.
agent/src/scheduled_research/executor.py:758
↓ 1 callersFunction_rewiring_scores
Rolling per-bar, per-asset rewiring scores (row means of |Δρ|). Args: returns: (n_bars, n_assets) return matrix, may contain NaN.
agent/src/factors/zoo/academic/corr_rewire.py:102
↓ 1 callersFunction_rich_result
A semantically coherent cn_a strategy_path-shaped document exercising every success-schema field (multi-day range with a weekend skip).
agent/tests/test_paper_trade_schema.py:73
↓ 1 callersFunction_rising_series
()
agent/tests/test_rebalance_tolerance.py:34
↓ 1 callersFunction_risk_tier_from_text
Parse and validate goal risk tier.
agent/mcp_server.py:524
↓ 1 callersFunction_risk_to_etf_profile
Map tolerance to etf_allocation_desk risk_profile values.
agent/src/tools/swarm_variables.py:186
↓ 1 callersFunction_risk_verdicts
(case: HarnessCase, bundle: ArtifactBundle)
agent/evals/harness/assertions.py:654
↓ 1 callersFunction_rlimit_as_bytes
Return the configured RLIMIT_AS ceiling in bytes.
agent/src/core/runner.py:74
↓ 1 callersFunction_robinhood_seed_config
()
agent/tests/test_agent_config.py:59
↓ 1 callersFunction_role
(message: Any)
agent/src/providers/claude_cli.py:168
↓ 1 callersFunction_rounded
Round a finite scalar for stable, compact JSON.
agent/src/tools/options_payoff_tool.py:347
↓ 1 callersFunction_rounded_array
Round a numeric array for stable, compact JSON.
agent/src/tools/options_payoff_tool.py:352
↓ 1 callersFunction_rounded_or_none
Round a scalar that may be deliberately absent. Args: value: Number to round, or ``None``. Returns: The rounded value, or ``
agent/src/tools/cashflow_analytics_tool.py:467
↓ 1 callersFunction_roundtrip
()
agent/tests/test_oauth_token_cache.py:70
↓ 1 callersFunction_roundtrip_url_keys
()
agent/tests/test_oauth_token_cache.py:91
↓ 1 callersFunction_router_link_targets
Return every reference link target written in the router.
agent/tests/test_investor_lenses_skill.py:165
↓ 1 callersFunction_row_date
Return the date that positions a row in time. Args: row: One result record. Returns: The row's date string, or an empty stri
agent/src/tools/taiwan_stock_data_tool.py:189
↓ 1 callersMethod_row_from_record
Convert a database record back into an ``EvidenceRow``. Returns ``None`` for records whose regime is outside ``REGIMES``. Such rows c
agent/src/strategy_discovery/evidence_store.py:373
↓ 1 callersFunction_row_get
(row: Mapping[str, Any], name: str, default: Any = None)
agent/src/trading/connectors/futu/sdk.py:1186
↓ 1 callersMethod_row_to_bench_result
Convert a database row to a ``BenchResult`` dataclass.
agent/src/strategy_store/sqlite_store.py:333
↓ 1 callersMethod_row_to_decay_snapshot
Convert a database row to a ``DecaySnapshot`` dataclass.
agent/src/strategy_store/sqlite_store.py:359
↓ 1 callersFunction_row_weights
(row: Dict[str, Any])
agent/src/api/attribution_core.py:553
↓ 1 callersFunction_rows
()
agent/tests/test_indicator_period_nonpositive.py:11
↓ 1 callersFunction_rows_from_payload
Zip Finnhub's parallel candle arrays into ascending row dicts. Args: payload: Decoded JSON body from the stock-candle endpoint. Retu
agent/backtest/loaders/finnhub_loader.py:91
↓ 1 callersFunction_rows_from_txt
Extract the ``datas`` rows from one ``txt`` block, if present. Args: txt: One entry of an answer's ``txt`` list. Returns: Th
agent/src/tools/iwencai_tool.py:100
↓ 1 callersFunction_rtl_lines
Wrap logical text before shaping/reordering each visual line. Reordering the whole paragraph before wrapping reverses its line order. Widths
agent/src/tools/pdf_report.py:62
↓ 1 callersFunction_rule_without_price
()
agent/tests/test_shadow_account.py:2033
↓ 1 callersFunction_rules_text
Join a list of rules into the one-rule-per-line text the store keeps. The rule fields are plain text, but an agent following an extraction step
agent/src/tools/sdm_register_tool.py:28
↓ 1 callersFunction_run
(parser, args)
agent/src/pixel_agents/cli.py:72
↓ 1 callersMethod_run
(self, **kwargs: Any)
agent/src/tools/portfolio_risk_tool.py:98
↓ 1 callersMethod_run
(self)
agent/src/scheduling/kernel.py:256
↓ 1 callersMethod_run
(self, tmp_path, extra)
agent/tests/test_warmup_window.py:217
↓ 1 callersFunction_run_agent
(agent_id: str, whitelist: list[str], remote_tools, tool_call: str)
agent/tests/test_swarm_m4_e2e.py:350
↓ 1 callersFunction_run_all_zoos_with_progress
Aggregate across every zoo for the ``--yes`` / no-``--zoo`` case.
agent/src/factors/cli_handlers.py:481
↓ 1 callersMethod_run_bot
Run the bot connection with auto-reconnect.
agent/src/channels/qq.py:232
↓ 1 callersMethod_run_bound
Run the ReAct loop with the LLM session already bound. Args: user_message: User message. history: Prior conversation
agent/src/agent/loop.py:387
↓ 1 callersFunction_run_call_prefix
(path, count, bars_per_year)
agent/tests/test_options_hv_bars_per_year.py:214
↓ 1 callersFunction_run_card_data_sources
Return source names for run-card evidence.
agent/backtest/engines/base.py:100
↓ 1 callersFunction_run_cli
Run one ``claude -p`` turn and return its parsed JSON result.
agent/src/providers/claude_cli.py:259
↓ 1 callersFunction_run_connector_command_from_repl
Run a ``/connector ...`` subcommand from the REPL via the dispatcher. ``/connector`` is a thin in-REPL bridge to the ``vibe-trading connector``
agent/cli/main.py:940
↓ 1 callersFunction_run_data_command_from_repl
Run a ``/data ...`` subcommand from the REPL via the CLI dispatcher.
agent/cli/main.py:971
↓ 1 callersFunction_run_dir
(base: Path)
agent/tests/test_autopilot_backtest_validation_evidence.py:40
↓ 1 callersFunction_run_dir_alias
The root-relative path a ref token names through a stand-in for the active run. A model writes the active run directory as the placeholder ``run_
agent/src/agent/grounding/policies.py:2605
↓ 1 callersFunction_run_dir_allowed
Whether a resolved run dir lives inside one of the allowed roots.
agent/src/tools/strategy_discovery_tool.py:410
↓ 1 callersFunction_run_dir_for_hypothesis
Return a path-contained run directory for any persisted hypothesis id.
agent/src/tools/autopilot_tool.py:252
↓ 1 callersFunction_run_direct_loop
( tmp_path: Path, llm: Any, max_iterations: int = 8, events: list[tuple[str, dict[str, Any]]]
agent/tests/test_grounding_recovery.py:354
↓ 1 callersMethod_run_global
Fetch broad China-market headlines from Eastmoney. Args: limit: Maximum number of headlines. Returns: A succ
agent/src/tools/stock_news_tool.py:334
↓ 1 callersFunction_run_hk
(orders: list[dict], close: float)
agent/tests/test_paper_trade_limits.py:73
↓ 1 callersFunction_run_inputs_digest
Stable digest of the profile inputs a cached result was produced from.
agent/src/shadow_account/backtester.py:317
↓ 1 callersMethod_run_job
(self, job: ScheduledResearchJob, now_ms: int)
agent/src/scheduled_research/executor.py:379
↓ 1 callersFunction_run_lifecycle
(engine: _LifecycleEngine)
agent/tests/test_base_engine.py:723
↓ 1 callersFunction_run_live_session_attempt
Own a queued session attempt until completion or cooperative cancellation. Args: svc: The public session service used by the live runner.
agent/src/api/live_routes.py:581
↓ 1 callersMethod_run_once
(self)
agent/src/channels/napcat.py:106
↓ 1 callersFunction_run_one
Run a single bench end-to-end. Returns a summary entry. Delegates the math to ``src.factors.bench_runner.run_bench``; this wrapper just adds
agent/scripts/w4a_run_benches.py:54
↓ 1 callersFunction_run_one_turn
Execute a single agent turn with the Rich dashboard. Routes through :func:`cli._legacy._run_agent` so all tool callbacks, persistent memory,
agent/cli/main.py:701
↓ 1 callersMethod_run_or_schedule_close
Consume an async close from either synchronous or async code.
agent/src/providers/chat.py:440
↓ 1 callersMethod_run_preemptive_sweep
Cancel resting orders + (per mandate) flatten positions, exactly once. Invoked the moment the runner observes a tripped HALT. Idempotent acro
agent/src/live/runtime/runner.py:624
↓ 1 callersMethod_run_reconcile
Reconcile broker truth before trading; abort on unsafe/error. Returns: A tick result dict when the tick must abort (unsafe state
agent/src/live/runtime/runner.py:466
↓ 1 callersFunction_run_response_payload
Return a JSON-ready payload for opt-in run response variants.
agent/src/api/runs_routes.py:630
↓ 1 callersMethod_run_sandboxed
Run the subprocess, dropping to ``vibe-sandbox`` when the host allows it. When the UID drop is unavailable — no such user (the common case ou
agent/src/core/runner.py:571
↓ 1 callersFunction_run_single_zoo_with_progress
Run :func:`bench_runner.run_bench` for one zoo with a Rich progress bar.
agent/src/factors/cli_handlers.py:432
↓ 1 callersFunction_run_startup_preflight
Run preflight checks on server startup.
agent/api_server.py:129
↓ 1 callersFunction_run_step
Run one subprocess step, returning True on success. Decodes subprocess output as UTF-8 with ``errors="replace"`` so that non-ASCII bytes emit
agent/cli/_legacy.py:6391
↓ 1 callersMethod_run_stock
Fetch single-security headlines, routing by exchange suffix. Args: code_arg: Raw ``code`` argument (any type). limit:
agent/src/tools/stock_news_tool.py:352
↓ 1 callersFunction_run_summary
(run_root: Path)
agent/src/tools/backtest_runs_tool.py:99
↓ 1 callersFunction_run_test
Probe credentials on an ephemeral instance; never persists anything.
agent/src/api/channels_config_routes.py:543
↓ 1 callersMethod_run_to_terminal
Run the callable off the loop, then own the terminal write. Sync callables go through ``asyncio.to_thread`` (they may block for hours
agent/src/scheduled_research/internal_dispatch.py:156
↓ 1 callersFunction_run_with_graceful_cancel
Run an agent loop with first-Ctrl+C = graceful cancel. First SIGINT during the run sets ``agent._cancelled`` so the loop exits cleanly after
agent/cli/_legacy.py:1286
↓ 1 callersMethod_run_with_retry
Run an async MCP operation with bounded transient retries. Args: operation_name: Human-readable operation label. oper
agent/src/tools/mcp.py:799
↓ 1 callersFunction_run_worker_impl
Execute a single worker task using a lightweight ReAct loop. Steps: 1. Build filtered ToolRegistry from agent_spec.tools 2. Build sys
agent/src/swarm/worker.py:612
↓ 1 callersFunction_run_zoo
(z: str, base: int, update: Callable[[int, str], None] | None)
agent/src/factors/cli_handlers.py:499
↓ 1 callersFunction_runner_liveness_state
Build the runner-liveness snapshot for a broker (SPEC §7.5 contract).
agent/src/api/live_routes.py:548
← previousnext →7,201–7,300 of 26,887, ranked by callers