MCPcopy Create free account

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

Functions15,301 in github.com/HKUDS/Vibe-Trading

↓ 9 callersFunctionwrite_run_card
Write JSON and Markdown run cards for a backtest run. Args: run_dir: Directory where run_card.json and run_card.md are written. c
agent/backtest/run_card.py:25
↓ 8 callersFunction_apply_filter
Filter DataFrame by a simple expression. Supports: - "YYYY-MM to YYYY-MM" or "YYYY-MM-DD to YYYY-MM-DD" (date range) - "symbol=XX
agent/src/tools/trade_journal_tool.py:361
↓ 8 callersFunction_assert_host
Fail closed when the resolved host does not match the declared environment. The host is the authoritative discriminator: testnet keys cannot reac
agent/src/trading/connectors/binance/sdk.py:643
↓ 8 callersFunction_assert_profile
Fail closed when the account does not match the declared environment.
agent/src/trading/connectors/tiger/sdk.py:591
↓ 8 callersFunction_bar
(close: float = 100.0, pre_close: float | None = None)
agent/tests/test_india_equity_engine.py:29
↓ 8 callersFunction_body
实体长度(绝对值)。 Args: o: 开盘价序列。 c: 收盘价序列。 Returns: 每根K线的实体长度。
agent/src/skills/candlestick/example_signal_engine.py:22
↓ 8 callersFunction_build_codex_token_storage
Build the Vibe-owned Codex token store. The path deliberately does not use oauth-cli-kit's default storage, because that backend imports and
agent/src/providers/openai_codex.py:94
↓ 8 callersFunction_build_direct_agent
( tmp_path: Path, resolver_result: str, )
agent/tests/test_agent_grounding.py:151
↓ 8 callersFunction_build_parser
Build the CLI parser with subcommands and compatibility flags.
agent/cli/_legacy.py:4627
↓ 8 callersFunction_build_synthetic_dataset
Build data_map, signal_map, codes for testing.
agent/tests/test_signal_alignment_perf.py:68
↓ 8 callersMethod_calc_equity
Total equity = free cash + sum(margin + unrealised) per position. Uses vectorized numpy path when _calc_pnl/_calc_margin are not over
agent/backtest/engines/base.py:1073
↓ 8 callersFunction_capability
( tool_id: str = "tool_good", *, success_rate: float = 0.99, expected_cost: str = "1.0 credits
agent/tests/test_qveris_loader.py:93
↓ 8 callersFunction_classify_deliverable
Hybrid output contract. Return a short reason string when the worker did NOT produce a substantive deliverable, else ``None``. Content-sanity
agent/src/swarm/worker.py:896
↓ 8 callersFunction_clear_environment
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_longbridge_credentials.py:25
↓ 8 callersMethod_close_position
Close position, record trade, return capital.
agent/backtest/engines/base.py:1490
↓ 8 callersFunction_collect
(agen)
agent/tests/test_openbb_bridge/test_adapter.py:79
↓ 8 callersFunction_configured_api_key
Return the current API auth key, if configured. Resolves the ``VIBE_TRADING_API_KEY`` alias server-side via :func:`get_env_config` so both ``
agent/src/api/security.py:355
↓ 8 callersFunction_create_test_database
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:76
↓ 8 callersFunction_daily_index
(start: str = "2026-01-02", periods: int = 30)
agent/tests/test_shadow_account.py:1697
↓ 8 callersFunction_etoro_overrides
Build override dict for eToro tools, including optional credential overrides.
agent/src/tools/trading_connector_tool.py:199
↓ 8 callersMethod_execute_run
Core orchestration loop (runs in background thread). Steps: 1. Update run status to running 2. Initialize TaskStore,
agent/src/swarm/runtime.py:211
↓ 8 callersFunction_fact_row
( end: str, filed: str, value: float, *, form: str = "10-Q", start: str | None = None,
agent/tests/test_fundamentals_pit.py:37
↓ 8 callersFunction_facts
(concept_rows: dict[str, list[dict[str, object]]])
agent/tests/test_fundamentals_pit.py:26
↓ 8 callersMethod_fetch_minutes
Intraday bars via stk_mins. Args: codes: Stock codes. start_date: Start date (YYYY-MM-DD). end_date: End
agent/backtest/loaders/tushare.py:322
↓ 8 callersFunction_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/okx/sdk.py:650
↓ 8 callersFunction_human
(text)
agent/tests/test_openbb_bridge/test_adapter.py:65
↓ 8 callersFunction_is_a_share
(code: str)
agent/backtest/loaders/baostock_loader.py:23
↓ 8 callersFunction_is_etf_listed
Detect exchange-listed ETF / LOF symbols (e.g. 510050.SH, 159915.SZ).
agent/backtest/loaders/_symbol_utils.py:12
↓ 8 callersFunction_is_tool_success
Return True if the tool result does not look like an error response.
agent/src/agent/loop.py:462
↓ 8 callersFunction_lens_text
Return the raw text of one lens file. Args: slug: Lens file stem, e.g. ``munger-inversion``. Returns: Raw markdown text.
agent/tests/test_investor_lenses_skill.py:82
↓ 8 callersFunction_local_ms
Epoch-ms of a wall-clock time in an IANA zone (``fold=0`` = first occurrence).
agent/tests/test_scheduled_research_executor.py:25
↓ 8 callersFunction_make_bar
( close: float = 5000.0, pre_close: float | None = None, pct_chg: float | None = None, open_:
agent/tests/test_global_futures_engine.py:33
↓ 8 callersFunction_make_ohlcv_df
Build a minimal OHLCV DataFrame matching tushare's column layout.
agent/tests/test_tushare_loader.py:124
↓ 8 callersFunction_mandate
()
agent/tests/test_etoro_live_actions.py:71
↓ 8 callersFunction_normalize_tool_run_dir
Normalize ``run_dir`` in tool args to an absolute path when possible. If the model supplies a relative ``run_dir`` (for example ``"."`` or ``
agent/src/agent/loop.py:477
↓ 8 callersFunction_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/alpaca/sdk.py:841
↓ 8 callersFunction_overlapping_labels
Label i resolves `horizon` bars later, so labels overlap heavily.
agent/tests/quantlib/test_crossvalidation.py:25
↓ 8 callersFunction_parse_period
Return (start_date, end_date) as YYYY-MM-DD strings.
agent/src/tools/alpha_bench_tool.py:75
↓ 8 callersFunction_patch_ddgs
(monkeypatch, text_impl)
agent/tests/test_web_search_tool.py:36
↓ 8 callersFunction_patch_gate
(monkeypatch, *, mandate, halted=False)
agent/tests/test_etoro_live_actions.py:98
↓ 8 callersFunction_price_frame
Build a tz-naive trade_date-indexed OHLCV frame like a loader returns.
agent/tests/test_shadow_account.py:938
↓ 8 callersFunction_rejects_unc
Raise ValueError if `p` starts with a UNC share prefix.
agent/src/tools/path_utils.py:40
↓ 8 callersFunction_request
(messages)
agent/tests/test_openbb_bridge/test_adapter.py:73
↓ 8 callersMethod_request
Send a JSON request with spacing and 429 Retry-After handling.
agent/src/tools/qveris_tool.py:239
↓ 8 callersFunction_require_futu
()
agent/src/trading/connectors/futu/sdk.py:656
↓ 8 callersFunction_resolve_console
Return the shared CLI console, or a caller-supplied override.
agent/cli/commands/chat.py:23
↓ 8 callersFunction_run
(**kw)
agent/tests/test_options_pricing_degenerate.py:20
↓ 8 callersFunction_run
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, llm: Any, max_iterations: int = 5, )
agent/tests/test_agent_loop_content_filter.py:75
↓ 8 callersFunction_run
( monkeypatch, tmp_path: Path, llm: _ScriptedChatLLM, event_callback=None, max_iterations:
agent/tests/test_swarm_worker_content_filter.py:60
↓ 8 callersFunction_run
(capsys: pytest.CaptureFixture[str], args: argparse.Namespace)
agent/tests/factors/test_alpha_compare.py:172
↓ 8 callersMethod_scan_entries
Scan all .md files (except MEMORY.md) and parse frontmatter.
agent/src/memory/persistent.py:222
↓ 8 callersFunction_schedule
(symbol: str = "BTC-USDT-PERP", version: str = "abc123", coefficient: float | None = None)
agent/tests/test_perpetual_risk.py:31
↓ 8 callersFunction_seed_state
Write a durable last-known runtime_state.json for ``broker`` directly.
agent/tests/test_runtime_reconcile.py:52
↓ 8 callersFunction_unsupported_etoro
(profile: TradingProfile, capability: str)
agent/src/trading/service.py:373
↓ 8 callersFunction_write_md
Write a dummy .md file with basic frontmatter.
agent/tests/memory/test_hierarchy.py:17
↓ 8 callersFunction_yahoo_quotes
()
agent/tests/test_symbol_search_tool.py:55
↓ 8 callersFunctionanalyze_trade_journal
Parse a trade journal and return a JSON analysis. Args: file_path: Path to CSV/Excel file. analysis_type: "full" | "profile" | "b
agent/src/tools/trade_journal_tool.py:411
↓ 8 callersFunctionbenjamini_hochberg
Control the false discovery rate across many simultaneous tests. Bonferroni controls the probability of *any* false positive and is far too s
agent/src/quantlib/multipletesting.py:375
↓ 8 callersFunctioncarino_link
Link single-period Brinson results into a residual-free multi-period attribution. Every period's effects are scaled by ``k_t / k`` and summed. Be
agent/src/quantlib/attribution.py:347
↓ 8 callersFunctioncmd_live_authorize
Bootstrap the OAuth handshake for a live broker channel (desktop only). Builds the broker's MCP tool wrappers, which forces a connection and — wh
agent/cli/_legacy.py:3333
↓ 8 callersFunctioncmd_live_status
Show auth state, active mandate, and halt state for live channels. Read-only: it loads the mandate via :func:`src.live.mandate.store.load_mandate
agent/cli/_legacy.py:3522
↓ 8 callersFunctioncompute_importance
Compute importance via Ebbinghaus-inspired decay formula.
agent/src/memory/persistent.py:80
↓ 8 callersMethodcreate
(self, *args: Any, **kwargs: Any)
agent/src/providers/llm.py:184
↓ 8 callersMethodcreate
Create and persist a new hypothesis. Args: title: Short hypothesis title. thesis: Research thesis or rationale.
agent/src/hypotheses/registry.py:158
↓ 8 callersFunctioncross_sectional_factor_returns
Regress one date's asset returns on their exposures. The coefficients are that date's factor returns. Weighting is by square-root market cap
agent/src/quantlib/factormodel.py:298
↓ 8 callersFunctionestimate_tokens
Rough token count estimate (~4 chars/token). Args: messages: Message list. Returns: Estimated token count.
agent/src/agent/loop.py:215
↓ 8 callersFunctionfit_yield_curve
Fit a Nelson-Siegel or Svensson curve to observed zero rates. The betas are solved exactly by least squares at every candidate decay paramete
agent/src/quantlib/fixedincome.py:704
↓ 8 callersFunctionfixed_slippage
Apply a constant basis-point slippage to a fill price. The cheapest model, and adequate whenever the order is small enough that it does not m
agent/src/quantlib/impact.py:150
↓ 8 callersFunctionformat_grounding_block
Render *grounding* as a markdown block ready to splice into a prompt. Returns the empty string if no symbol has any data — callers can use th
agent/src/swarm/grounding.py:231
↓ 8 callersMethodget_session
Read a session. Args: session_id: Session ID. Returns: The Session instance, or None when it does not exist.
agent/src/session/store.py:79
↓ 8 callersMethodis_duplicate
Check if a memory with similar content was recently written. Uses a 30-second sliding window to catch rapid-fire duplicates from retr
agent/src/memory/persistent.py:453
↓ 8 callersFunctionis_qveris_configured
Return whether QVeris paid routing should be visible.
agent/src/tools/qveris_tool.py:143
↓ 8 callersFunctionis_runner_alive
Report whether a runner's heartbeat is fresh enough to call it alive. Args: runner_id: The runner to check. now_ms: Reference tim
agent/src/live/runtime/liveness.py:127
↓ 8 callersFunctionkupiec_pof
Test whether the breach *count* matches the model's claimed level. The Kupiec proportion-of-failures test compares the realised breach rate a
agent/src/quantlib/var_backtest.py:329
↓ 8 callersMethodlist
Load all hypotheses from storage.
agent/src/hypotheses/registry.py:360
↓ 8 callersFunctionlive_root
Return the root directory for all live-channel state. Returns: ``<runtime_root>/live``. The directory is NOT created here; callers
agent/src/live/paths.py:23
↓ 8 callersMethodload
Load all persisted jobs. Returns: A dict mapping job id to job. Empty when the store has never been written.
agent/src/scheduled_research/store.py:85
↓ 8 callersFunctionmain
CLI entrypoint returning a process exit code. Behaviour: * Interactive entry (no subcommand, or ``chat`` + TTY): show banner, run onbo
agent/cli/main.py:1295
↓ 8 callersMethodmarket
Build a market-session trigger for a known market key. Args: market: A key into :data:`MARKET_SPECS` (e.g. ``"us_equity"``).
agent/src/live/runtime/triggers.py:178
↓ 8 callersFunctionmonte_carlo_gbm
Simulate price paths under geometric Brownian motion. Each step applies ``(mu - 0.5 * sigma**2) * dt + sigma * sqrt(dt) * Z`` in log space, s
agent/src/quantlib/risk.py:329
↓ 8 callersFunctionparametric_var
Value at Risk under a fitted normal distribution. Cheap and smooth, but it sees only a mean and a variance, so it misses fat tails. The direc
agent/src/quantlib/risk.py:176
↓ 8 callersFunctionpreferred_return_amount
Preferred return owed to LPs, accrued per contribution from its own date. Accruing each draw separately matters: a fund that called half its capi
agent/src/quantlib/fundmath.py:922
↓ 8 callersMethodquery_events
(self, codes: Iterable[str], *, as_of, feeds=None, scorer=None)
agent/tests/test_rsshub_events_lookahead.py:28
↓ 8 callersMethodrecord_bench
Record a bench result. Returns the result ID.
agent/src/strategy_store/store.py:115
↓ 8 callersFunctionredact_tool_result
Redact one tool result for trace persistence and event previews. The single choke point for a tool-result string: callers redact once and han
agent/src/tools/redaction.py:452
↓ 8 callersMethodregister
Register a tool.
agent/src/agent/tools.py:60
↓ 8 callersMethodrender
(self)
agent/cli/ui/rail.py:437
↓ 8 callersFunctionrender_signal_engine
Render the SignalEngine Python source for a profile. Args: profile: ShadowProfile carrying the rules to replay. Returns: Pyt
agent/src/shadow_account/codegen.py:97
↓ 8 callersMethodrun_backtest
(self, config, loader, signal_engine, path, **kwargs)
agent/tests/test_ui_services.py:221
↓ 8 callersMethodrun_loop
(self)
agent/tests/test_security_auth_api.py:353
↓ 8 callersFunctionrun_pattern
Run chart pattern detection on OHLCV data in run_dir. Args: run_dir: Path to the run directory. patterns: Comma-separated pattern
agent/src/tools/pattern_tool.py:323
↓ 8 callersFunctionscale
Per-row L1 normalize so sum of absolute values equals ``a``. Rows whose abs-sum is 0 (or all-NaN) become NaN — never silent zero.
agent/src/factors/base.py:82
↓ 8 callersFunctionscenario
()
agent/tests/test_session_service_lifecycle.py:61
↓ 8 callersMethodshould_transition
Determine if a status transition should occur. Args: current_status: Current artifact status. consecutive_signals: Re
agent/src/strategy_store/decay.py:161
↓ 8 callersFunctionsplit_sections
Map a markdown document to its heading structure. A section runs from its heading to the next heading of the same or shallower level, so aski
agent/src/agent/skills.py:229
↓ 8 callersMethodtotal
Sum the signed amounts. Valuation marks such as NAV are excluded by default: adding a mark to settled cash would overstate what was a
agent/src/entities/cashflow.py:403
↓ 8 callersFunctiontranslate_cashflows
Convert flows in one or more currencies into ``rate_table``'s currency. Each flow is converted using the FX rate quoted on **that flow's own
agent/src/entities/cashflow.py:684
↓ 8 callersMethodupdate_run
Atomically update run state. Args: run: Updated SwarmRun instance. Raises: FileNotFoundError: If the run dir
agent/src/swarm/store.py:205
↓ 8 callersFunctionwacc
Build the weighted average cost of capital. ``Re`` is CAPM plus two optional additive premiums; ``Rd`` is the pretax cost of debt shielded by
agent/src/quantlib/valuation/dcf.py:344
↓ 8 callersFunctionwrite_heartbeat
Atomically record a runner's last-tick timestamp. Args: runner_id: The runner writing its heartbeat. now_ms: Timestamp to record,
agent/src/live/runtime/liveness.py:79
← previousnext →501–600 of 15,301, ranked by callers