MCPcopy Create free account

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

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

↓ 7 callersFunctioncarino_factor
Return the Carino logarithmic scaling factor for one return pair. The factor is ``(ln(1 + Rp) - ln(1 + Rb)) / (Rp - Rb)``. When the two returns
agent/src/quantlib/attribution.py:341
↓ 7 callersFunctionchannelsConfig
(overrides: Record<string, unknown> = {})
frontend/src/components/settings/__tests__/ChannelSettings.test.tsx:381
↓ 7 callersFunctioncollect_ohlcv_paths
Map each symbol code to the absolute path of its OHLCV CSV. Globs ``<run_dir>/artifacts/ohlcv_*.csv``; the code is the filename minus the ``o
agent/src/tools/backtest_summary.py:44
↓ 7 callersFunctioncontent_hash
Generate deterministic hash for deduplication.
agent/src/memory/persistent.py:36
↓ 7 callersFunctioncopy_root
Copy-trading routes share one path for demo and real (no ``/demo`` prefix). Every other root above encodes paper/live in the path, which is half
agent/src/trading/connectors/etoro/client.py:255
↓ 7 callersFunctioncredit_spread_analysis
Time-series view of an issuer's spread: level, z-score and percentile. .. warning:: ``historical_percentile`` is a **whole-sample** rank,
agent/src/quantlib/credit.py:581
↓ 7 callersFunctiondeflated_sharpe_ratio
Deflate an observed Sharpe by the number of strategies searched. Args: observed_sharpe: Best observed Sharpe, per-observation. n_
agent/src/quantlib/multipletesting.py:339
↓ 7 callersMethoddelete_session
Delete a session and all of its data. Args: session_id: Session ID. Returns: Whether the delete succeeded.
agent/src/session/store.py:106
↓ 7 callersFunctiondeliver_tool_result
Keep a large result in full, with a bounded valid JSON receipt. Args: result: Complete tool result; credentials are scrubbed before savin
agent/src/agent/result_artifacts.py:60
↓ 7 callersFunctiondirect_alpha
Direct Alpha -- an annualized excess return over a public index. Every flow, of every kind (contribution, distribution or valuation mark), is
agent/src/quantlib/fundmath.py:1769
↓ 7 callersFunctiondiscover_channel_names
Return all built-in channel module names by scanning the package (zero imports).
agent/src/channels/registry.py:122
↓ 7 callersMethoddiscover_links
Find top-k most similar entries via BM25. Args: entry_title: Title of the source entry (used to exclude self). entry_
agent/src/memory/semantic_links.py:179
↓ 7 callersFunctiondiscover_plugins
Discover valid plugins and return field-safe diagnostics for invalid ones. Results are cached per plugin root and reused while every manifest kee
agent/src/trading/local_plugins.py:236
↓ 7 callersFunctiondistributed_capital
Total capital returned by the fund, as a positive magnitude. Args: series: The cash flows. distribution_kinds: Kind labels counte
agent/src/quantlib/fundmath.py:631
↓ 7 callersMethoddrain_notifications
(self)
agent/tests/test_agent_loop_no_assistant_prefill.py:111
↓ 7 callersMethodemit
(self, record: logging.LogRecord)
agent/tests/scheduling/test_kernel_sleep_hint.py:244
↓ 7 callersFunctionexecute
(**kwargs)
agent/tests/test_gildata_stock_selection.py:32
↓ 7 callersMethodexecute
Append evidence to a goal. Args: **kwargs: Tool arguments from the model. Returns: JSON envelope with the ev
agent/src/tools/goal_tool.py:491
↓ 7 callersMethodexecute
Fetch dragon-tiger appearances (and seats when ``code`` is given). Args: **kwargs: ``date`` (required, YYYY-MM-DD) and optional `
agent/src/tools/dragon_tiger_tool.py:222
↓ 7 callersMethodexpose
Load known names atomically without adding tools absent from the registry. Args: names: Exact tool names selected from the comple
agent/src/agent/tool_loading.py:62
↓ 7 callersFunctionfeature_available
Check the current credential and opt-in before using a vendor capability.
agent/src/config/gildata_features.py:27
↓ 7 callersFunctionfind_exact
Resolve an exact command name or alias. Returns ``None`` if no match — callers handle the "unknown command" response themselves so error UX s
agent/cli/commands/slash_router.py:240
↓ 7 callersMethodfrom_rates
Build a table from a sequence of individual quotes. Args: rates: The quotes, all against ``quote_currency``. quote_cu
agent/src/entities/cashflow.py:560
↓ 7 callersMethodget_artifact
Get a single artifact by ID. Returns ``None`` if not found.
agent/src/strategy_store/sqlite_store.py:459
↓ 7 callersMethodget_channel
Get a channel by name.
agent/src/channels/manager.py:632
↓ 7 callersFunctionget_config_path
Return the active config file path. Prefers the first existing candidate. If an explicit path is provided, returns that path directly. If no
agent/src/config/paths.py:70
↓ 7 callersFunctionget_shared_index
Return a process-wide singleton SessionSearchIndex. Thread-safe via double-checked locking. Used by both SessionService (indexing) and Sessio
agent/src/session/search.py:485
↓ 7 callersMethodget_strategy_evidence
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:74
↓ 7 callersFunctionget_uploads_dir
Return the user-level directory holding uploaded files.
agent/src/config/paths.py:52
↓ 7 callersFunctionhalt_path
Return the path to the global kill-switch sentinel. Returns: ``<runtime_root>/live/HALT``. The file is NOT created here; use :fun
agent/src/live/halt.py:46
↓ 7 callersMethodhealth
(self)
agent/src/factors/registry.py:316
↓ 7 callersMethodhistory
(self, limit)
agent/tests/test_portfolio_routes.py:33
↓ 7 callersFunctionhose_tick_size
Return the HOSE tick unit (bước giá) applying at *price*. Args: price: Price in VND. Returns: The tick unit in VND. Prices a
agent/backtest/engines/vietnam_equity.py:93
↓ 7 callersMethodidentity_summary
Return compact identity state for traces and tool errors.
agent/src/agent/grounding/ledger.py:260
↓ 7 callersFunctionis_live_broker
Return whether an MCP server denotes a live-trading broker. Detection is by config key OR by URL host, so a live-broker URL parked under an a
agent/src/live/registry.py:75
↓ 7 callersFunctionis_path_within
Check whether *path* resides within *root* directory.
agent/src/channels/utils.py:55
↓ 7 callersMethodis_run_stale
Read-only check: is this ``running`` run silent past its threshold? Used by both the read paths (return ``is_stale`` to callers without
agent/src/swarm/store.py:366
↓ 7 callersMethodlist_revisions
Return a series newest first, including every linked revision.
agent/src/research_artifacts/store.py:336
↓ 7 callersMethodload
Read the stored secrets for a connection. Args: connection_id: Identifier of the local connection instance. fields: C
agent/src/trading/credentials.py:97
↓ 7 callersFunctionload_config
Load local IBKR settings from ``~/.vibe-trading/ibkr-local.json``.
agent/src/trading/connectors/ibkr/local.py:149
↓ 7 callersFunctionload_config
Load Tiger settings from ``~/.vibe-trading/tiger.json``.
agent/src/trading/connectors/tiger/sdk.py:156
↓ 7 callersFunctionload_corpus
Convert raw JSON corpus to MemoryRecord list, IDF dict, and avg doc length. Returns: Tuple of (records, idf_dict, avg_doc_len).
agent/tests/memory/benchmarks/runner.py:250
↓ 7 callersFunctionload_profile
Load a ShadowProfile back from disk. Raises: FileNotFoundError: No profile with that id.
agent/src/shadow_account/storage.py:77
↓ 7 callersFunctionload_queries
Convert raw JSON queries to QueryRecord list.
agent/tests/memory/benchmarks/runner.py:298
↓ 7 callersFunctionloader_cache_get
Return a cached DataFrame for one payload, or ``None`` on any miss. Misses include: cache disabled, range not yet settled, entry absent, or a
agent/backtest/loaders/base.py:579
↓ 7 callersFunctionloader_cache_put
Write one non-empty DataFrame to the cache; a no-op when not cacheable. Skips a disabled cache, an unsettled range, and empty/non-DataFrame resul
agent/backtest/loaders/base.py:608
↓ 7 callersFunctionmatch_commands
Return commands that fuzzy-match ``input_text``. Only matches when the trimmed input starts with ``/``. The leading slash and any trailing ar
agent/cli/commands/slash_router.py:206
↓ 7 callersFunctionmixed_caliber_warning
Build the mixed-caliber warning for a served basket, or None. ``stamps`` maps each served symbol to the (source, caliber) pair that served it
agent/backtest/loaders/registry.py:401
↓ 7 callersFunctionmsteams_validate_content_length
Validate an inbound ``Content-Length`` before allocating for the body. Args: raw: The raw header value, or ``None`` when absent. Ret
agent/src/channels/msteams.py:71
↓ 7 callersFunctionnormalize_currency
Normalize a currency code to its canonical uppercase form. Codes are upper-cased and stripped. Length is deliberately not constrained to thre
agent/src/entities/models.py:68
↓ 7 callersFunctionpending_action_path
(broker: str)
agent/src/live/pending_action.py:263
↓ 7 callersMethodpercentile
(values: list[float], q: float)
agent/tests/test_institutional_commands.py:479
↓ 7 callersFunctionportfolio_style_exposure
Aggregate asset exposures into a portfolio exposure. Args: holdings: Portfolio weights by asset. Need not sum to 1; the weights are
agent/src/quantlib/factormodel.py:479
↓ 7 callersFunctionprecision_at_k
P@K: fraction of top-K retrieved items that appear in ground truth. Args: retrieved: Ranked list of retrieved memory IDs. expecte
agent/tests/memory/benchmarks/metrics.py:14
↓ 7 callersFunctionprepare
(context, **overrides)
agent/tests/test_strategy_adaptation_workflow.py:39
↓ 7 callersFunctionprofile_compatibility
Return compatibility metadata for a built-in or local profile.
agent/src/portfolio/compatibility.py:126
↓ 7 callersFunctionpublic_model_metadata
Return a model identifier only when it cannot be mistaken for an endpoint.
agent/src/swarm/models.py:105
↓ 7 callersFunctionquantize_money
Quantize to 2dp ROUND_HALF_UP — the frozen money discipline (VD-9).
agent/src/tools/paper_trade/rules.py:97
↓ 7 callersFunctionread_daily_count
Return today's order count for ``broker`` (UTC rollover; 0 on any miss).
agent/src/live/daily_count.py:108
↓ 7 callersMethodrebuild_all
Full reindex from a list of (id, title, description, keywords, body) tuples. Clears existing data and re-inserts all entries. Use for bulk
agent/src/memory/search_index.py:396
↓ 7 callersFunctionreconcile_binance_account
Compare immutable local state with one complete USD-M observation. Raises: ValueError: If the source is incomplete, timestamps are incohe
agent/backtest/binance_account_reconciliation.py:314
↓ 7 callersMethodrecord_recovery
Account one bounded recovery attempt against its budget.
agent/src/agent/grounding/release.py:335
↓ 7 callersFunctionrefresh
(settingsOverride?: PortfolioSettings)
frontend/src/pages/Portfolio.tsx:171
↓ 7 callersMethodregister
(self, name, frame)
agent/tests/test_loader_retry_helpers.py:178
↓ 7 callersFunctionrequire_longbridge_credentials
Return resolved credentials or raise a field-only diagnostic error.
agent/src/trading/connectors/longbridge/credentials.py:114
↓ 7 callersFunctionrequires_account_selection
Report whether a profile's account-scoped reads must name one account. A remote MCP server such as Robinhood's serves every account behind one
agent/src/trading/connections.py:56
↓ 7 callersMethodresolved_transport
Resolve the effective transport from explicit type or implied fields.
agent/src/config/schema.py:409
↓ 7 callersFunctionretrieve_top_k
Retrieve top-K memory IDs by scoring. Args: query_tokens: Tokenized query. corpus: All memory records. treatment: If True
agent/tests/memory/benchmarks/runner.py:196
↓ 7 callersMethodsave_snapshot
Append one immutable snapshot. Args: payload: The full snapshot envelope produced by :meth:`src.portfolio.service
agent/src/portfolio/store.py:79
↓ 7 callersFunctionscenario
()
agent/tests/scheduling/test_kernel_sleep_hint.py:39
↓ 7 callersFunctionsensitivity_grid
Value-per-share sensitivity to WACC and perpetuity terminal growth. Every cell re-runs the full model (discount the explicit FCFFs at that WA
agent/src/quantlib/valuation/dcf.py:1059
↓ 7 callersFunctionservice
(tmp_path, *, rates=None)
agent/tests/test_extraetf_integration.py:32
↓ 7 callersMethodsettle_day
Day-order semantics: cancel every unfinished order at session end. ``new``, ``open``, partially ``filled`` and ``pending_cancel`` orders
agent/src/tools/paper_trade/order_lifecycle.py:252
↓ 7 callersMethodsetup
(self, tmp_path: Path)
agent/tests/test_skill_writer_tools.py:209
↓ 7 callersMethodsymbol_info
(self, name: str)
agent/tests/test_mt5_connector.py:170
↓ 7 callersFunctionuseAnalysisState
(key: string, initial: T)
frontend/src/hooks/useAnalysisState.ts:14
↓ 7 callersFunctionvalue_position
Calculate USD/CNY market value and unrealized P/L. Args: row: A normalized position row; it is updated in place. rates: Currency
agent/src/portfolio/normalization.py:199
↓ 7 callersFunctionverify_chain_with_archives
Verify a ledger's whole history, sealed segments included. Walks the archives oldest-first and then the active file, checking that each segme
agent/src/governance/ledger.py:710
↓ 7 callersFunctionvpin
Compute Volume-Synchronized Probability of Toxicity (VPIN - Easley et al. 2012). VPIN = sum_{i=t-N+1}^t |V_B,i - V_S,i| / (N * V) aggregating
agent/src/quantlib/microstructure.py:132
↓ 7 callersFunctionxirr
Annual internal rate of return of irregularly dated amounts. Amounts are holder-perspective, matching ``CashFlow.amount``: money paid out is
agent/src/quantlib/performance.py:828
↓ 6 callersMethod__init__
(self, risk_free_rate: float = 0.02, iv_skew: float = 0.0, iv_curvature: float = 0.0, default
agent/src/skills/options-strategy/example_signal_engine.py:36
↓ 6 callersFunction_align_pandas_reference
Reference implementation of _align() using pure pandas operations. This replicates the original scalar reindex+ffill logic from before the ve
agent/tests/test_signal_alignment_perf.py:86
↓ 6 callersFunction_annualised_hv
Independent oracle: rolling log-return std scaled by ``sqrt(bars/yr)``.
agent/tests/test_options_hv_bars_per_year.py:24
↓ 6 callersMethod_api_post
( self, endpoint: str, body: dict | None = None, *, auth: bool = True,
agent/src/channels/weixin.py:309
↓ 6 callersFunction_appearance_payload
A datacenter appearance payload with two board rows.
agent/tests/test_dragon_tiger_tool.py:20
↓ 6 callersFunction_as_float
(value: Any)
agent/src/trading/connectors/kis/sdk.py:930
↓ 6 callersFunction_as_label_spans
Normalise label end times into positional spans. Args: label_end_times: Either a pandas Series whose index is the label start
agent/src/quantlib/crossvalidation.py:110
↓ 6 callersFunction_assert_all_counts
(pattern: str, expected: int)
agent/tests/test_distribution_skill_manifest.py:56
↓ 6 callersFunction_assert_balances
Independently recompute assets vs. liabilities + equity and assert equality. Args: bs: The balance sheet to check.
agent/tests/quantlib/valuation/test_threestatement.py:41
↓ 6 callersFunction_assert_date_error
(result)
agent/tests/test_trade_journal_invalid_datetime.py:29
↓ 6 callersFunction_assert_quantity_error
(result, tmp_path)
agent/tests/test_trade_journal_invalid_quantity.py:35
↓ 6 callersFunction_attach_tool_call_thought_signatures
Attach Gemini thought signatures to assistant replay tool calls. The replay message is later converted back into LangChain messages from a pl
agent/src/agent/context_compact.py:451
↓ 6 callersFunction_attribution_load_position_weights
Read the book Brinson should attribute from ``positions.csv``. A run closes every position on its last bar (``end_of_backtest``), so the fina
agent/src/api/attribution_core.py:518
↓ 6 callersFunction_audit
( broker, session_id, *, kind, outcome, mandate, intent, broker_request, broker_response, gate_decision, e
agent/src/live/sdk_order_gate.py:1027
↓ 6 callersMethod_audit
Write one live-action audit record for a tick outcome. Audit failures are swallowed (logged) so a ledger problem can never make a *bl
agent/src/live/runtime/runner.py:836
↓ 6 callersFunction_bars_to_frame
Reshape Sina ``{d,o,h,l,c,v}`` bars into the standard OHLCV frame. Args: bars: List of per-day dicts with ``d/o/h/l/c/v`` keys. s
agent/backtest/loaders/sina_loader.py:75
↓ 6 callersFunction_base
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/trading.py:20
↓ 6 callersFunction_body
Parse a JSON tool response.
agent/tests/test_read_file_skill_relative.py:28
↓ 6 callersMethod_body
( self, messages: list[dict[str, Any]], *, stream: bool, replay_reason
agent/src/providers/openai_codex.py:742
↓ 6 callersFunction_build_panel
Hand-built 2-date x 3-symbol panel; every row has distinct values.
agent/tests/factors/test_fundamental_expansion_samples.py:67
← previousnext →1,301–1,400 of 26,887, ranked by callers