MCPcopy Create free account

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

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

↓ 6 callersFunctionhk_counter_currency
Return the currency HKEX's code allocation assigns to a ``.HK`` code. Args: code: Ticker / symbol string, optionally ``local:``-prefixed.
agent/backtest/engines/_market_hooks.py:285
↓ 6 callersFunctionhose_round_up
Quantize *price* up onto the HOSE tick grid.
agent/backtest/engines/vietnam_equity.py:117
↓ 6 callersFunctioninfo_root
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/client.py:233
↓ 6 callersFunctionis_content_filter_triggered
Return True when ``finish_reason`` indicates content moderation blocked the response. Recognises both OpenAI's ``"content_filter"`` and Gemini's
agent/src/providers/content_filter.py:50
↓ 6 callersFunctionkrx_round_down
Truncate *price* down onto the tick grid (KRX ``절사``).
agent/backtest/engines/korea_equity.py:99
↓ 6 callersMethodlist_artifacts
List artifacts with composable filters, newest first.
agent/src/strategy_store/store.py:226
↓ 6 callersMethodlist_runs
List all runs sorted by created_at descending. Args: limit: Maximum number of runs to return. Returns: List
agent/src/swarm/store.py:223
↓ 6 callersMethodlist_sessions
List all sessions in descending update-time order. Args: limit: Maximum number of sessions to return. Returns:
agent/src/session/store.py:122
↓ 6 callersMethodlist_strategies
(self, *args, **kwargs)
agent/tests/test_strategy_discovery_tools.py:66
↓ 6 callersFunctionload_alpha_meta_from_py
AST-extract the ``__alpha_meta__`` dict literal from a zoo module. No import is performed — purely static parsing. Raises ``RegistryError`` on
agent/src/factors/registry.py:151
↓ 6 callersFunctionload_csv_records
Load CSV rows as dictionaries. Args: path: CSV file path. limit: Stop after this many rows; ``None`` reads the whole file. R
agent/src/ui_services.py:66
↓ 6 callersFunctionload_dataframe
Load a CSV/Excel file into a DataFrame with encoding fallback. Args: path: Path to the file (.csv/.xlsx/.xls). Returns: Pars
agent/src/tools/trade_journal_parsers.py:130
↓ 6 callersFunctionload_runtime_agent_config
Load disk config and apply runtime overrides. Args: config_path: Optional explicit config file path. overrides: Runtime override
agent/src/config/loader.py:137
↓ 6 callersFunctionload_valuation_panel
Load whitelisted ``daily_basic`` valuation fields as wide panels. Args: symbols: Panel symbols; only CN A-share equities are fetched, the
agent/backtest/loaders/valuation_loader.py:229
↓ 6 callersFunctionloader_cache_path
Return the parquet cache path for one loader payload.
agent/backtest/loaders/base.py:542
↓ 6 callersMethodlocking
(fd: int, mode: int, count: int)
agent/tests/test_openai_codex.py:539
↓ 6 callersFunctionmain
Check the Git index for internal document paths. Args: repo_root: Repository to check; defaults to this script's repository. Returns
tools/ci_private_files_gate.py:28
↓ 6 callersFunctionparse_eastmoney
Parse 东方财富 exports. Expected columns: 成交日期 (YYYYMMDD), 成交时间 (HH:MM:SS), 股票代码, 股票名称, 买卖标志 (B/S), 成交数量, 成交均价, 成交金额, 佣金, 印花税.
agent/src/tools/trade_journal_parsers.py:408
↓ 6 callersFunctionparse_finite_float
Parse a float; ``None`` for missing/malformed/non-finite tokens.
agent/src/strategy_discovery/run_artifacts.py:85
↓ 6 callersFunctionparse_futu
Parse 富途 exports (English headers, HK+US mix). Expected columns: Date, Time, Symbol, Name, Side, Quantity, Price, Amount, Commission, Platfor
agent/src/tools/trade_journal_parsers.py:534
↓ 6 callersMethodpersist
Atomically persist the current structured ledger.
agent/src/agent/grounding/ledger.py:440
↓ 6 callersFunctionpme_plus
Kaplan-Schoar "PME+" (Rouvinez) -- a comparable IRR, not a multiple. KS-PME reports a multiple, which cannot be annualized and cannot be comp
agent/src/quantlib/fundmath.py:1597
↓ 6 callersMethodprepare_and_append
Record a generated transcript event for the current process.
agent/src/channelsui/gateway_services.py:204
↓ 6 callersFunctionprovider_env_names
Return the API-key and base-URL env names for a provider/model pair.
agent/src/providers/capabilities.py:345
↓ 6 callersFunctionpublic_proposal
(payload: Mapping[str, Any])
agent/src/scheduled_research/proposals.py:76
↓ 6 callersFunctionpublic_provider_metadata
Return an approved public provider label for run metadata.
agent/src/swarm/models.py:97
↓ 6 callersFunctionpurged_walk_forward_splits
Walk-forward splits that only ever train on the past. Purged K-fold trains on data from *after* the test block as well, which is correct for
agent/src/quantlib/crossvalidation.py:417
↓ 6 callersMethodquery_events
Fetch and normalise feed items, dropping anything not yet knowable. Args: codes: Instrument codes to query. as_of: Po
agent/backtest/loaders/rsshub_events.py:360
↓ 6 callersFunctionread_url
Fetch web page content via the Jina Reader API. The full URL (including query string) is sent to the third-party Jina Reader service (r.jina.
agent/src/tools/web_reader_tool.py:62
↓ 6 callersMethodreap_stale_running_runs
Sweep all run directories and reconcile each one. Returns IDs of runs whose status flipped from ``running`` to a terminal status — us
agent/src/swarm/store.py:552
↓ 6 callersMethodrecv
(self)
agent/src/tools/paper_trade/strategy_process.py:50
↓ 6 callersMethodrefresh_config
Refresh declared live fields; preserve runtime connection state. Validate the stored section, then copy only ``hot_reload_noop_keys``
agent/src/channels/base.py:91
↓ 6 callersFunctionrefresh_strategy_evidence_core
Shared refresh core for the agent tool and the CLI (one code path). Validates the exactly-one-source rule, loads the manifest (or accepts inl
agent/src/tools/strategy_discovery_tool.py:583
↓ 6 callersMethodregister_artifact
Register a new artifact. Returns the artifact_id.
agent/src/strategy_store/sqlite_store.py:378
↓ 6 callersFunctionreject
(code: UpdateRejectionCode, detail: string)
desktop/electron/src/update-verification.ts:309
↓ 6 callersMethodreject
Move an unfinished order to ``rejected``; terminal orders are frozen.
agent/src/tools/paper_trade/order_lifecycle.py:161
↓ 6 callersFunctionrender
Render each built-in profile without merging its permissions with others.
agent/src/trading/capability_matrix.py:47
↓ 6 callersMethodrender
Return the instruction body with placeholders substituted. Args: variables: Overrides keyed by declared variable name. A key that
agent/src/scheduled_research/playbooks.py:110
↓ 6 callersFunctionrender_shadow_report
Render the full Shadow Account report. Returns: Dict with keys: ``html_path`` : rendered HTML (always present) `
agent/src/shadow_account/reporter.py:59
↓ 6 callersFunctionrequest_definitions
Return this request's schemas without changing the full registry API.
agent/src/agent/tool_loading.py:135
↓ 6 callersMethodrequest_wake
Ask the loop to cut its current sleep short, as soon as it can. Thread-safe: called from whichever thread an event arrives on, so it
agent/src/scheduling/kernel.py:309
↓ 6 callersMethodrequire_movements
Return movements, refusing a holdings export outright. Returns: The parsed movements, possibly empty for an account with no histo
agent/src/portfolio/extraetf.py:236
↓ 6 callersMethodreset
Clear all recorded hits (test/maintenance helper).
agent/src/api/system_routes.py:122
↓ 6 callersFunctionrun_alpha_bench
Run the bench and return a parsed envelope (dict, not JSON string).
agent/src/tools/alpha_bench_tool.py:1268
↓ 6 callersFunctionrun_playbook
Render or dispatch the playbook registered under ``slug``. Args: slug: Playbook key, matching the slash command keyword. ctx: The
agent/cli/commands/institutional/runner.py:160
↓ 6 callersFunctionrunning_http_mcp_server_on_random_port
Context manager that runs a FastMCP HTTP server on a retryable free port.
agent/tests/mcp_http_test_helpers.py:388
↓ 6 callersFunctionruns_dir
(shadow_id: str)
agent/src/shadow_account/storage.py:35
↓ 6 callersMethodsend_message
(self, sid, content, **kw)
agent/tests/test_api_live_runtime.py:835
↓ 6 callersFunctionspread_term_structure
Cross-sectional spread grid: one row per issuer, one column per tenor. Args: issuers: ``{issuer: {tenor_years: yield}}``. risk_fr
agent/src/quantlib/credit.py:660
↓ 6 callersMethodstart
Begin rendering. ``verb`` rerolls per turn if not supplied.
agent/cli/stream.py:118
↓ 6 callersMethodstop
Stop bot and cleanup resources.
agent/src/channels/qq.py:245
↓ 6 callersMethodstream
( self, messages: list[dict[str, Any]], config: Optional[dict[str, Any]] = None )
agent/src/providers/openai_codex.py:783
↓ 6 callersFunctionsvensson
Compute Svensson zero rates for given maturities and parameters.
agent/src/quantlib/fixedincome.py:628
↓ 6 callersMethodtext
(self, query, max_results=5, **kwargs)
agent/tests/test_web_search_tool.py:28
↓ 6 callersMethodtier_amount
Dollars that flowed through a named tier. Args: name: One of the ``TIER_*`` constants. Returns: The tier's `
agent/src/quantlib/fundmath.py:1092
↓ 6 callersMethodto_dict
Serialize the hypothesis to plain JSON-compatible data.
agent/src/hypotheses/registry.py:114
↓ 6 callersMethodto_dict
Return a plain JSON-serializable view of this tick result.
agent/src/live/runtime/runner.py:286
↓ 6 callersFunctionto_float
Parse ``1234.56`` or Brazilian ``1.234,56``; blank -> ``None``.
agent/src/br_data/_download.py:47
↓ 6 callersFunctiontrading_days_in_range
Open trading days within the inclusive range, ascending (R3 driver). The engine's day loop (Step 3) consumes this to emit ``skipped_days`` ro
agent/src/tools/paper_trade/calendar.py:256
↓ 6 callersFunctiontrend_line_slope
Compute rolling linear-fit slope. Args: close: Closing price series. window: Fitting window size. Returns: Series of
agent/src/tools/pattern_tool.py:142
↓ 6 callersFunctionts_slope
Rolling OLS slope against ``0, ..., n - 1``, requiring a full window.
agent/src/factors/base.py:279
↓ 6 callersFunctionviolation_indicator
Flag the days on which the realised loss exceeded the VaR forecast. Args: returns: Realised returns, signed. A 3% loss is ``-0.03``.
agent/src/quantlib/var_backtest.py:305
↓ 6 callersFunctionwrap_live_broker_tools
Re-wrap a live broker's discovered tools by read/write class. READ tools are returned as-is with ``is_readonly = True``; WRITE and UNKNOWN to
agent/src/live/registry.py:186
↓ 6 callersFunctionwrite_validation_json
Write validation results to ``path`` as strict, RFC-8259 JSON. A validation metric can be non-finite (e.g. a Sharpe computed from a path whos
agent/backtest/validation.py:520
↓ 5 callersFunction_adapter
( client: httpx.Client, *, provider: str, base_url: str )
agent/tests/test_opencode_provider.py:166
↓ 5 callersMethod_analysis_entries
Scope metrics by explicit observed symbols recorded on their call. Symbol-less aggregate calls remain eligible. A multi-symbol call cannot
agent/src/agent/grounding/policies.py:934
↓ 5 callersFunction_arrange
Wire a seeded old runtime + a fresh rebuild target into the test app.
agent/tests/test_channel_reset_notice.py:143
↓ 5 callersFunction_as_iter
(value: Any)
agent/src/trading/connectors/tiger/sdk.py:635
↓ 5 callersFunction_as_list
(value: Any)
agent/src/trading/connectors/kis/sdk.py:922
↓ 5 callersFunction_assert_day_end_cancel
Exactly one day-end cancel of the whole (all-or-none) order.
agent/tests/test_paper_trade_5m_limit_price.py:221
↓ 5 callersFunction_assert_profile
(config: IBKRLocalConfig, accounts: Iterable[str])
agent/src/trading/connectors/ibkr/local.py:626
↓ 5 callersFunction_attribution_finite_float
Parse a finite float, returning ``None`` for invalid values.
agent/src/api/attribution_core.py:74
↓ 5 callersFunction_attribution_read_csv
Read a CSV into ``(fieldnames, rows)``, refusing symlinks. Returns ``(None, [])`` when the file is missing, a symlink, or unreadable.
agent/src/api/attribution_core.py:140
↓ 5 callersFunction_bar
(open_: float, close: float, day: str)
agent/tests/test_composite_market_rules.py:29
↓ 5 callersFunction_base
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/copy_trading.py:24
↓ 5 callersFunction_base_payload
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/sdk.py:82
↓ 5 callersFunction_bloc_panel
Panel of one tight return bloc plus one asset that decouples late. Assets BLOC0..BLOC4 share a common return driver for all bars. DECOUPLER f
agent/tests/factors/test_corr_rewire.py:28
↓ 5 callersFunction_build_comps_artifact
(*, generated_at: datetime = FIXED_TIME)
agent/tests/quantlib/valuation/test_artifact.py:204
↓ 5 callersFunction_build_legacy_db
Create a pre-governance-schema database with one legacy artifact row. Mirrors exactly the ``_init_db`` DDL as it existed before the model-gov
agent/tests/test_strategy_store.py:1245
↓ 5 callersFunction_build_panel
Hand-built 2-date x 3-symbol panel; every row has distinct values.
agent/tests/factors/test_fundamental_valuation_samples.py:57
↓ 5 callersMethod_build_runtime_env
Build subprocess env and enforce no-proxy execution. Args: run_dir: Current run directory. pythonpath_extra: Addition
agent/src/core/runner.py:522
↓ 5 callersFunction_builder
(memory: WorkspaceMemory)
agent/tests/test_system_prompt_cache_stability.py:28
↓ 5 callersFunction_buy
(limit: float | None = None, qty: float = 100)
agent/tests/test_paper_trade_5m_limit_price.py:185
↓ 5 callersFunction_by_label
(points, label_part)
agent/tests/test_report_audit_accounting_parens.py:15
↓ 5 callersFunction_ca_engine
(**overrides)
agent/tests/test_global_equity_engine.py:40
↓ 5 callersFunction_call
(codes)
agent/tests/test_get_market_data_unresolved.py:59
↓ 5 callersFunction_call
Run ``throttled_get_json`` against a canned response body.
agent/tests/test_http_jsonp_fallback.py:38
↓ 5 callersFunction_call_remote
Call a known read operation on a remote MCP connector profile. Args: profile: Connector profile whose ``transport`` is a remote MCP serve
agent/src/trading/service.py:1516
↓ 5 callersMethod_call_with_retry
Call an async Telegram API function with retry on pool/network timeout and RetryAfter.
agent/src/channels/telegram.py:873
↓ 5 callersFunction_calm_block
Independent idiosyncratic returns — pairwise correlations near zero.
agent/tests/test_regime.py:33
↓ 5 callersFunction_claimed
Extract claimed_performance rows keyed by metric. Args: abstract: Abstract text to run the brief over. Returns: ``{metric: r
agent/tests/test_research_papers_tool.py:788
↓ 5 callersFunction_client
(tmp_path: Path, monkeypatch)
agent/tests/test_etoro_runtime.py:15
↓ 5 callersFunction_client
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, *, channels: dict[str, Any], runtime: A
agent/tests/test_channel_noop_refresh.py:200
↓ 5 callersFunction_clip
(text: str, limit: int)
agent/cli/ui/rail.py:215
↓ 5 callersFunction_clip_inline
Collapse whitespace and clip text for single-line terminal cells.
agent/cli/_legacy.py:484
↓ 5 callersFunction_close_through
(window: int)
agent/tests/factors/test_qlib158_regression.py:14
↓ 5 callersFunction_closed_unresolved_market
A pre-oracle closed market: trading over, outcome recorded nowhere. Mirrors gamma market 12 (``will-joe-biden-get-coronavirus-before-the- ele
agent/tests/test_prediction_market_tool.py:61
↓ 5 callersFunction_cluster_to_rule
Summarize a cluster as one ShadowRule. Entry condition uses p10–p90 numeric bounds + dominant market. This is lighter than a decision tree an
agent/src/shadow_account/extractor.py:437
↓ 5 callersFunction_cn_block
One report period's ``boxitem`` fragment. Args: label: The 季度 label, e.g. ``"2025年4季度股票投资明细"``. as_of: Period end as ``YYYY-MM-DD
agent/tests/test_etf_holdings_tool.py:177
↓ 5 callersFunction_cn_row
One holdings row in Eastmoney's live seven-column markup. Args: seq: The 序号 cell; a trailing ``*`` marks an issuer cross-referenced row.
agent/tests/test_etf_holdings_tool.py:141
← previousnext →1,601–1,700 of 26,887, ranked by callers