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
↓ 2 callers
Function
_make_channel
()
agent/tests/test_dingtalk_message_flow.py:21
↓ 2 callers
Function
_make_channel
()
agent/tests/test_feishu_tool_hint_stream_key.py:13
↓ 2 callers
Function
_make_contract
(symbol: str, *, exchange: str, currency: str, sec_type: str)
agent/src/trading/connectors/ibkr/local.py:640
↓ 2 callers
Method
_make_daily_df
(self)
agent/tests/test_tushare_loader.py:348
↓ 2 callers
Function
_make_data_map_with_fund
Create synthetic data_map with OHLCV + optional fund:* columns.
agent/tests/test_signal_alignment_perf.py:618
↓ 2 callers
Function
_make_entry_file
Write a dummy memory file for archival tests.
agent/tests/memory/test_compression.py:29
↓ 2 callers
Function
_make_fake_anthropic_base
A minimal ChatAnthropic stand-in mimicking payload + generate wiring.
agent/tests/test_llm.py:387
↓ 2 callers
Method
_make_loader
(self)
agent/tests/test_tushare_loader.py:343
↓ 2 callers
Function
_make_panel
(n_symbols: int = 6, n_days: int = 60)
agent/tests/test_alpha_bench_horizon.py:30
↓ 2 callers
Function
_make_progress_cb
Return an on_progress closure that updates the job entry in-place.
agent/src/api/alpha_routes.py:233
↓ 2 callers
Function
_make_run
(tmp_path: Path)
agent/tests/api/test_run_detail_offload.py:21
↓ 2 callers
Function
_make_store
(tmp_path)
agent/tests/test_strategy_discovery_harness.py:786
↓ 2 callers
Function
_make_task
Build a minimal SwarmTask bound to ``test_agent``.
agent/tests/test_swarm_m1_config_plumbing.py:45
↓ 2 callers
Function
_manager_for_root
(root: Path)
agent/src/tools/background_tools.py:546
↓ 2 callers
Function
_mandate
(asset_classes: tuple[AssetClass, ...])
agent/tests/test_india_mandate.py:29
↓ 2 callers
Function
_manifest
()
agent/tests/test_paper_trade_determinism.py:201
↓ 2 callers
Function
_mapping_rows
(value: Any, name: str)
agent/src/trading/connectors/binance/usdm.py:284
↓ 2 callers
Method
_markdown_to_post
Convert markdown content to Feishu post message JSON. Handles links ``[text](url)`` as ``a`` tags; everything else as ``text`` tags.
agent/src/channels/feishu.py:1328
↓ 2 callers
Function
_markdown_to_telegram_html
Convert markdown to Telegram-safe HTML.
agent/src/channels/telegram.py:228
↓ 2 callers
Function
_market_client
(cfg: OKXConfig)
agent/src/trading/connectors/okx/sdk.py:613
↓ 2 callers
Function
_mask
(mask: pd.DataFrame | None, reference: pd.DataFrame)
agent/src/quantlib/neutralization.py:62
↓ 2 callers
Method
_match_authorized_symbol
Map a consumer argument to one unique locked canonical symbol. Both sides are canonicalized first, so a provider alias (``600519.SS``),
agent/src/agent/grounding/identity.py:593
↓ 2 callers
Function
_match_priority
(item: dict[str, Any], lookup: str, canonical: str, original: str)
agent/src/trading/connectors/etoro/instruments.py:520
↓ 2 callers
Function
_matrix
(header: tuple[str, ...], rows: tuple[str, ...])
agent/tests/test_grounding_blank_corner_matrix.py:11
↓ 2 callers
Function
_max_as_of
(frames: Mapping[str, pd.DataFrame])
agent/src/tools/paper_trade/data.py:169
↓ 2 callers
Function
_max_wait_seconds
()
agent/src/tools/swarm_tool.py:29
↓ 2 callers
Function
_max_xml_bytes
Return the per-document byte ceiling for an information table.
agent/src/tools/institutional_holdings_tool.py:307
↓ 2 callers
Function
_measured
(text: str)
agent/tests/test_grounding_figures_contract.py:389
↓ 2 callers
Function
_measured_values
(text: str)
agent/tests/test_grounding_shape_hardening.py:692
↓ 2 callers
Method
_mention_id_candidates
Extract possible identifier fields from a mention payload.
agent/src/channels/signal.py:1159
↓ 2 callers
Method
_mention_span
Extract a safe (start, length) span from a mention, in Python (code-point) indices. ``start``/``length`` on the mention payload are U
agent/src/channels/signal.py:1180
↓ 2 callers
Function
_merge_dicts
Recursively merge two plain dictionaries. Args: base: Base dictionary. override: Override dictionary applied on top of ``base``.
agent/src/config/loader.py:327
↓ 2 callers
Function
_merge_token_source
Merge two usage-provenance labels conservatively. ``None`` (unlabeled) never overwrites a real label, and a single ``"estimated"`` contributi
agent/src/swarm/runtime.py:175
↓ 2 callers
Function
_merton_d1_d2
Black-Scholes ``d1``/``d2`` for equity written on the firm's assets. Args: asset_value: Market value of assets. asset_vol: Annual
agent/src/quantlib/credit.py:255
↓ 2 callers
Method
_message_text
Extract plain text from an OpenBB message of any supported shape. Args: message: An ``LlmClientMessage``-like object or mapping.
agent/src/openbb_bridge/adapter.py:299
↓ 2 callers
Function
_message_value
(message: Any, key: str, default: Any = None)
agent/src/providers/claude_cli.py:142
↓ 2 callers
Function
_metal_base
Return the metal code ('XAU', ...) if this is a metal pair, else None.
agent/backtest/engines/forex.py:61
↓ 2 callers
Function
_metal_or_fx_legs
Return the ``(base, quote)`` legs of a spot metal / FX pair query. Recognizes every spelling the tool has to reconcile — ``XAUUSD``, ``XAU/US
agent/src/tools/symbol_search_tool.py:99
↓ 2 callers
Method
_migrate_artifact_columns
Add optional ``artifacts`` columns if missing. Idempotent: checks ``PRAGMA table_info`` before each ``ALTER TABLE ADD COLUMN``.
agent/src/strategy_store/sqlite_store.py:258
↓ 2 callers
Function
_min_interval
Resolve the effective per-request spacing, never below the 0.12s floor.
agent/backtest/loaders/sec_edgar_client.py:66
↓ 2 callers
Function
_min_interval
Resolve the per-call minimum spacing, honoring the env override.
agent/backtest/loaders/tickerall_loader.py:126
↓ 2 callers
Function
_missing_fields
(config: Trading212Config)
agent/src/trading/connectors/trading212/sdk.py:454
↓ 2 callers
Function
_missing_fields
(cfg: ShoonyaConfig)
agent/src/trading/connectors/shoonya/sdk.py:617
↓ 2 callers
Function
_missing_fields
(cfg: UpbitConfig)
agent/src/trading/connectors/upbit/sdk.py:628
↓ 2 callers
Function
_missing_fields
(cfg: EtoroConfig)
agent/src/trading/connectors/etoro/client.py:180
↓ 2 callers
Function
_missing_fields
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:756
↓ 2 callers
Function
_missing_fields
(cfg: TossConfig, *, account_scoped: bool = True)
agent/src/trading/connectors/toss/sdk.py:557
↓ 2 callers
Function
_missing_fields
(cfg: KISConfig)
agent/src/trading/connectors/kis/sdk.py:897
↓ 2 callers
Function
_missing_fields
Fields the connector cannot operate without (login pin is mandatory).
agent/src/trading/connectors/mt5/_client.py:196
↓ 2 callers
Function
_money
(value: Any)
agent/tests/test_paper_trade_5m_golden.py:85
↓ 2 callers
Function
_month_last_day_anchor
Return the last calendar day of the month containing ``start_of_month``.
agent/src/strategy_discovery/models.py:220
↓ 2 callers
Function
_namespace
()
agent/tests/test_ml_strategy_skill.py:50
↓ 2 callers
Function
_nan_fundamental_frame
Build an all-NaN fundamental panel frame.
agent/backtest/runner.py:1089
↓ 2 callers
Method
_nearest_prints
The observed values a rejected figure is pointed at (#1433). A non-percent figure is pointed at its own table column, else at the clo
agent/src/agent/grounding/policies.py:1499
↓ 2 callers
Function
_negative_close_frame
()
agent/tests/test_nonpositive_prices.py:30
↓ 2 callers
Function
_nested
Read ``obj[key][subkey]``, e.g. an order's ``execution.filledQuantity``.
agent/src/trading/connectors/toss/sdk.py:636
↓ 2 callers
Method
_new_client
(self)
agent/src/channels/whatsapp.py:310
↓ 2 callers
Function
_next_run
Parse a wall-clock "HH:MM" into cron ``(minute, hour)`` fields. Repurposed from the retired daemon's next-slot math (scheduler unification):
agent/src/br_data/sync.py:61
↓ 2 callers
Function
_no_proxy
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_provider_endpoint_guard.py:21
↓ 2 callers
Function
_normalize
(value: object)
agent/src/trading/connectors/longbridge/credentials.py:159
↓ 2 callers
Method
_normalize_address
Normalize an address or mailbox-like identifier for comparisons.
agent/src/channels/email.py:735
↓ 2 callers
Function
_normalize_candles
(payload: Any)
agent/src/trading/connectors/etoro/sdk.py:508
↓ 2 callers
Function
_normalize_event
Shape one gamma event object into the tool's event record. Args: raw: A gamma event object. with_markets: Whether to expand the n
agent/src/tools/prediction_market_tool.py:590
↓ 2 callers
Function
_normalize_host
Normalize a Host header value (or allow-list entry) for comparison. Strips the port and any IPv6 brackets, then lowercases: ``[::1]:8900`` be
agent/mcp_server.py:177
↓ 2 callers
Method
_normalize_html_whitespace
Normalize common HTML whitespace/entities from Teams into plain text spacing.
agent/src/channels/msteams.py:435
↓ 2 callers
Function
_normalize_interval
Map project interval tokens onto ``_BARS_PER_DAY`` keys. Minute bars stay lowercase (``1m``); hour/day use the uppercase keys the table alrea
agent/backtest/metrics.py:167
↓ 2 callers
Function
_normalize_leverage
Return leverage as a comparable float, or ``None`` when it is not one. Args: value: Raw leverage from a profile, ceiling snapshot or adju
agent/src/live/mandate/commit.py:68
↓ 2 callers
Function
_normalize_limits
Project ``source`` onto canonical limit names for ceiling comparison. Only the keys that name a clamped limit (those in :data:`_CEILING_ALIASES`)
agent/src/live/mandate/commit.py:112
↓ 2 callers
Function
_normalize_market
Shape one gamma market object into the tool's market record. Args: raw: A gamma market object as returned under ``events[].markets`` or b
agent/src/tools/prediction_market_tool.py:534
↓ 2 callers
Function
_normalize_metadata_row
(item: dict[str, Any])
agent/src/trading/connectors/etoro/instruments.py:555
↓ 2 callers
Function
_normalize_notional
Stamp a single authoritative ``notional_usd`` (quantity → priced). Currency note: the connector quote is the broker's native currency (HKD for
agent/src/live/sdk_order_gate.py:898
↓ 2 callers
Function
_normalize_nullable_blanks
Map blank form values back to None for nullable config defaults. The generic web form renders text-like None values as an empty string. Witho
agent/src/api/channels_config_routes.py:202
↓ 2 callers
Function
_normalize_price_rows
Normalize stored price rows for charting. Args: rows: Raw rows loaded from CSV or generated data frames. Returns: Normalized
agent/src/ui_services.py:577
↓ 2 callers
Function
_normalize_ref
Upper-case and normalize the .SS variant onto .SH for ref matching.
agent/backtest/loaders/gildata_codes.py:51
↓ 2 callers
Function
_normalize_responses_stream_event
Adapt raw mapping events to the attribute shape LangChain expects. Native OpenAI SDK streams yield typed response event objects. Some OpenAI-
agent/src/providers/llm.py:121
↓ 2 callers
Function
_normalize_table
Give each observation one numeric path, using explicit vendor units only.
agent/src/tools/gildata_fin_query_tool.py:34
↓ 2 callers
Function
_normalize_title
Fold a heading to a comparable key (case, markers, spacing).
agent/src/agent/skills.py:282
↓ 2 callers
Method
_note_truncation
Append the truncation marker unless the last line already carries it.
agent/src/openbb_bridge/context_injector.py:209
↓ 2 callers
Function
_now
()
agent/src/portfolio/service.py:161
↓ 2 callers
Function
_now
()
agent/src/trading/connections.py:92
↓ 2 callers
Method
_now
(self, market)
agent/src/tools/paper_trade/accounts.py:71
↓ 2 callers
Function
_now_iso
()
agent/src/api/alpha_routes.py:124
↓ 2 callers
Function
_now_ms
Current wall-clock time in epoch milliseconds, UTC. Returns: Epoch milliseconds for the current instant.
agent/src/live/runtime/triggers.py:359
↓ 2 callers
Function
_num
(field: str)
agent/src/br_data/cotahist.py:50
↓ 2 callers
Function
_number
(value: Decimal)
agent/src/portfolio/normalization.py:48
↓ 2 callers
Function
_numeric
(panel: pd.DataFrame, name: str)
agent/src/quantlib/neutralization.py:48
↓ 2 callers
Function
_oauth_profile
()
agent/tests/test_portfolio_service.py:835
↓ 2 callers
Function
_oauth_token_present
Return whether an OAuth token cache exists for a broker (C2 auth state).
agent/src/api/live_routes.py:493
↓ 2 callers
Function
_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/toss/sdk.py:620
↓ 2 callers
Method
_observed_range_summary
Summarise the observed OHLC range per symbol, or None without prices. Args: is_zh: Whether to join the facts with Chinese punctua
agent/src/agent/grounding/release.py:431
↓ 2 callers
Function
_ocr_available
()
agent/src/tools/doc_reader_tool.py:62
↓ 2 callers
Function
_ocr_image_array
Run OCR on a numpy image via the pluggable engine.
agent/src/tools/doc_reader_tool.py:66
↓ 2 callers
Function
_ok_payload
Three ascending observations with one FRED missing-value gap (".").
agent/tests/test_fred_macro_tool.py:19
↓ 2 callers
Function
_okx_session
()
agent/backtest/loaders/okx.py:93
↓ 2 callers
Method
_on_message
Handle incoming message from Feishu.
agent/src/channels/feishu.py:2261
↓ 2 callers
Method
_on_plan_rejected
(self, symbol, reason, timestamp)
agent/tests/test_plan_rejected.py:305
↓ 2 callers
Function
_open_call
(strike: float)
agent/tests/test_options_smile_consistency.py:51
↓ 2 callers
Method
_open_dm_for_user
(self, user_id: str)
agent/src/channels/slack.py:312
↓ 2 callers
Function
_openalex_get
Call OpenAlex and decode the JSON body. Args: path: Path appended to the works endpoint (``""`` or ``"/W123"``). params: Query pa
agent/src/tools/research_papers_tool.py:1213
↓ 2 callers
Function
_openalex_paper
Normalize one OpenAlex work into the same paper record shape as arXiv. OpenAlex has no preprint version counter — nothing in the record maps to
agent/src/tools/research_papers_tool.py:1269
← previous
next →
4,101–4,200 of 26,887, ranked by callers