MCPcopy Create free account

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

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

↓ 4 callersFunction_strip_markup
(value: Any)
agent/cli/ui/rail.py:54
↓ 4 callersFunction_structured_server
(count: int)
agent/tests/test_mcp_result_dedup.py:32
↓ 4 callersFunction_stub_llm_factory
Build a callable that reads as ``ChatLLM(model_name=...)`` would. The worker does ``llm = ChatLLM(model_name=...)`` once per run; we swap tha
agent/tests/test_swarm_m4_e2e.py:150
↓ 4 callersFunction_summary_chunks
Serialize messages into bounded chunks for lossless summary folding. Messages are packed by whole-message boundaries so that ordinary chunks
agent/src/agent/context_compact.py:37
↓ 4 callersMethod_sweep_stale_locked
Drop buckets whose spacing window has fully elapsed. Caller holds the lock. A bucket is only stale once ``fire_at + min_interval`` has passed
agent/backtest/loaders/_http.py:63
↓ 4 callersFunction_task
(*, task_id: str, agent_id: str, prompt: str = "Run the tool.")
agent/tests/test_swarm_m4_e2e.py:188
↓ 4 callersFunction_terminal_width
Return the active console width with a conservative fallback.
agent/cli/_legacy.py:416
↓ 4 callersFunction_text
(result)
agent/tests/test_mcp_json_string_args.py:73
↓ 4 callersFunction_to_float
(value: Any)
agent/src/tools/tushare_fallbacks.py:71
↓ 4 callersFunction_to_futu_ktype
Map project interval string to a futu KLType enum value. Lazy-imports futu so the module can be imported without futu installed. Unsupported
agent/backtest/loaders/futu.py:66
↓ 4 callersFunction_to_int
Coerce a Shoonya API field to int, tolerating empty strings (see ``_to_float``).
agent/src/trading/connectors/shoonya/sdk.py:651
↓ 4 callersFunction_tokenize
Lowercase, split, and strip common punctuation from each token.
agent/src/tools/sentiment_tool.py:52
↓ 4 callersFunction_tokenize_for_tfidf
Tokenize text for TF-IDF scoring. ASCII words >= 3 chars or individual non-Latin script characters. Deliberately a higher minimum than persis
agent/src/memory/compression.py:60
↓ 4 callersFunction_tool
(name: str)
agent/tests/test_provider_agnostic_tool_policy.py:47
↓ 4 callersFunction_tool_call_response
( *, call_id: str, tool: str, arguments: dict[str, Any], )
agent/tests/test_swarm_m4_e2e.py:192
↓ 4 callersFunction_tool_classes
Return the mirrored tool classes keyed by their tool name.
agent/tests/test_mcp_new_tools.py:80
↓ 4 callersFunction_tool_for
(server: FastMCP, name: str)
agent/tests/test_mcp_result_dedup.py:24
↓ 4 callersMethod_totals
(db: sqlite3.Connection, now: datetime)
agent/src/live/runtime/decision_budget.py:102
↓ 4 callersFunction_transport
(monkeypatch, handler)
agent/tests/test_mstock_connector.py:41
↓ 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:1373
↓ 4 callersFunction_unwrapped
Return the raw callable behind a fastmcp-registered tool, or None.
agent/tests/test_strategy_discovery_mcp.py:34
↓ 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_user_writes_chinese
Return whether user-facing gate text should be Chinese.
agent/src/agent/grounding/release.py:427
↓ 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_utc_now_iso
()
agent/src/session/models.py:13
↓ 4 callersFunction_utf16_len
UTF-16 code-unit length, matching Signal BodyRange semantics.
agent/src/channels/signal.py:63
↓ 4 callersFunction_v11_result
(**overrides)
agent/tests/test_paper_trade_v12_schema.py:97
↓ 4 callersFunction_validate_confidence
Check that a confidence level is a strict probability. Args: confidence: Confidence level, e.g. 0.95. Raises: ValueError: If
agent/src/quantlib/risk.py:100
↓ 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_verification_ledger
Extract terse deterministic-verification records from a message list. Walks the conversation for successful financial_rigor tool results (the
agent/src/agent/context_compact.py:114
↓ 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_worker_retry_delay_s
Return an equal-jitter exponential delay for a worker-level retry. Equal jitter keeps half of the exponential delay while spreading concurren
agent/src/swarm/runtime.py:146
↓ 4 callersFunction_write
(path: Path, payload: Mapping[str, Any])
agent/src/scheduled_research/proposals.py:41
↓ 4 callersFunction_write
(path: Path, value: float)
agent/tests/test_local_loader_cache_identity.py:17
↓ 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:667
↓ 4 callersFunction_write_journal
Write a plain-utf8 Tonghuashun-style CSV the parser can ingest.
agent/tests/test_shadow_account.py:65
↓ 4 callersFunction_write_mandate
Write a structurally valid mandate.json under the patched root.
agent/tests/test_cli_live.py:57
↓ 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:76
↓ 4 callersFunction_write_metrics
(run_dir: Path, row: str, header: str = _METRICS_HEADER)
agent/tests/test_backtest_records_bench.py:89
↓ 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:135
↓ 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_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/src/agent/grounding/figures.py:578
↓ 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 callersMethodaclose
(self)
agent/tests/test_chat_llm_lifecycle.py:22
↓ 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 callersMethodadd_listener
Register a callback invoked for every published event. Unlike :meth:`subscribe`, which is per session and per SSE connection, a liste
agent/src/session/events.py:131
↓ 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 AgentLoop wired to a run dir and one tool.
agent/tests/test_agent_loop_dedup_arguments.py:78
↓ 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:748
↓ 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 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 callersFunctionbroker_supports_live_runner
Return whether any configured profile exposes live runner management.
agent/src/trading/service.py:1309
↓ 4 callersFunctionbuildSwarmStatusFromStarted
(data: AnyRecord)
frontend/src/lib/swarmStatus.ts:146
↓ 4 callersFunctionbuildSwarmStatusFromToolResultPreview
(preview: string)
frontend/src/lib/swarmStatus.ts:386
↓ 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:39
↓ 4 callersFunctionbuild_job_from_playbook
Build (but do not persist) a scheduled job from a template. Every validation rule — schedule grammar, timezone resolution, declared variable
agent/cli/commands/research_playbook.py:161
↓ 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 callersFunctionbuild_result_dict
The caller-facing result dict for a finished run.
agent/src/agent/run_outcome.py:198
↓ 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:431
↓ 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:405
↓ 4 callersMethodcall_tool
Call one remote MCP tool and normalize its result. Args: remote_name: Remote tool identifier. arguments: Tool argumen
agent/src/tools/mcp.py:625
↓ 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:930
↓ 4 callersMethodchat
Call the LLM synchronously. Args: messages: Message list (OpenAI format). tools: Tool definition list (OpenAI functio
agent/src/providers/chat.py:462
↓ 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 callersFunctioncompareSemanticVersions
(left: string, right: string)
desktop/electron/src/update-verification.ts:229
↓ 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:223
↓ 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:143
↓ 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 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
← previousnext →2,401–2,500 of 26,887, ranked by callers