MCPcopy Create free account

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

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

↓ 1 callersMethod_pairing_subcommand_text
(content: str)
agent/src/channels/runtime.py:472
↓ 1 callersFunction_panel
()
agent/cli/_legacy.py:3949
↓ 1 callersFunction_panel
()
agent/tests/test_data_availability.py:16
↓ 1 callersFunction_panel
()
agent/tests/factors/test_gtja191_alpha140_formula.py:13
↓ 1 callersFunction_panel
()
agent/tests/factors/test_gtja191_alpha101_formula.py:16
↓ 1 callersFunction_panel
()
agent/tests/factors/test_gtja191_alpha170_high_mean.py:13
↓ 1 callersFunction_panel_6sym
(n_rows: int, seed: int = 11)
agent/tests/factors/test_alpha101_alpha010_023_027_nan_propagation.py:89
↓ 1 callersMethod_panel_poll_worker
(self, panel_id: str)
agent/src/channels/mochat.py:653
↓ 1 callersFunction_panel_window
(panel: Mapping[str, Any])
agent/src/factors/data_availability.py:137
↓ 1 callersFunction_panel_with_a_real_tie
One exact tie: two consecutive closes equal, which is a 0.0 comparison.
agent/tests/factors/test_qlib158_cnt_nan_propagation.py:64
↓ 1 callersFunction_panel_with_one_gap
A synthetic OHLCV+vwap panel with one interior missing close on SYM1, the shape every registered alpha's compute(panel) expects.
agent/tests/factors/test_pct_change_gap_preserves_nan.py:49
↓ 1 callersFunction_panels
()
agent/tests/factors/test_gtja191_vwap_scale.py:22
↓ 1 callersFunction_paragraph
Keep the standard layout for LTR/CJK and reorder RTL after line breaks.
agent/src/tools/pdf_report.py:110
↓ 1 callersFunction_param
(name: str, current_value=None)
agent/tests/test_openbb_bridge/test_context_injector.py:74
↓ 1 callersFunction_parse_allowed_hosts
Parse ``VIBE_TRADING_MCP_ALLOWED_HOSTS`` into a Host/Origin allow-list. Entries are normalized like Host header values (case-insensitive, IPv6
agent/mcp_server.py:203
↓ 1 callersMethod_parse_authentication_results_clauses
Read method/result and properties without interpreting quoted prose. Comments have already been removed; quoted property values are decoded
agent/src/channels/email.py:1037
↓ 1 callersFunction_parse_bar
Parse one ``{date: {"1. open": ...}}`` entry into an OHLCV row dict. Args: date: The bar's ``YYYY-MM-DD`` date string. bar: The p
agent/backtest/loaders/alphavantage_loader.py:240
↓ 1 callersFunction_parse_block
(block: dict)
agent/src/channels/feishu.py:314
↓ 1 callersFunction_parse_chart
Convert a v8 chart payload into ascending OHLCV row dicts. Returns: ``(rows, currency)``: rows as in :func:`get_chart`, plus the quote
agent/backtest/loaders/yahoo_client.py:219
↓ 1 callersFunction_parse_choice
Parse one pt-v1.2 optional enum: absent/null → default, else closed check. ``None`` is the "field not supplied" spelling (JSON null and a missing
agent/src/tools/paper_trade/schema.py:308
↓ 1 callersFunction_parse_cn_period
Parse one report period's holdings block from the Eastmoney fund archive. Every holding is stamped with the disclosure it came from, because the
agent/src/tools/etf_holdings_tool.py:891
↓ 1 callersFunction_parse_consensus_eps
Extract per-year consensus EPS rows from a THS forecast payload. THS wraps its rows under ``data`` (a list of per-forward-year records, each
agent/src/tools/research_reports_tool.py:334
↓ 1 callersFunction_parse_cors_origins
Parse CORS origins and reject credentialed wildcard configuration.
agent/src/api/security.py:69
↓ 1 callersFunction_parse_csv
Convert a Stooq EOD CSV body into our OHLCV frame, ``None`` on no data. Args: body: Raw CSV text ``Date,Open,High,Low,Close,Volume``. An
agent/backtest/loaders/stooq_loader.py:268
↓ 1 callersFunction_parse_date
(value: Any, path: str)
agent/src/tools/paper_trade/schema.py:301
↓ 1 callersFunction_parse_date_param
Parse an optional 'YYYYMMDD' date param, falling back to ``default``. Args: value: A ``None`` (use ``default``) or a 'YYYYMMDD' string.
agent/src/tools/research_reports_tool.py:207
↓ 1 callersFunction_parse_dsml_attrs
Parse attributes from a DSML tag.
agent/src/providers/chat.py:270
↓ 1 callersFunction_parse_dsml_tool_calls
Parse DeepSeek-style DSML tool calls embedded as assistant content. Some OpenAI-compatible relays/models return tool calls as a textual DSML
agent/src/providers/chat.py:286
↓ 1 callersFunction_parse_eastmoney_periods
Extract period records from an Eastmoney datacenter report payload. Eastmoney nests report rows under ``result.data`` as a list of flat dicts.
agent/src/tools/financial_statements_tool.py:176
↓ 1 callersFunction_parse_end_at
(value: Any)
agent/src/scheduled_research/service.py:100
↓ 1 callersFunction_parse_envelope
Return a typed envelope dict if the frame is a new-style JSON envelope, else None. A frame qualifies when it parses as a JSON object with a strin
agent/src/channels/websocket.py:193
↓ 1 callersFunction_parse_extra_cors_origins
Parse the additive CORS origin allow-list, rejecting a wildcard. Args: raw: Comma-separated origin list from ``VIBE_TRADING_EXTRA_CORS_OR
agent/src/api/security.py:82
↓ 1 callersFunction_parse_extra_loopback_hosts
Return additional trusted Host names for loopback API traffic.
agent/src/api/security.py:106
↓ 1 callersFunction_parse_filings
Extract recent filings from a submissions payload, newest first. The SEC submissions document stores the recent filing index as parallel arra
agent/src/tools/sec_filings_tool.py:185
↓ 1 callersFunction_parse_float
Parse one CSV cell into a finite float, else ``None``. Covers blank cells, non-numeric text and the ``NaN``/``inf`` spellings ``float()`` acc
agent/src/tools/backtest_summary.py:204
↓ 1 callersFunction_parse_flow_row
Parse one comma-joined fflow row into a labelled net-inflow dict. Daily rows lead with a ``YYYY-MM-DD`` date; minute rows lead with a ``YYYY-
agent/src/tools/fund_flow_tool.py:66
↓ 1 callersFunction_parse_history
Extract the most recent ``lookback_days`` daily net-inflow rows. Args: payload: Decoded JSON from :data:`_HISTORY_URL`. lookback_
agent/src/tools/northbound_tool.py:129
↓ 1 callersFunction_parse_history_row
Parse one ``kamt.kline`` history row into a daily net-inflow dict. Column order follows :data:`_HISTORY_FIELDS2`: date, Shanghai net inflow,
agent/src/tools/northbound_tool.py:99
↓ 1 callersFunction_parse_hkex_report
Extract southbound nets from one HKEX daily-statistics JS payload. Args: text: Raw ``data_tab_daily_<date>e.js`` body (``tabData = [...]`
agent/src/tools/southbound_tool.py:174
↓ 1 callersFunction_parse_holding
Convert one holdings row into a position. Args: header: The export's column names, which key the row's fields. cells: The row's f
agent/src/portfolio/extraetf.py:526
↓ 1 callersFunction_parse_inbound_payload
Parse a client frame into text; return None for empty or unrecognized content.
agent/src/channels/websocket.py:164
↓ 1 callersMethod_parse_index_keywords
Parse .hierarchy.yaml to extract per-category keywords. Returns: Dict mapping category name to list of keywords. Empt
agent/src/memory/hierarchy.py:263
↓ 1 callersFunction_parse_information_table
Stream one information-table XML into position rows. Parsed incrementally and cleared as it goes: a large manager's table runs to tens of tho
agent/src/tools/institutional_holdings_tool.py:721
↓ 1 callersMethod_parse_items
Parse RSS 2.0 ``<item>`` nodes into normalised event rows. Uses ``defusedxml`` to neutralise XXE / entity-expansion attacks in the un
agent/backtest/loaders/rsshub_events.py:473
↓ 1 callersFunction_parse_kline_row
Parse one comma-joined push2his kline row into an OHLCV dict. Column order follows ``fields2``: date, open, close, high, low, volume, amount.
agent/backtest/loaders/eastmoney_client.py:252
↓ 1 callersFunction_parse_membership_row
Parse one ``slist`` diff row into a labelled board-membership dict. Args: row: One element of ``data.diff`` (a dict keyed by ``f12``/``f1
agent/src/tools/sector_tool.py:87
↓ 1 callersFunction_parse_movement
Convert one transactions row into a movement. Args: header: The export's column names, which key the row's fields. cells: The row
agent/src/portfolio/extraetf.py:601
↓ 1 callersFunction_parse_nport
Parse an N-PORT ``primary_doc.xml`` into fund metadata plus holdings. Args: xml_text: The raw filing document. Returns: ``{s
agent/src/tools/etf_holdings_tool.py:760
↓ 1 callersFunction_parse_nport_holding
Shape one ``invstOrSec`` element into a holding record. Absent fields are omitted rather than defaulted, so a missing identifier is visibly m
agent/src/tools/etf_holdings_tool.py:716
↓ 1 callersFunction_parse_observations
Extract dated observations from a FRED observations payload. Args: payload: Decoded FRED JSON; rows live under the ``observations`` array
agent/src/tools/fred_macro_tool.py:207
↓ 1 callersFunction_parse_options
Extract the first optionChain result, raising on a reported error.
agent/backtest/loaders/yahoo_client.py:409
↓ 1 callersFunction_parse_order
(raw: Any, path: str)
agent/src/tools/paper_trade/schema.py:349
↓ 1 callersFunction_parse_penalty_list
(html: str)
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:469
↓ 1 callersFunction_parse_position
(raw: Any, path: str)
agent/src/tools/paper_trade/schema.py:323
↓ 1 callersFunction_parse_pubdate
Parse an RFC-822 (RSS) or ISO ``pubDate`` into a Timestamp, or None.
agent/backtest/loaders/rsshub_events.py:511
↓ 1 callersFunction_parse_quarter
Normalize a quarter argument to the ``YYYY-MM-DD`` calendar quarter end. Accepts ``"2026Q1"``, ``"2026-q1"``, ``"2026-03-31"`` and ``"2026-3-31"`
agent/src/tools/institutional_holdings_tool.py:334
↓ 1 callersFunction_parse_quote_price
Extract a positive USD price from a broker quote-tool payload, fail-closed. Accepts the common envelope shapes a ``get_quotes`` read tool may ret
agent/src/live/order_guard.py:880
↓ 1 callersFunction_parse_quote_summary
Extract the first quoteSummary result, raising on a reported error.
agent/backtest/loaders/yahoo_client.py:347
↓ 1 callersFunction_parse_range
Both endpoints of a declared percent range, each as ``_parse_value`` reads it. Returns: Two ``(value, percent, canonical)`` triples, or n
agent/src/agent/grounding/figures.py:762
↓ 1 callersFunction_parse_ranking_row
Parse one ``clist`` diff row into a labelled board-ranking dict. Args: row: One element of ``data.diff`` (a dict keyed by ``f12``/``f14``
agent/src/tools/sector_tool.py:111
↓ 1 callersFunction_parse_realtime
Extract per-channel realtime net inflow from a kamt realtime payload. Args: payload: Decoded JSON from :data:`_REALTIME_URL`. Return
agent/src/tools/northbound_tool.py:67
↓ 1 callersFunction_parse_reports
Extract per-report records from an Eastmoney reportapi payload. Args: payload: Decoded reportapi JSON; rows live under the ``data`` array
agent/src/tools/research_reports_tool.py:237
↓ 1 callersFunction_parse_run_dir
Validate CLI input and return a usable run directory path.
agent/backtest/validation.py:480
↓ 1 callersMethod_parse_segments
( self, segments: list[dict[str, Any]] )
agent/src/channels/napcat.py:309
↓ 1 callersFunction_parse_series_index
Parse the SEC series/class CSV into ticker-bearing fund records. The header carries a UTF-8 BOM and the columns are ``Reporting File Number``
agent/src/tools/etf_holdings_tool.py:366
↓ 1 callersFunction_parse_swarm_run_args
Validate ``--swarm-run`` values before starting the swarm.
agent/cli/_legacy.py:110
↓ 1 callersFunction_parse_symbol
Validate + normalize a ``BASE-QUOTE`` symbol into ``(display, ccxt)`` forms. Args: raw: Caller-supplied symbol, e.g. ``"btc-usdt"``.
agent/src/tools/orderbook_depth_tool.py:155
↓ 1 callersFunction_parse_tencent_rows
Return raw bars from a Tencent fqkline reply, loader-faithful. Mirrors tencent_loader.py: ``qfqday or day`` key selection and the 6-field row
agent/tests/fixtures/paper_trade/record_market_fixtures.py:99
↓ 1 callersFunction_parse_token
Strip the leading ``/`` and isolate the command token. >>> _parse_token("/me arg") 'me' >>> _parse_token("/") '' >>> _parse_token
agent/cli/commands/slash_router.py:159
↓ 1 callersFunction_parse_tushare_date
Parse Tushare YYYYMMDD strings and common timestamp/date strings.
agent/backtest/loaders/tushare_fundamentals.py:262
↓ 1 callersFunction_parse_us_secid
Extract a US ``<market>.<code>`` secid from a search/suggest payload. Eastmoney's suggest endpoint returns candidates under ``QuotationCodeTa
agent/backtest/loaders/eastmoney_client.py:144
↓ 1 callersMethod_parse_weights
(raw: Any, symbols: list[str])
agent/src/tools/portfolio_risk_tool.py:152
↓ 1 callersFunction_parser
()
agent/evals/harness/runner.py:44
↓ 1 callersFunction_part
(value: dict[str, object])
agent/tests/test_openai_codex.py:50
↓ 1 callersFunction_passed_figures
The measured figures no issue flags, as written, in document order. The correction prompt needs them for its keep list. A spelling that fails
agent/src/agent/grounding/ledger.py:45
↓ 1 callersMethod_passes_statement_filter
Return statement-filter decision, or None when statement data is absent.
agent/src/skills/fundamental-filter/example_signal_engine.py:56
↓ 1 callersFunction_patch_bench_failed_note
Replace the W4-roadmap placeholder callout with a real timestamp note.
agent/scripts/w4a_patch_blog.py:199
↓ 1 callersFunction_patch_dead
(text: str, entry: dict[str, Any])
agent/scripts/w4a_patch_blog.py:189
↓ 1 callersFunction_patch_plain_runner
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_research_contract_integration.py:68
↓ 1 callersFunction_patch_sec
( monkeypatch: pytest.MonkeyPatch, facts_by_symbol: dict[str, dict[str, object]], )
agent/tests/test_fundamentals_shares_diluted_alias.py:27
↓ 1 callersFunction_patch_stats
(text: str, entry: dict[str, Any])
agent/scripts/w4a_patch_blog.py:59
↓ 1 callersFunction_patch_strict_runner
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_research_contract_integration.py:80
↓ 1 callersFunction_patch_theme_table
(text: str, entry: dict[str, Any])
agent/scripts/w4a_patch_blog.py:115
↓ 1 callersFunction_patch_top5
(text: str, entry: dict[str, Any])
agent/scripts/w4a_patch_blog.py:179
↓ 1 callersMethod_pause_session
(self, duration_s: int = SESSION_PAUSE_DURATION_S)
agent/src/channels/weixin.py:522
↓ 1 callersFunction_payload
(orders: list[dict[str, Any]] | None = None)
agent/tests/test_paper_trade_5m_payload.py:114
↓ 1 callersFunction_payload_choices
Read the four pt-v1.2 request enums from a raw payload, or ``None``. Absent/null is the default (D8). A present non-string or out-of-vocabulary
agent/src/tools/paper_trade/wire.py:106
↓ 1 callersFunction_payoff_at_spots
Calculate expiry P&L at arbitrary non-negative spots.
agent/backtest/options_payoff.py:184
↓ 1 callersFunction_pct_diff_for_json
Convert a relative diff to a JSON-safe percent (null when non-finite).
agent/src/tools/report_audit_tool.py:323
↓ 1 callersFunction_pearson_correlation
Compute Pearson correlation, degrading to 0.0 for degenerate input. Args: x_values: First series of values. y_values: Second seri
agent/src/api/runs_routes.py:398
↓ 1 callersFunction_pending_recovery_result
Recover an existing marker under the caller-held broker lock.
agent/src/live/sdk_order_gate.py:184
↓ 1 callersFunction_per_market_breakdown
Project one currency pool's combined metrics into its markets. Markets within a pool genuinely shared the capital pool, so they share its met
agent/src/shadow_account/backtester.py:528
↓ 1 callersFunction_persist_messages
Persist messages to disk for post-mortem analysis.
agent/src/swarm/worker.py:1503
↓ 1 callersMethod_persist_recovery
Write a reconciled SwarmRun back to disk and append a recovery event. Idempotent: when a recovery event of the same kind already exists,
agent/src/swarm/store.py:508
↓ 1 callersFunction_persist_state
Persist the new last-known state atomically (temp + ``os.replace``). A same-directory temp file is written then atomically renamed over the t
agent/src/live/runtime/reconcile.py:570
↓ 1 callersFunction_persist_timeout_output
Persist partial subprocess output after a timeout. ``subprocess.run`` exposes captured output on ``TimeoutExpired`` when pipes are used. Pre
agent/src/tools/backtest_tool.py:47
↓ 1 callersFunction_pick_dominant_market
Return the most-traded market; empty when df is empty.
agent/src/tools/trade_journal_tool.py:780
↓ 1 callersMethod_pick_python_interpreter
Pick the first usable interpreter for backtest execution. Returns: Interpreter command path.
agent/src/core/runner.py:501
↓ 1 callersFunction_pick_sec_unit
Pick the SEC XBRL unit bucket with the most reported rows.
agent/src/tools/financial_statements_tool.py:471
↓ 1 callersFunction_pick_unit
Choose the unit bucket with the most reported rows. Args: units: The ``units`` mapping of a us-gaap concept. Returns: ``(uni
agent/src/tools/sec_filings_tool.py:323
← previousnext →6,801–6,900 of 26,887, ranked by callers