Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
↓ 1 callers
Function
_normalize_number
Canonicalise one number for hashing. Fixed 12-significant-digit scientific notation, independent of magnitude, so ``int`` and ``float`` input
agent/src/quantlib/valuation/artifact.py:371
↓ 1 callers
Function
_normalize_observation
Map one raw FRED observation row to our record, or ``None`` if unusable. A row with no date carries no anchor and is dropped; a single bad row ne
agent/src/tools/fred_macro_tool.py:234
↓ 1 callers
Function
_normalize_point
Map one XBRL fact row to our metric point, or ``None`` if unusable. A row without both a value and an end date carries no signal and is dropped.
agent/src/tools/sec_filings_tool.py:340
↓ 1 callers
Function
_normalize_reason
(text: str)
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:123
↓ 1 callers
Function
_normalize_record
Project one raw report row onto our stable, English-keyed shape. Args: raw: One ``result.data`` element from the datacenter response.
agent/src/tools/block_trades_tool.py:130
↓ 1 callers
Method
_normalize_ref_record
Normalize a stored ref record from legacy/current schema.
agent/src/channels/msteams.py:600
↓ 1 callers
Function
_normalize_remote_result
Map connector-specific MCP envelopes into shared read payloads.
agent/src/trading/service.py:1702
↓ 1 callers
Function
_normalize_report
Map one raw reportapi row to our report record, or ``None`` if unusable. A row carrying neither a title nor a publish date holds no signal and is
agent/src/tools/research_reports_tool.py:261
↓ 1 callers
Function
_normalize_row
Map one raw datacenter row to our period record, or ``None`` if unusable. A row missing both an end date and a holder count carries no signal and
agent/src/tools/shareholder_count_tool.py:215
↓ 1 callers
Function
_normalize_row
Project one datacenter row onto our headline-balance schema. Args: raw: One element of the report's ``result.data`` list. Returns:
agent/src/tools/margin_trading_tool.py:103
↓ 1 callers
Function
_normalize_schema_node
Recursively normalize nullable JSON Schema fragments. Args: value: Schema fragment. Returns: Normalized schema fragment.
agent/src/tools/mcp.py:1020
↓ 1 callers
Method
_normalize_segments
(message: Any)
agent/src/channels/napcat.py:299
↓ 1 callers
Function
_normalize_status
Normalize a status to a bare lower-case member name for comparison.
agent/src/trading/connectors/longbridge/sdk.py:377
↓ 1 callers
Method
_normalize_stock_ids
Validate and de-duplicate the requested Taiwan stock IDs. Args: stock_ids: Raw request value, expected to be a list of four-digit
agent/src/tools/taiwan_stock_data_tool.py:431
↓ 1 callers
Function
_normalize_subject
从标题/原因/内容文本推断处罚主体。 返回值: - "shareholder" 控股股东 / 实控人 / 5% 以上大股东 - "officer" 董事 / 监事 / 高管(董秘、财务总监等) - "company" 默认;当文本无任何上述关键
agent/src/skills/ashare-pre-st-filter/scripts/fetch_sina_penalties.py:145
↓ 1 callers
Method
_normalize_teams_reply_quote
Normalize Teams quoted replies into a compact structured form.
agent/src/channels/msteams.py:441
↓ 1 callers
Method
_normalize_telegram_command
Map Telegram-safe command aliases back to canonical vibe-trading commands.
agent/src/channels/telegram.py:517
↓ 1 callers
Function
_normalize_tool_traces
(tool_traces: Sequence[Mapping[str, Any]] | None)
agent/backtest/run_card.py:412
↓ 1 callers
Method
_normalize_upload_payload
( self, filename: str, data: bytes, content_type: str | None, )
agent/src/channels/dingtalk.py:333
↓ 1 callers
Function
_normalized_requirement_name
(requirement: str)
agent/tests/test_local_connections_hardening.py:48
↓ 1 callers
Function
_not_ready_envelope_text
()
agent/tests/test_paper_trade_determinism.py:327
↓ 1 callers
Method
_note_model_write
Remember a file the model wrote, so it never passes for engine output.
agent/src/agent/grounding/evidence.py:1077
↓ 1 callers
Method
_note_sweep_recheck
Return whether this sweep re-check outcome is new for the episode. The no-side-effect branch of :meth:`_run_preemptive_sweep` re-runs on
agent/src/live/runtime/runner.py:599
↓ 1 callers
Function
_notional
(fill: dict[str, Any])
agent/tests/test_paper_trade_5m_golden.py:89
↓ 1 callers
Function
_now
()
agent/src/providers/custom_profiles.py:115
↓ 1 callers
Function
_now
()
agent/src/portfolio/normalization.py:52
↓ 1 callers
Function
_now_ms
Return current wall-clock time in epoch milliseconds.
agent/src/scheduling/system_jobs.py:158
↓ 1 callers
Function
_now_ms
Return current wall-clock time in epoch milliseconds.
agent/src/scheduling/kernel.py:65
↓ 1 callers
Function
_nport_document_url
Build the ``primary_doc.xml`` URL for one N-PORT accession. Args: cik: The registrant CIK, padded or not; leading zeros are dropped.
agent/src/tools/etf_holdings_tool.py:651
↓ 1 callers
Function
_npv
Net present value of dated amounts at an annual rate. Args: rate: Annual discount rate, strictly above -100%. years: Time from th
agent/src/quantlib/performance.py:714
↓ 1 callers
Function
_npv_derivative
First derivative of :func:`_npv` with respect to the rate. Args: rate: Annual rate as a decimal, strictly greater than ``-1``. ti
agent/src/quantlib/fundmath.py:286
↓ 1 callers
Function
_ns_bench
(**overrides)
agent/tests/test_alpha_cli_dotenv.py:46
↓ 1 callers
Function
_ns_compare
(**overrides)
agent/tests/test_alpha_cli_dotenv.py:62
↓ 1 callers
Function
_nse_bars
()
agent/tests/test_india_backtest_smoke.py:25
↓ 1 callers
Function
_num
Coerce one Eastmoney numeric cell to ``float``. Eastmoney sends ``"-"`` (or sometimes ``-`` as an int sentinel) for cells with no value (e.g.
agent/src/tools/market_screener_tool.py:71
↓ 1 callers
Function
_number
(value: Decimal)
agent/src/tools/gildata_fin_query_tool.py:30
↓ 1 callers
Function
_numeric
(value: Any)
agent/src/tools/gildata_fin_query_tool.py:20
↓ 1 callers
Function
_numeric
(panel: pd.DataFrame, name: str)
agent/src/quantlib/combination.py:82
↓ 1 callers
Function
_numeric_type
Return ``int``/``float`` for that type or an ``Optional`` of it, else ``None``. Handles both ``typing.Optional[int]`` and the ``int | None`` spel
agent/src/config/env_schema.py:77
↓ 1 callers
Function
_numpy_group_zscore
Independent per-row within-group z-score: (x - mean) / sample-std.
agent/tests/factors/test_fundamental_ind_neutral_samples.py:65
↓ 1 callers
Method
_numpy_to_base64
Convert numpy array to base64 JPEG (10x smaller than PNG for OCR).
agent/src/tools/ocr/llm_vision_ocr.py:285
↓ 1 callers
Function
_numpy_zscore
Independent per-row z-score: (x - mean) / sample-std, NaN-preserving.
agent/tests/factors/test_fundamental_valuation_samples.py:68
↓ 1 callers
Function
_numpy_zscore
Independent per-row z-score: (x - mean) / sample-std, NaN-preserving.
agent/tests/factors/test_fundamental_expansion_samples.py:83
↓ 1 callers
Function
_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/trading212/sdk.py:519
↓ 1 callers
Function
_observation_float
(values: Mapping[str, Any], field: str)
agent/backtest/binance_account_reconciliation.py:213
↓ 1 callers
Function
_observed_spacing
Median spacing of the served price bars in seconds, or None when unmeasurable. The median, not the span: a session index is mostly regular wi
agent/backtest/runner.py:1612
↓ 1 callers
Function
_offenders
Return ``path:line`` for every pct_change call with no fill policy.
agent/tests/test_skill_pct_change_guard.py:35
↓ 1 callers
Function
_ok
(payload: dict[str, Any])
agent/src/tools/sdm_decay_scan_tool.py:24
↓ 1 callers
Function
_ok
(payload: dict[str, Any])
agent/src/tools/sdm_register_tool.py:20
↓ 1 callers
Function
_ok
A TAP forward result for an auto-approved read (GET) — 200 + JSON body.
agent/tests/test_alpaca_tap_routing.py:28
↓ 1 callers
Function
_ok_envelope
()
agent/tests/test_alpha_compare_tool.py:61
↓ 1 callers
Function
_okx_proxy_config
Build requests proxies from conventional env vars (parity with CCXT).
agent/backtest/loaders/okx.py:80
↓ 1 callers
Function
_okx_spot_rows
(account_payload: dict[str, Any], existing_rows: list[object])
agent/src/portfolio/compatibility.py:263
↓ 1 callers
Method
_on_block_action
Handle button clicks from inline action buttons.
agent/src/channels/slack.py:535
↓ 1 callers
Method
_on_media_message
(self, room: MatrixRoom, event: MatrixMediaEvent)
agent/src/channels/matrix.py:1004
↓ 1 callers
Method
_on_message
Handle incoming message (called by VibeTradingDingTalkHandler). Delegates to BaseChannel._handle_message() which enforces allow_from
agent/src/channels/dingtalk.py:703
↓ 1 callers
Method
_on_message
(self, ev: dict[str, Any])
agent/src/channels/napcat.py:233
↓ 1 callers
Method
_on_notice
(self, ev: dict[str, Any])
agent/src/channels/napcat.py:384
↓ 1 callers
Method
_on_passthrough_allocation
Observe a post-warmup allocation retained without optimization. Args: allocation: Signed output allocation for the current decisi
agent/backtest/optimizers/base.py:110
↓ 1 callers
Method
_on_reaction_added
Callback: store reaction_id after background add-reaction completes.
agent/src/channels/feishu.py:1089
↓ 1 callers
Method
_on_socket_request
Handle incoming Socket Mode requests.
agent/src/channels/slack.py:335
↓ 1 callers
Function
_open_epoch
Epoch seconds at 14:30 UTC (US market open) on *date_str*. Mirrors how Yahoo actually stamps daily bars: at the session open, not at midnight
agent/tests/test_yahoo_loader.py:31
↓ 1 callers
Function
_openai_compat_completion_body
(model: str)
agent/tests/test_llm.py:481
↓ 1 callers
Function
_openai_compat_sse
(text: str, model: str)
agent/tests/test_llm.py:498
↓ 1 callers
Function
_openai_custom_header_names
Return header names parsed by the OpenAI SDK environment format.
agent/src/providers/llm.py:258
↓ 1 callers
Function
_openai_label_points_at_openai
Report whether the OpenAI capability is actually talking to OpenAI. An unknown ``LANGCHAIN_PROVIDER`` falls back to the OpenAI capabilities, and
agent/src/providers/llm.py:1421
↓ 1 callers
Function
_openalex_abstract
Re-linearize an OpenAlex inverted-index abstract. Args: inverted: ``{word: [token positions]}``, or ``None`` when the record
agent/src/tools/research_papers_tool.py:1248
↓ 1 callers
Function
_openalex_fetch
Fetch a group of works in one request, falling back to one request each. Args: filter_key: ``"openalex_id"`` or ``"doi"``. keys:
agent/src/tools/research_papers_tool.py:1367
↓ 1 callers
Function
_openalex_search
Run an OpenAlex works search. Args: query: Free text; OpenAlex full-text search. start_date: Inclusive ``YYYY-MM-DD`` publication
agent/src/tools/research_papers_tool.py:1315
↓ 1 callers
Method
_opencode_session_headers
Return the ``x-opencode-session`` header for opencode.ai relays. OpenCode Go rejects requests without a stable per-conversation id
agent/src/providers/llm.py:332
↓ 1 callers
Method
_operands_read_as_points
Whether every data operand anchored only to percent-named fields. A field named ``changepercent`` already carries percentage points, so
agent/src/agent/grounding/policies.py:2095
↓ 1 callers
Function
_opt_float
Coerce an optional numeric field to ``float | None``.
agent/src/live/mandate/store.py:130
↓ 1 callers
Function
_options_request
Issue one crumb-gated v7 options GET, retrying once on a 401.
agent/backtest/loaders/yahoo_client.py:386
↓ 1 callers
Function
_order_functions
Return the order entry points defined in a connector's ``sdk.py``.
agent/tests/test_paper_capped_connectors_refuse_live.py:73
↓ 1 callers
Function
_order_grid
Smallest buy order and its step, in shares, on the symbol's board. Args: symbol: Stock code (e.g. 600000.SH, 688001.SH, 830799.BJ).
agent/backtest/engines/china_a.py:183
↓ 1 callers
Function
_order_identity
Return the broker-side identity used to correlate an order across sides. Prefers the broker order id; falls back to the client-order-id so a
agent/src/live/runtime/reconcile.py:220
↓ 1 callers
Function
_order_instrument_ref
Build exactly one of ``symbol`` or ``instrumentId`` for open-order bodies.
agent/src/trading/connectors/etoro/trading.py:285
↓ 1 callers
Function
_order_status_to_dict
(status: Any)
agent/src/trading/connectors/ibkr/local.py:759
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/dhan/sdk.py:629
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/shoonya/sdk.py:669
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/upbit/sdk.py:666
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/tiger/sdk.py:683
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/longbridge/sdk.py:889
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/toss/sdk.py:657
↓ 1 callers
Function
_order_to_dict
(row: Mapping[str, Any])
agent/src/trading/connectors/futu/sdk.py:1298
↓ 1 callers
Function
_order_to_dict
(item: Any)
agent/src/trading/connectors/okx/sdk.py:724
↓ 1 callers
Function
_ordered_union
Union of labels in first-seen order (input order is preserved).
agent/src/quantlib/combination.py:97
↓ 1 callers
Function
_origin_allowed
Return whether a request ``Origin`` header is trusted. A missing/blank Origin is allowed: non-browser MCP clients (curl, the Python SDK) neve
agent/mcp_server.py:240
↓ 1 callers
Function
_origin_matches_request_host
Return whether *origin* is the same site serving this request.
agent/src/api/security.py:400
↓ 1 callers
Function
_origin_target
(session_id: str | None)
agent/src/scheduled_research/service.py:118
↓ 1 callers
Method
_other_call_field_ref_candidates
Same-field refs from other calls of the tool whose value matches ``figure``. A ``call_id::field`` ref that does not hold the figure may still
agent/src/agent/grounding/policies.py:1291
↓ 1 callers
Function
_outcome
(status: str, **detail: str)
agent/src/tools/backtest_tool.py:139
↓ 1 callers
Function
_override_switches_transport
Return whether a partial override changes the server transport family.
agent/src/config/loader.py:292
↓ 1 callers
Function
_overtrading
Detect overtrading: high-activity days produce worse PnL. Buckets trading days into top-quartile (busy) and bottom-quartile (quiet) by trade
agent/src/tools/trade_journal_tool.py:433
↓ 1 callers
Function
_owner_token
Stable layout-only token for an owner id. A hash rather than the raw id: the owner carries a session identifier that is not a secret but is n
agent/src/tools/background_store.py:88
↓ 1 callers
Function
_package_version
Return an installed package version or a stable missing label.
agent/src/providers/llm.py:869
↓ 1 callers
Function
_package_version
Return the installed distribution version for User-Agent headers. Returns: Installed ``vibe-trading-ai`` version string, or ``"dev"`` whe
agent/src/providers/capabilities.py:71
↓ 1 callers
Function
_page_limit
OHLCV page size to request: 1000, or less when the exchange caps lower. Pagination stops on a page shorter than the request, so asking OKX (300)
agent/backtest/loaders/ccxt_loader.py:51
↓ 1 callers
Function
_paged
Serialize ``base`` plus the page of ``body`` at ``offset``. The cap applies to the serialized envelope and JSON escaping is content-dependent
agent/src/tools/load_skill_tool.py:106
↓ 1 callers
Function
_pair_or_scalar_bound
Map one ``(op, value)`` pair or bare scalar to a single bound slot. A bare scalar means ``>=``, which is how the scanner reads one. Args:
agent/src/shadow_account/codegen.py:99
← previous
next →
6,701–6,800 of 26,887, ranked by callers