MCPcopy Create free account

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

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

↓ 5 callersFunction_login
Return an authenticated KiteConnect client (access_token set).
agent/src/trading/connectors/zerodha/sdk.py:230
↓ 5 callersFunction_make_agent_spec
(max_retries: int)
agent/tests/test_swarm_retry_artifact_isolation.py:56
↓ 5 callersFunction_make_channel
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_napcat_image_file_size.py:22
↓ 5 callersFunction_make_context
(**overrides: Any)
agent/tests/test_advisory.py:153
↓ 5 callersFunction_make_entry_file
Write a dummy memory file for archival tests.
agent/tests/memory/test_compression.py:27
↓ 5 callersFunction_make_frontend_with_vite
Create a fake frontend directory with a placeholder Vite binary so that ``cmd_dev``'s pre-flight check (``node_modules/.bin/vite``) passes dur
agent/tests/test_cli_setup_dev.py:272
↓ 5 callersFunction_make_run_dir
(root: Path, name: str, metrics_row: str = _METRICS_ROW)
agent/tests/test_backtest_records_bench.py:84
↓ 5 callersFunction_make_runtime
Build a SwarmRuntime backed by a tmp-path SwarmStore.
agent/tests/test_swarm_m1_config_plumbing.py:29
↓ 5 callersFunction_make_runtime
(tmp_path: Path)
agent/tests/test_swarm_retry_artifact_isolation.py:51
↓ 5 callersFunction_make_store
(tmp_path)
agent/tests/test_strategy_discovery_facade.py:157
↓ 5 callersFunction_managed_accounts
(ib: Any)
agent/src/trading/connectors/ibkr/local.py:610
↓ 5 callersFunction_manifest_entry
Build a run_card manifest entry for a file on disk (run_card 1.0 shape).
agent/tests/test_run_artifact_tool.py:79
↓ 5 callersMethod_mark_terminal
(self, status: AttemptStatus)
agent/src/session/models.py:293
↓ 5 callersFunction_mcp_guard
(live_runtime: Path, adapter, *, max_order_notional_usd: float = 750.0)
agent/tests/test_limit_price_notional.py:147
↓ 5 callersFunction_measured_bars_per_year
The docstring contract, computed independently of the implementation.
agent/tests/test_effective_bars_per_year_span.py:24
↓ 5 callersFunction_metrics
(port_returns, bench_returns)
agent/tests/test_metrics_tracking_error.py:28
↓ 5 callersFunction_ms
Epoch milliseconds for a wall-clock instant in a named timezone.
agent/tests/test_runtime_triggers.py:27
↓ 5 callersFunction_new_session
(client, **body)
agent/tests/test_session_model_selection.py:390
↓ 5 callersFunction_normalize
Convert a raw pykrx OHLCV frame into the project's canonical shape. Args: frame: pykrx output — date-indexed with Korean column names
agent/backtest/loaders/pykrx_loader.py:167
↓ 5 callersFunction_normalize
Read ``content`` as a renderer shows its numbers. Invisible characters are dropped; a backslash before ASCII punctuation and a character refe
agent/evals/grounding/figures.py:423
↓ 5 callersMethod_normalize
Normalize nonnegative weights to sum 1.
agent/backtest/optimizers/base.py:160
↓ 5 callersFunction_normalize_symbol
Normalize forex symbol to 'XXX/YYY' format.
agent/backtest/engines/_market_hooks.py:717
↓ 5 callersFunction_normalized_requirement_name
(requirement: str)
agent/tests/test_packaging_dependencies.py:12
↓ 5 callersFunction_now_iso
()
agent/src/goal/store.py:56
↓ 5 callersFunction_now_iso
Return the current UTC time as an ISO-8601 string.
agent/src/strategy_store/sqlite_store.py:72
↓ 5 callersFunction_now_iso
Return the current UTC time as an ISO-8601 string.
agent/src/strategy_store/store.py:39
↓ 5 callersFunction_num_or_none
Coerce an optional numeric argument, rejecting malformed input. Args: value: Raw argument value; ``None`` and ``""`` mean "not supplied".
agent/src/tools/trading_connector_tool.py:130
↓ 5 callersFunction_number
(value: Decimal)
agent/src/portfolio/service.py:159
↓ 5 callersFunction_number
( value: Any, name: str, *, non_negative: bool = False, positive: bool = False, )
agent/src/trading/connectors/binance/usdm.py:315
↓ 5 callersFunction_numbers
Every number in normalized text, with a decimal comma read as one (#1418). A comma is a decimal point when the integer part is exactly "0" ("0,66
agent/evals/grounding/figures.py:483
↓ 5 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/sdm_status_tool.py:25
↓ 5 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/research_artifact_tool.py:12
↓ 5 callersFunction_order_error
(cfg: EtoroConfig, message: str, **extra: Any)
agent/src/trading/connectors/etoro/trading.py:28
↓ 5 callersFunction_order_error
Build a fail-closed error payload carrying profile/guard context.
agent/src/trading/connectors/mt5/orders.py:398
↓ 5 callersFunction_panel
(returns)
agent/tests/test_risk_xray_contributions.py:23
↓ 5 callersFunction_parse
(*rows: str)
agent/tests/test_grounding_shape_hardening.py:409
↓ 5 callersFunction_patch
(monkeypatch: pytest.MonkeyPatch, pages: Dict[int, Dict[str, Any]])
agent/tests/test_nobitex_loader.py:59
↓ 5 callersMethod_patch
(self, monkeypatch, payload)
agent/tests/test_gildata_research_tools.py:57
↓ 5 callersFunction_patch_sec
( monkeypatch: pytest.MonkeyPatch, facts_by_symbol: dict[str, dict[str, object]], )
agent/tests/test_fundamentals_gross_profit_fallback.py:45
↓ 5 callersFunction_path
(proposal_id: str)
agent/src/scheduled_research/proposals.py:33
↓ 5 callersFunction_payload
Wrap report rows in the datacenter ``result.data`` envelope.
agent/tests/test_lockup_expiry_tool.py:22
↓ 5 callersMethod_persist
Best effort: a full or unwritable runtime root must not break the run.
agent/src/tools/background_tools.py:232
↓ 5 callersFunction_policy
()
agent/tests/test_swarm_selected_inputs.py:76
↓ 5 callersFunction_position
(direction=1, size=5.0)
agent/tests/test_base_engine.py:92
↓ 5 callersMethod_positions_via
(self, cfg)
agent/tests/test_mt5_connector.py:453
↓ 5 callersMethod_post_json
(self, path: str, payload: dict[str, Any])
agent/src/channels/mochat.py:915
↓ 5 callersFunction_prepare
(panel: dict, metas: dict[str, dict] | None = None)
agent/tests/test_alpha_bench_csi300_sector.py:114
↓ 5 callersMethod_prepare_cjk
Insert spaces for CJK chars and generate bigrams for better matching. Example: "记忆系统" → "记 忆 系 统 记忆 忆系 系统" This allows both single-ch
agent/src/memory/search_index.py:476
↓ 5 callersFunction_prepare_sandbox_home
Create an ephemeral HOME and symlink in only the loader-owned paths. The generated strategy runs in the same subprocess as the data loaders, so
agent/src/core/runner.py:262
↓ 5 callersMethod_priced
Look a product up, recording the miss when it falls back. A product absent from one of the tables is priced on a generic constant tha
agent/backtest/engines/china_futures.py:195
↓ 5 callersFunction_print
(msg: str)
agent/src/factors/cli_handlers.py:122
↓ 5 callersMethod_process_message
Process incoming message and forward to bus.
agent/src/channels/wecom.py:223
↓ 5 callersMethod_prompt_cache_request
Return the messages and call kwargs to send, with cache markers when they apply.
agent/src/providers/chat.py:83
↓ 5 callersFunction_put_rotated_id
PUT a connection-key edit (never noop) and return the JSON response.
agent/tests/test_channel_reset_notice.py:190
↓ 5 callersFunction_pykrx_frame
Synthetic frame in pykrx's native shape (Korean columns, date index).
agent/tests/test_pykrx_loader.py:44
↓ 5 callersFunction_quarter_label
Render a ``YYYY-MM-DD`` quarter end as ``YYYYQn``, or ``None`` if unusable.
agent/src/tools/institutional_holdings_tool.py:372
↓ 5 callersFunction_range
K线振幅(最高 - 最低)。 Args: h: 最高价序列。 l: 最低价序列。 Returns: 每根K线的振幅。
agent/src/skills/candlestick/example_signal_engine.py:35
↓ 5 callersFunction_read
(path: Path)
agent/tests/test_config_writer.py:14
↓ 5 callersFunction_read
(path: str, run: Path)
agent/tests/test_read_file_refusals.py:37
↓ 5 callersFunction_read_jsonl
(path: Path)
agent/tests/test_governance.py:533
↓ 5 callersFunction_read_window
(run: Path, **arguments)
agent/tests/test_read_file_refusals.py:117
↓ 5 callersMethod_record_error
Merge a scrubbed one-line runtime-error summary into ``_status[name]``. ``context`` is one of ``_ERROR_CONTEXTS``; the traceback stays in the
agent/src/channels/manager.py:395
↓ 5 callersMethod_records
(self)
agent/tests/test_fetch_sina_penalties.py:199
↓ 5 callersFunction_reject_copy_on_paper
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/copy_trading.py:36
↓ 5 callersMethod_release_session
Release a session claim. Safe to call when no claim is held.
agent/src/session/service.py:165
↓ 5 callersFunction_render_snapshot
Render a compact goal card.
agent/cli/commands/goal.py:92
↓ 5 callersFunction_request
(**overrides)
agent/tests/test_paper_trade_order_status.py:36
↓ 5 callersFunction_request
(cash: float, positions: list[dict], orders: list[dict])
agent/tests/test_paper_trade_golden_us.py:58
↓ 5 callersFunction_require_alpaca
()
agent/src/trading/connectors/alpaca/sdk.py:820
↓ 5 callersFunction_require_openapi
Return the ``openapi`` submodule from whichever SDK package is installed.
agent/src/trading/connectors/longbridge/sdk.py:660
↓ 5 callersFunction_require_paid_in
Reject a zero or negative denominator for a capital multiple. Args: paid_in: Paid-in capital as a positive magnitude. Returns:
agent/src/quantlib/fundmath.py:696
↓ 5 callersFunction_require_str
(value: Any, path: str)
agent/src/tools/paper_trade/schema.py:341
↓ 5 callersFunction_resolve_console
Return the shared CLI console.
agent/cli/commands/session.py:16
↓ 5 callersFunction_resolve_session_id
Resolve the goal session: explicit id, then per-connection id, then one id per server process. The in-process tool registry injects the host
agent/mcp_server.py:419
↓ 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 callersMethod_resume_due
Dispatch due durable retries through the existing bounded worker queue.
agent/src/data_gateway/history_store.py:286
↓ 5 callersFunction_returns_panel
Stack return blocks into a date-indexed multi-asset returns frame.
agent/tests/test_regime.py:25
↓ 5 callersFunction_route_sdk_write
( profile: TradingProfile, *, remote_tool: str, risk_reducing: bool, intent: Any | None,
agent/src/trading/service.py:839
↓ 5 callersFunction_row
Build one companyfacts unit row; ``start=None`` makes it an instant fact.
agent/tests/test_sec_period_frames.py:26
↓ 5 callersFunction_run
(run_dir: Path, **kwargs)
agent/tests/test_pattern_tool_argument_coercion.py:32
↓ 5 callersFunction_run
(**kwargs: Any)
agent/tests/test_report_audit_tool.py:320
↓ 5 callersFunction_run
(loader: _Loader, orders: list[dict[str, Any]] | None = None)
agent/tests/test_paper_trade_5m_payload.py:127
↓ 5 callersFunction_run
Run a tool-less worker against the given scripted LLM. Args: monkeypatch: pytest monkeypatch fixture (zeroes the retry sleep). tm
agent/tests/test_swarm_worker_stream_retry.py:98
↓ 5 callersFunction_run
(rid: str = "r")
agent/tests/test_swarm_store_atomic_write.py:35
↓ 5 callersFunction_run
(capsys, args, monkeypatch)
agent/tests/test_alpha_bench_strict_cli.py:118
↓ 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_card
( codes: list[str] | None = None, warnings: list[str] | None = None )
agent/tests/test_backtest_summary.py:49
↓ 5 callersFunction_run_one_tool_call
Drive one tool call through ``AgentRuntime`` with a real ``TraceWriter``. Args: registry: Stub registry supplying the tool result.
agent/tests/test_redaction_shared.py:406
↓ 5 callersFunction_run_v13
(orders: list[dict[str, Any]], *, ratio: float = 0.1)
agent/tests/test_paper_trade_5m_golden.py:377
↓ 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:726
↓ 5 callersMethod_safe_float
(value: Any)
agent/src/channels/msteams.py:591
↓ 5 callersFunction_sample_rows
()
agent/tests/test_tiingo_loader.py:76
↓ 5 callersFunction_sample_summary
()
agent/tests/test_stock_profile_tool.py:15
↓ 5 callersFunction_save_h19_proposal
Persist the H19 fixture: numeric leverage and a two-item whitelist.
agent/tests/test_consent_commit.py:331
↓ 5 callersFunction_save_partial
Save recovery state atomically; a failed save leaves the prior file intact.
agent/cli/onboard.py:60
↓ 5 callersFunction_scalar
Return ``value`` as a float, refusing any container. This module is scalar-only (see the module docstring). Broadcasting would return an arra
agent/src/quantlib/impact.py:74
↓ 5 callersMethod_scaled_in_engine
Buy on bar 0, add on bar 1 — the position still carries entry idx 0.
agent/tests/test_vietnam_equity_engine.py:155
↓ 5 callersFunction_select_with_back
Vertically-scrollable selector.
agent/cli/onboard.py:82
↓ 5 callersFunction_sell
(limit: float | None = None, qty: float = 100)
agent/tests/test_paper_trade_5m_partial_fills.py:210
↓ 5 callersFunction_sell
(limit: float | None = None, qty: float = 100)
agent/tests/test_paper_trade_5m_limit_price.py:192
← previousnext →2,101–2,200 of 30,405, ranked by callers