MCPcopy Create free account

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

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

↓ 5 callersFunction_normalize_frame
Normalize raw yfinance data into the backtest OHLCV schema. Args: frame: Raw or symbol-scoped yfinance dataframe. requested_inter
agent/backtest/loaders/yfinance_loader.py:196
↓ 5 callersFunction_normalize_symbol
Normalize forex symbol to 'XXX/YYY' format.
agent/backtest/engines/_market_hooks.py:618
↓ 5 callersFunction_normalized_requirement_name
(requirement: str)
agent/tests/test_packaging_dependencies.py:12
↓ 5 callersFunction_now_iso
()
agent/src/goal/store.py:55
↓ 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:157
↓ 5 callersFunction_number
( value: Any, name: str, *, non_negative: bool = False, positive: bool = False, )
agent/src/trading/connectors/binance/usdm.py:315
↓ 5 callersFunction_ok
(payload: dict[str, Any])
agent/src/tools/sdm_status_tool.py:25
↓ 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_parse
(*rows: str)
agent/tests/test_grounding_shape_hardening.py:407
↓ 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:53
↓ 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 callersMethod_path_for
(self, record: TaskRecord)
agent/src/tools/background_store.py:105
↓ 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:190
↓ 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:908
↓ 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:450
↓ 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:181
↓ 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:129
↓ 5 callersMethod_process_message
Process incoming message and forward to bus.
agent/src/channels/wecom.py:223
↓ 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:40
↓ 5 callersFunction_quarter_label
Render a ``YYYY-MM-DD`` quarter end as ``YYYYQn``, or ``None`` if unusable.
agent/src/tools/institutional_holdings_tool.py:371
↓ 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 callersMethod_read_json
(path: Path)
agent/src/session/store.py:355
↓ 5 callersFunction_read_jsonl
(path: Path)
agent/tests/test_governance.py:533
↓ 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 callersFunction_render_snapshot
Render a compact goal card.
agent/cli/commands/goal.py:89
↓ 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 callersMethod_require
(self, order_id: str)
agent/src/tools/paper_trade/order_lifecycle.py:270
↓ 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:295
↓ 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:378
↓ 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_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:815
↓ 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:28
↓ 5 callersFunction_run
(**kwargs: Any)
agent/tests/test_report_audit_tool.py:316
↓ 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:104
↓ 5 callersFunction_run
(tmp_path: Path, monkeypatch, *, provider: str, model: str, payload_chars: int = 24_000, env_window:
agent/tests/test_context_budget.py:236
↓ 5 callersFunction_run
Run one tool-enabled worker against the scripted LLM and registry.
agent/tests/test_swarm_worker_cancel.py:94
↓ 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_agent
Build AgentLoop and execute, return result dict. Args: proposal_sink: Optional callable invoked with the payload of every ``m
agent/cli/_legacy.py:1082
↓ 5 callersFunction_run_card
( codes: list[str] | None = None, warnings: list[str] | None = None )
agent/tests/test_backtest_summary.py:45
↓ 5 callersFunction_run_worker_to_terminal
Run the real worker on a scripted model until it stops.
agent/tests/test_swarm_worker_message_log.py:97
↓ 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_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:327
↓ 5 callersFunction_save_partial
Best-effort atomic write to ``.env.partial`` (crash-resilience nicety). Mirrors :func:`_finalize`: ``mkstemp`` creates the temp file 0600-only, s
agent/cli/onboard.py:129
↓ 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. Returns chosen value, BACK, or CANCEL. Keybindings: ↑/↓ navigate, Enter confirm, Esc/← back, Ctrl+C cancel. F
agent/cli/onboard.py:186
↓ 5 callersFunction_sell
(limit=None, qty=100, symbol=_SYM)
agent/tests/test_paper_trade_5m_engine.py:203
↓ 5 callersFunction_sell
(limit: float | None = None, qty: float = 100)
agent/tests/test_paper_trade_5m_limit_price.py:192
↓ 5 callersMethod_send_typing
Best-effort sendtyping wrapper.
agent/src/channels/weixin.py:1067
↓ 5 callersMethod_sender_id
Build sender_id with username for allowlist matching.
agent/src/channels/telegram.py:1162
↓ 5 callersMethod_session_dir
(self, session_id: str)
agent/src/session/store.py:43
↓ 5 callersFunction_session_id
Return the active CLI session id, optionally creating one.
agent/cli/commands/goal.py:71
↓ 5 callersMethod_session_id
(self, kwargs: dict[str, Any])
agent/src/tools/goal_tool.py:134
↓ 5 callersFunction_set_environment
(monkeypatch: pytest.MonkeyPatch, values: dict[str, str])
agent/tests/test_longbridge_credentials.py:30
↓ 5 callersMethod_setup_mocks
(self, monkeypatch, n_alphas=5)
agent/tests/test_bench_parallel.py:72
↓ 5 callersMethod_should_suppress_outbound
(self, msg: OutboundMessage)
agent/src/channels/manager.py:436
↓ 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:101
↓ 5 callersFunction_split_alphas_by_universe_support
Split the selection into (benchable, excluded) for this universe. ``fund:*`` inputs are served from SEC US filings, which only the sp500 pane
agent/src/tools/alpha_bench_tool.py:718
↓ 5 callersMethod_stop_typing
Stop typing indicator for a channel.
agent/src/channels/discord.py:822
↓ 5 callersFunction_store
(tmp_path)
agent/tests/test_swarm_events_partial_tail.py:11
↓ 5 callersFunction_strategy_discovery_execute
Delegate to a strategy-discovery agent tool with an honest error envelope. Registry or facade failures never propagate to the MCP client as a bar
agent/mcp_server.py:1460
↓ 5 callersFunction_strategy_source
A minimal SignalEngine selling each target symbol held at call start. With ``universe`` it declares UNIVERSE and orders exactly those symbols;
agent/tests/paper_trade_5m_fixtures.py:334
↓ 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:557
↓ 5 callersFunction_three_periods
Return three single-period attributions with deliberately different signs. Returns: Three :class:`BrinsonResult` objects in chronological
agent/tests/quantlib/test_attribution.py:235
↓ 5 callersFunction_to_float
Coerce a reported value to ``float``, or ``None`` when non-numeric.
agent/src/tools/etf_holdings_tool.py:706
↓ 5 callersMethod_tool
(name: str, content: str)
agent/tests/test_loop_helpers.py:169
↓ 5 callersFunction_tool_call_response
()
agent/tests/test_swarm_worker_cancel.py:86
↓ 5 callersFunction_trade_client
(cfg: TigerConfig)
agent/src/trading/connectors/tiger/sdk.py:579
↓ 5 callersFunction_truncate_body
Clip `content` to `limit` chars, leaving room for the marker.
agent/src/memory/persistent.py:164
↓ 5 callersFunction_validate_custom_base_url
(value: str)
agent/src/api/custom_provider_routes.py:47
↓ 5 callersMethod_validate_rebalance_values
(*values: float, positive: bool = False)
agent/backtest/engines/base.py:1992
↓ 5 callersFunction_valuations
Return the fixture path: +10% on 100, 900 arrives, then -10%.
agent/tests/test_cashflow_analytics_tool.py:13
↓ 5 callersFunction_workflow
()
agent/tests/test_docker_workflow_publish_guard.py:24
← previousnext →1,801–1,900 of 26,887, ranked by callers