MCPcopy Create free account

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

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

↓ 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:70
↓ 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:237
↓ 6 callersFunctionloader_cache_path
Return the parquet cache path for one loader payload.
agent/backtest/loaders/base.py:643
↓ 6 callersFunctionmagnitude_suffix
The magnitude mark following a figure, allowing horizontal spacing. ``K`` / ``M`` / ``B`` count only when no further letter follows, so "5MB"
agent/evals/grounding/figures.py:1090
↓ 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 callersFunctionmanaged_reader
Bound a low-level reader, preserving its return type and exceptions. Used for reusable HTTP clients and non-JSON read results. Cache reuse belong
agent/src/data_gateway/reads.py:255
↓ 6 callersFunctionmap_symbol
Translate a Vibe-Trading symbol into Yahoo's ticker convention. Args: symbol: Project-side symbol, e.g. ``AAPL.US``, ``00700.HK``, ``TD.T
agent/backtest/loaders/yahoo_client.py:74
↓ 6 callersFunctionmarket_for
Require a public identity understood by the existing market-data layer.
agent/src/data_gateway/history_router.py:70
↓ 6 callersMethodon_bar
Per-bar hooks dispatched by market type.
agent/backtest/engines/composite.py:352
↓ 6 callersMethodoptions_chain
Acquire a US option snapshot; symbol normalization unifies cache keys.
agent/src/data_gateway/service.py:347
↓ 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 callersFunctionparser
()
agent/tests/test_nifty100_api_cli.py:34
↓ 6 callersMethodplan
Record a structured plan in the turn's thread. Args: plan_id: Identifier of the plan being recorded. steps: Plan step
agent/src/session/runtime.py:199
↓ 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 callersFunctionprepare
(context, **overrides)
agent/tests/test_strategy_adaptation_workflow.py:45
↓ 6 callersMethodprepare_and_append
Record a generated transcript event for the current process.
agent/src/channelsui/gateway_services.py:202
↓ 6 callersFunctionprovider_catalog
Return independent public metadata records without runtime-only fields. Returns: Independent copies of the public provider records with d
agent/src/providers/registry.py:63
↓ 6 callersFunctionprovider_diagnostics
Build a redacted provider diagnostic snapshot. Args: policy: Tool policy used to report the active provider's shell policy status. R
agent/src/providers/diagnostics.py:78
↓ 6 callersFunctionprovider_env_names
Return the API-key and base-URL env names for a provider/model pair. Args: provider: Provider label or alias. model: Optional mod
agent/src/providers/registry.py:243
↓ 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. Args: value: Candidate provider label, matched case-insensitively. Return
agent/src/swarm/models.py:70
↓ 6 callersFunctionpublish
(name, data)
agent/tests/test_interaction_tools.py:44
↓ 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:368
↓ 6 callersFunctionread
(path, pointer, **kwargs)
agent/tests/test_read_file_json_pointer.py:41
↓ 6 callersFunctionread_document
Read any supported document; dispatch by extension. Args: file_path: Absolute path to the file. pages: Only used for PDF — e.g. "
agent/src/tools/doc_reader_tool.py:429
↓ 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:64
↓ 6 callersMethodreap_stale_running_runs
Sweep stored running swarms and reconcile their status. Returns: IDs of runs recovered or reaped from running into a terminal sta
agent/src/swarm/store.py:568
↓ 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:574
↓ 6 callersMethodregister_artifact
Register a new artifact. Returns the artifact_id.
agent/src/strategy_store/sqlite_store.py:378
↓ 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 callersMethodreplay
Replay buffered events after the last event ID, or the whole buffer for hydration. Args: session_id: Session whose transient buff
agent/src/session/events.py:241
↓ 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 callersFunctionresolve
()
frontend/src/components/charts/__tests__/ShannonPortfolio.test.tsx:112
↓ 6 callersFunctionrun_alpha_bench
Run the bench and return a parsed envelope (dict, not JSON string).
agent/src/tools/alpha_bench_tool.py:1566
↓ 6 callersFunctionrun_playbook
Render or dispatch the playbook registered under ``slug``. Args: slug: Playbook key matching the slash-command keyword. ctx: Opti
agent/cli/commands/institutional/runner.py:129
↓ 6 callersMethodrun_until_idle
Send, then wait for every turn the send leads to.
agent/tests/test_session_queued_input.py:152
↓ 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 callersFunctionsafe_document_path
Validate a document-reader file path. Args: p: User-supplied document path. `~` expansion is supported. Returns: Absolute re
agent/src/tools/path_utils.py:416
↓ 6 callersMethodsave
Append a revision, or return the identical existing revision.
agent/src/research_artifacts/store.py:195
↓ 6 callersFunctionsave_profile
Persist a ShadowProfile to disk as JSON.
agent/src/shadow_account/storage.py:67
↓ 6 callersMethodscan_queue
Lazily create the single bounded background scan scheduler.
agent/src/data_gateway/service.py:84
↓ 6 callersFunctionscenario
()
agent/tests/test_scheduled_delivery_stale_snapshot.py:113
↓ 6 callersFunctionscenario
()
agent/tests/test_channels_attempt_progress.py:61
↓ 6 callersFunctionseed_message
Seed a canonical item and boundary for a display-reader fixture.
agent/tests/recording_helpers.py:33
↓ 6 callersFunctionsetDays
(days: number)
frontend/src/pages/Correlation.tsx:52
↓ 6 callersFunctionsnapshot
(root)
tools/gateway_minute_restart_probe.py:22
↓ 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
Start a daemon watcher when the configured timeout is positive. Args: trace: Sink for the terminal failure trace. run
agent/src/agent/loop_watchdog.py:26
↓ 6 callersMethodstop
Stop bot and cleanup resources.
agent/src/channels/qq.py:245
↓ 6 callersMethodstream
Stream a Codex response, refreshing authentication when required. Args: messages: Conversation messages to convert to Codex Respo
agent/src/providers/openai_codex.py:787
↓ 6 callersMethodstream
Run one decision, yielding an empty chunk every second until it lands. Args: messages: Conversation so far, as LangChain messages
agent/src/providers/claude_cli.py:568
↓ 6 callersFunctionsvensson
Compute Svensson zero rates for given maturities and parameters.
agent/src/quantlib/fixedincome.py:628
↓ 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 callersMethodto_sse
Format the event as an SSE text frame. Returns: An SSE frame with JSON data and an ID line when available.
agent/src/session/events.py:30
↓ 6 callersMethodtool_result
Record one delivered (redacted, size-capped) tool result. Args: message: The tool-role message the model receives. st
agent/src/session/runtime.py:138
↓ 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:144
↓ 6 callersFunctionts_slope
Rolling OLS slope against ``0, ..., n - 1``, requiring a full window.
agent/src/factors/base.py:279
↓ 6 callersMethodusers
(self)
agent/tests/test_session_queued_input.py:166
↓ 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 callersFunctionwait_until
(predicate, timeout=8.0)
agent/tests/test_background_host_lifecycle.py:25
↓ 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:188
↓ 6 callersFunctionwrite_records
(path: Path, records: list[dict])
agent/tests/harness_eval/thread_fixture.py:9
↓ 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:545
↓ 5 callersFunction_adapter
( client: httpx.Client, *, provider: str, base_url: str )
agent/tests/test_opencode_provider.py:169
↓ 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/evals/grounding/policies.py:935
↓ 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 callersMethod_attempt_file
(self, session_id: str, attempt_id: str)
agent/src/session/store.py:77
↓ 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_bar_df
(open_px: float, ts: str = "2025-10-04")
agent/tests/test_nonpositive_prices.py:144
↓ 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:1280
↓ 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:603
↓ 5 callersFunction_builder
(memory: WorkspaceMemory)
agent/tests/test_system_prompt_cache_stability.py:31
↓ 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_cache_result
Persist a ShadowBacktestResult so downstream tools don't re-backtest.
agent/src/shadow_account/backtester.py:401
↓ 5 callersFunction_call
(codes)
agent/tests/test_get_market_data_unresolved.py:63
← previousnext →1,901–2,000 of 30,405, ranked by callers