MCPcopy Create free account

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

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

↓ 4 callersFunction_transport
(monkeypatch, handler)
agent/tests/test_mstock_connector.py:43
↓ 4 callersFunction_triggering_bars
A bar whose low (9.90) strictly crosses the 10.00 buy limit. The reference is 10.10 on every bar, so the first bar is not marketable and the
agent/tests/test_paper_trade_5m_partial_fills.py:303
↓ 4 callersFunction_tushare_loader
()
agent/tests/test_market_data_raw_adjustment.py:335
↓ 4 callersFunction_udf_payload
( times: List[int], o: List[Any], h: List[Any], l: List[Any], c: List[Any], v: List[An
agent/tests/test_nobitex_loader.py:20
↓ 4 callersFunction_unrecognized_config_warning
(config: dict)
agent/backtest/runner.py:1444
↓ 4 callersFunction_unwrapped
Return the raw callable behind a fastmcp-registered tool, or None.
agent/tests/test_strategy_discovery_mcp.py:38
↓ 4 callersFunction_upper_shadow
上影线长度。 Args: o: 开盘价序列。 c: 收盘价序列。 h: 最高价序列。 Returns: 每根K线的上影线长度。
agent/src/skills/candlestick/example_signal_engine.py:48
↓ 4 callersFunction_usd_contract_value
USD value of ``lots`` of broker symbol ``name``, ``None`` on any failure. 1 lot == ``trade_contract_size`` units of the base currency. Quote-USD
agent/src/trading/connectors/mt5/_client.py:385
↓ 4 callersMethod_username
(connection_id: str, field: str)
agent/src/trading/credentials.py:73
↓ 4 callersFunction_utc_now
()
agent/src/hypotheses/registry.py:45
↓ 4 callersFunction_utf16_len
UTF-16 code-unit length, matching Signal BodyRange semantics.
agent/src/channels/signal.py:69
↓ 4 callersFunction_v11_result
(**overrides)
agent/tests/test_paper_trade_v12_schema.py:97
↓ 4 callersFunction_v13_order_rows
()
agent/tests/test_paper_trade_v13_schema.py:232
↓ 4 callersFunction_validate_bench_data_requirements
Validate known universe constraints before making data requests. Args: registry: Registry holding the selected factors. alpha_ids
agent/src/tools/alpha_bench_tool.py:975
↓ 4 callersFunction_validate_custom_base_url
(value: str)
agent/src/providers/custom_profiles.py:197
↓ 4 callersFunction_validate_status
(status: str)
agent/src/hypotheses/registry.py:74
↓ 4 callersFunction_validated_rate
Return a finite positive FX rate or fail closed naming its pair.
agent/src/portfolio/fx.py:22
↓ 4 callersFunction_valuation
(price, years=3)
agent/tests/test_financial_rigor_three_scenario_undefined_upside.py:12
↓ 4 callersFunction_walk_chain
Walk parsed records once, verifying the chain invariant at each step. Args: record_source: Parsed records to walk. start_seq: Seq
agent/src/governance/ledger.py:243
↓ 4 callersFunction_winerr
(code: int)
agent/tests/test_swarm_store_atomic_write.py:29
↓ 4 callersFunction_with_close_panel
Give *engine* the pre-extracted close panel BaseEngine builds for a run.
agent/tests/test_taiwan_equity_engine.py:42
↓ 4 callersFunction_worker_retry_delay_s
Return an equal-jitter exponential delay for a worker-level retry.
agent/src/swarm/runtime.py:136
↓ 4 callersFunction_workspace_files
Stat a run workspace's task files so a command's outputs can be told apart. Args: cwd: Command working directory. require_request
agent/src/tools/bash_tool.py:43
↓ 4 callersFunction_write
(path: Path, payload: Mapping[str, Any])
agent/src/scheduled_research/proposals.py:41
↓ 4 callersFunction_write
(path: Path, payload: dict)
agent/src/research_lab/service.py:23
↓ 4 callersFunction_write
(path: Path, value: float)
agent/tests/test_local_loader_cache_identity.py:17
↓ 4 callersFunction_write
(path, value)
agent/tests/harness_eval/test_research_suite.py:18
↓ 4 callersFunction_write_agent_json
Write a minimal AgentConfig JSON file pinning a single MCP server. The server name is used in assertions to verify *which* file the resolver
agent/tests/test_swarm_m3_boot_wiring.py:38
↓ 4 callersFunction_write_full_journal
(tmp_path: Path)
agent/tests/test_trade_journal.py:671
↓ 4 callersFunction_write_journal
Write a plain-utf8 Tonghuashun-style CSV the parser can ingest.
agent/tests/test_shadow_account.py:74
↓ 4 callersFunction_write_mandate
(broker_path: Path, mandate: Mandate)
agent/tests/test_mandate_model.py:59
↓ 4 callersFunction_write_mandate
(live_runtime: Path, mandate: Mandate)
agent/tests/test_advisory.py:117
↓ 4 callersFunction_write_manifest
(home: Path, payload)
agent/tests/test_cli_strategy_evidence.py:64
↓ 4 callersFunction_write_metrics
(run_dir: Path, row: str, header: str = _METRICS_HEADER)
agent/tests/test_backtest_records_bench.py:93
↓ 4 callersFunction_write_original
Save immutable content inside the workspace, or refuse a changed path.
agent/src/product/result_artifacts.py:130
↓ 4 callersFunction_write_positions
Write ``timestamp`` + per-symbol weight columns, the real artifact layout.
agent/tests/test_attribution_liquidated_last_row.py:19
↓ 4 callersFunction_write_proposal
(home: Path, payload: dict)
agent/tests/scheduling/test_system_job_protection.py:137
↓ 4 callersFunction_write_strict_artifacts
( engine: CryptoEngine, data_map: dict[str, pd.DataFrame], targets: dict[str, list[float]], ru
agent/tests/test_crypto_engine.py:116
↓ 4 callersFunction_write_trades_csv
(artifacts: Path, rows: list[dict])
agent/tests/test_strategy_discovery_harness.py:224
↓ 4 callersFunction_write_turn
A complete turn with ``calls`` tool round trips, a state and an inject item.
agent/tests/test_session_thread_events.py:68
↓ 4 callersFunction_writes_decimal_commas
Whether a document writes decimal commas and never a thousands grouping. Evidence for a decimal comma is a zero integer part with at least two
agent/evals/grounding/figures.py:610
↓ 4 callersFunction_yahoo_news
A Yahoo search result list with two news articles.
agent/tests/test_stock_news_tool.py:50
↓ 4 callersFunction_zigzag
Prices with both up and down moves, so downside statistics exist.
agent/tests/test_cross_market_annualization.py:27
↓ 4 callersFunctionacquire
(*args, **kwargs)
agent/src/data_gateway/reads.py:264
↓ 4 callersMethodadd_job
Add or replace a job and wake the loop. Args: job: The job to schedule. An existing job with the same ``id`` is r
agent/src/live/runtime/scheduler.py:259
↓ 4 callersFunctionadvance_after_fire
Advance a fired job's ``next_run_at``; report whether it should remain. Delegates to the shared next-run math (:func:`src.scheduling.triggers
agent/src/live/runtime/scheduler.py:169
↓ 4 callersFunctionagent_factory
Return a builder for an AgentRuntime wired to a run dir and one tool.
agent/tests/test_agent_loop_dedup_arguments.py:74
↓ 4 callersMethodainvoke
Run :meth:`invoke` in a worker thread. Args: messages: Conversation so far, as LangChain messages or dictionaries. co
agent/src/providers/claude_cli.py:602
↓ 4 callersFunctionamihud_illiquidity
Calculate Amihud's (2002) illiquidity ratio: mean(|R_t| / DollarVolume_t). Measures the average price response per dollar of trading volume.
agent/src/quantlib/microstructure.py:57
↓ 4 callersMethodanalysis_context
Return a credential/account-id-free snapshot suitable for an LLM. With ``snapshot_id`` the read is pinned to that stored snapshot (no
agent/src/portfolio/service.py:750
↓ 4 callersMethodappend_assistant
Append a model response and record it. Args: messages: Destination list, which determines whether to write a durable item.
agent/src/agent/loop_conversation.py:59
↓ 4 callersFunctionapplySwarmEvent
(current: SwarmRunStatus, rawEvent: unknown)
frontend/src/lib/swarmStatus.ts:209
↓ 4 callersMethodapply_slippage_for_symbol
Symbol-aware slippage with correct spread. Args: symbol: Forex pair. price: Mid price. direction: 1 (buy)
agent/backtest/engines/forex.py:140
↓ 4 callersFunctionasRecord
(value: unknown)
frontend/src/lib/swarmStatus.ts:9
↓ 4 callersFunctionasTokenSource
(value: unknown)
frontend/src/lib/swarmStatus.ts:21
↓ 4 callersFunctionassistant_message
Rebuild the assistant message the loop sent, in the loop's key order. Args: item: Recorded assistant item with content and any tool calls
agent/src/providers/messages.py:39
↓ 4 callersFunctionautocorrelation_test
Test residuals for serial correlation (Durbin-Watson and Ljung-Box). H0 = no autocorrelation. Durbin-Watson sees only lag 1; Ljung-Box tests the
agent/src/quantlib/timeseries.py:662
↓ 4 callersFunctionboot
()
desktop/electron/src/main.ts:191
↓ 4 callersFunctionbroker_supports_live_runner
Return whether any configured profile exposes live runner management.
agent/src/trading/service.py:1305
↓ 4 callersFunctionbuildPayoffRequest
( legs: OptionLeg[], p: OptionsLabParams, )
frontend/src/lib/options.ts:421
↓ 4 callersFunctionbuildSwarmStatusFromStarted
(data: AnyRecord)
frontend/src/lib/swarmStatus.ts:146
↓ 4 callersFunctionbuildSwarmStatusFromToolResultPreview
(preview: string)
frontend/src/lib/swarmStatus.ts:388
↓ 4 callersFunctionbuildVolatilitySurfaceRequest
( spot: string, observations: SurfaceObservationInput[], strikes: string, expiryDays: string, )
frontend/src/lib/options.ts:306
↓ 4 callersFunctionbuild_binance_drift_summary
Build the concise latest-observation summary for one evidence record.
agent/backtest/binance_shadow_evidence.py:169
↓ 4 callersFunctionbuild_export
Build a self-contained, offline-verifiable export of a chained ledger. The export embeds every parsed record plus the verification outcome co
agent/src/governance/ledger.py:500
↓ 4 callersFunctionbuild_frame_adjust
Build a :data:`CaliberAdjust` from OHLCV frames with adjusted closes. The factor between two dates is ``close(to_dt) / close(from_dt)`` on the
agent/src/tools/trade_journal_tool.py:41
↓ 4 callersFunctionbuild_job_from_playbook
Build a scheduled job from a template for the caller to persist. Args: slug: Template slug. schedule: Schedule override, or None
agent/cli/commands/research_playbook.py:104
↓ 4 callersFunctionbuild_research_contract
Build a JSON-safe, extensible factor-research run summary. ``mode`` describes the intended evidence standard for the run. It is metadata in
agent/src/factors/research_contract.py:92
↓ 4 callersFunctionby_exit_reason_stats
Per-exit-reason trade statistics. Args: trades: Completed round-trip trades. Returns: {reason: {count, total_pnl}}.
agent/backtest/metrics.py:478
↓ 4 callersFunctionby_symbol_stats
Per-symbol trade statistics. Args: trades: Completed round-trip trades. Returns: {symbol: {count, win_rate, total_pnl, avg_p
agent/backtest/metrics.py:452
↓ 4 callersMethodcan_execute
A-share execution rules. Args: symbol: Stock code (e.g. 000001.SZ). direction: 1 (buy), -1 (short — always blocked),
agent/backtest/engines/china_a.py:43
↓ 4 callersMethodcan_execute
China futures: T+0, both directions, price-limit enforced. Args: symbol: Futures code. direction: 1 (long), -1 (short
agent/backtest/engines/china_futures.py:245
↓ 4 callersMethodcancel_close_order
(self, config, order_id="", *, request_id=None, **kwargs)
agent/tests/test_etoro_live_actions.py:31
↓ 4 callersFunctioncanonicalPath
(pageId, lang)
wiki/docs/main.js:61
↓ 4 callersFunctioncell
(key: str)
agent/src/tools/etf_holdings_tool.py:931
↓ 4 callersFunctionchain
()
agent/tests/test_data_gateway.py:154
↓ 4 callersFunctionchange_scope
Classify the tree diff from an event's base to the checked-out commit. Args: root: Git worktree to inspect. base: Full base commi
tools/ci_readme.py:23
↓ 4 callersFunctionchristoffersen_conditional_coverage
Test coverage and independence jointly. ``LR_cc = LR_uc + LR_ind`` with 2 degrees of freedom. The components are returned alongside it becaus
agent/src/quantlib/var_backtest.py:488
↓ 4 callersFunctionclassify_zero_calendar_day
AM-6 fail-closed three-state matrix for one hk/us candidate day. ① target day, all-market zero bar → ``VERDICT_NOT_READY`` (the tool layer em
agent/src/tools/paper_trade/calendar.py:296
↓ 4 callersFunctioncmd_live_halt
Trip the live trading kill switch. Args: broker: Broker key, or None for the global switch. Returns: Success exit code after
agent/cli/commands/live.py:325
↓ 4 callersMethodcompaction_layer
Record L1/L2 message replacements keyed by original seq for exact replay. Args: layer: Compaction layer, either 1 or 2.
agent/src/session/runtime.py:245
↓ 4 callersFunctioncompare_rates
Compare named rates and return their direction and signed difference. Args: left: Signed first rate, in input_unit. right: Signed
agent/src/quantlib/units.py:13
↓ 4 callersMethodcompress_to_digest
Compress daily content to digest level (~10-20% of original). Strategy: Extract core concepts and keywords. - Extract top-N most impo
agent/src/memory/compression.py:254
↓ 4 callersFunctioncompute
Return cross-sectional z-scored earnings yield.
agent/src/factors/zoo/fundamental/earnings_yield.py:32
↓ 4 callersFunctioncompute_random_ic_series
Mean IC series across ``n_seeds`` row-shuffled random controls. Returns one IC value per date, averaged across **all** ``n_seeds`` seeds on d
agent/src/factors/bench_runner_strict.py:150
↓ 4 callersFunctioncompute_rebalance_execution_evidence
Execution-side rebalance evidence from immutable fill records. The target-frame notes above count what the strategy asked for; this counts wh
agent/backtest/rebalance_notes.py:125
↓ 4 callersFunctionconfig_path
Return the user-level IBKR local config path.
agent/src/trading/connectors/ibkr/local.py:144
↓ 4 callersFunctioncontains_pdf_password
Return whether arbitrary job config contains the Email PDF secret key.
agent/src/scheduled_research/models.py:183
↓ 4 callersFunctioncontinuous_bars
Drop the 09:30 opening-auction print, leaving the continuous bars.
agent/tests/paper_trade_5m_fixtures.py:106
↓ 4 callersFunctioncoverage_days_from_ranges
Span from the earliest range start to the latest range end, in days. Each entry is parsed as ``"YYYY-MM to YYYY-MM"``; the span runs from the
agent/src/strategy_discovery/models.py:227
↓ 4 callersMethodcreate
Create a ledger eligible today or at the next observed trading session. Args: label: Human-readable account name. mar
agent/src/tools/paper_trade/accounts.py:74
↓ 4 callersMethodcreate_session
Create a session. Args: title: Session title. Returns: The created session.
agent/vibe_trading/client.py:340
↓ 4 callersFunctiondaily_order_lock
Hold one non-blocking order-admission lock for ``broker``. The caller must keep this lock through the final daily-count check, broker submiss
agent/src/live/daily_count.py:75
↓ 4 callersFunctiondateTime
(value: string | undefined)
frontend/src/pages/Portfolio.tsx:119
↓ 4 callersFunctiondb_path
Return the configured SQLite path (``VIBE_BR_DATA_DB`` or the default).
agent/src/br_data/store.py:122
↓ 4 callersMethoddefault_config
(cls)
agent/src/channels/qq.py:158
↓ 4 callersFunctiondefault_goal_criteria
Return the default research goal acceptance checklist.
agent/src/goal/context.py:18
↓ 4 callersMethoddelete
Delete a connection and any secrets stored for it. Args: connection_id: Identifier of the connection to remove. Raises:
agent/src/trading/connections.py:302
↓ 4 callersFunctionderiveActivityVerb
(tool: string | undefined)
frontend/src/stores/agent.ts:39
↓ 4 callersMethoddescribe_table
Return schema metadata for a supported table.
agent/backtest/loaders/tushare_fundamentals.py:137
← previousnext →2,801–2,900 of 30,405, ranked by callers