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
_to_float
Convert a raw cell to ``float``, returning ``None`` on missing/garbage.
agent/src/tools/margin_trading_tool.py:93
↓ 1 callers
Function
_to_float
Best-effort numeric parsing for rule thresholds.
agent/src/shadow_account/scanner.py:286
↓ 1 callers
Function
_to_float
(value: Any)
agent/tests/fixtures/paper_trade/record_market_fixtures.py:158
↓ 1 callers
Function
_to_json_dict
(value: object)
agent/src/goal/store.py:84
↓ 1 callers
Function
_to_longport_period
Map a project interval string to a LongPort ``Period`` enum value. Lazy-imports the SDK so this module can be imported without it installed.
agent/backtest/loaders/longbridge.py:112
↓ 1 callers
Function
_to_longport_symbol
Convert a project symbol to LongPort format. LongPort accepts ``AAPL.US``, ``700.HK``, ``000001.SZ``, ``600519.SH``. Bare codes without a ``.
agent/backtest/loaders/longbridge.py:90
↓ 1 callers
Method
_to_mrkdwn
Convert Markdown to Slack mrkdwn, including tables.
agent/src/channels/slack.py:729
↓ 1 callers
Function
_to_number
Coerce a fact value to ``float``, or ``None`` when absent/non-numeric.
agent/src/tools/sec_filings_tool.py:388
↓ 1 callers
Function
_to_number
Coerce a datacenter cell to ``float``, or ``None`` when absent/non-numeric.
agent/src/tools/shareholder_count_tool.py:289
↓ 1 callers
Function
_to_number
Coerce a FRED value cell to ``float``, or ``None`` for gaps / non-numerics. FRED encodes a missing reading as the string ``"."``; that and any ot
agent/src/tools/fred_macro_tool.py:270
↓ 1 callers
Function
_to_number
Coerce a numeric provider cell to float, preserving missing values.
agent/src/tools/financial_statements_tool.py:461
↓ 1 callers
Function
_to_plain_number
Reduce a grouped decimal string to a form ``float`` accepts. Args: text: Numeric text with symbols already removed, e.g. ``"1,234.50"``.
agent/src/entities/ingest.py:168
↓ 1 callers
Method
_to_positions
Convert continuous composite scores to ``{-1, 0, +1}`` positions. Args: composite: Per-date composite score panel. Retur
agent/src/skills/multi-factor/zoo_signal_engine.py:219
↓ 1 callers
Function
_to_ttm_flow_series
(df: pd.DataFrame)
agent/backtest/loaders/fundamentals_loader.py:310
↓ 1 callers
Function
_to_wire_config_value
Convert internal snake_case seed keys to external config aliases.
agent/src/config/schema.py:299
↓ 1 callers
Function
_to_yfinance_exclusive_end
Convert the project-inclusive end date to yfinance's exclusive end.
agent/backtest/loaders/yfinance_loader.py:97
↓ 1 callers
Function
_today
()
agent/src/br_data/sync.py:27
↓ 1 callers
Function
_token
Return the configured Gildata token, stripped (``""`` if unset).
agent/backtest/loaders/gildata_loader.py:100
↓ 1 callers
Function
_token_cache_path
(cfg: TossConfig)
agent/src/trading/connectors/toss/sdk.py:445
↓ 1 callers
Function
_tokenize
(text: str)
agent/src/hypotheses/registry.py:59
↓ 1 callers
Function
_tool
(operation: str)
agent/src/api/live_routes.py:706
↓ 1 callers
Method
_tool_call_thought_signature_maps
Return Gemini thought signatures captured by ``ChatOpenAIWithReasoning``.
agent/src/providers/chat.py:638
↓ 1 callers
Function
_tool_hint_to_telegram_blockquote
Render tool hints as an expandable blockquote (collapsed by default).
agent/src/channels/telegram.py:140
↓ 1 callers
Function
_tool_is_enabled
Check whether a remote tool passes the config allowlist. Args: tool_name: Remote tool name. enabled_tools: Configured allowlist.
agent/src/tools/mcp.py:1005
↓ 1 callers
Function
_tool_names
Extract tool names from an OpenAI-format tool-definitions list.
agent/tests/test_swarm_m4_e2e.py:608
↓ 1 callers
Function
_tool_params
Project the validated request onto the tool's execute() kwargs. Optional fields left at ``None`` are omitted so the tool applies its own defa
agent/src/api/options_routes.py:112
↓ 1 callers
Function
_tool_payload_hash
(value: Mapping[str, Any])
agent/backtest/run_card.py:447
↓ 1 callers
Function
_tool_result_join_verdict
(bundle: ArtifactBundle)
agent/evals/harness/assertions.py:713
↓ 1 callers
Function
_tool_timeout_seconds
()
agent/src/agent/tuning.py:86
↓ 1 callers
Function
_tool_verdicts
(case: HarnessCase, bundle: ArtifactBundle)
agent/evals/harness/assertions.py:259
↓ 1 callers
Function
_top_of_book
Extract best bid/ask price from a depth response.
agent/src/trading/connectors/longbridge/sdk.py:836
↓ 1 callers
Method
_touch_conversation_ref
Refresh updated_at for an active ref to keep it from expiring while used.
agent/src/channels/msteams.py:783
↓ 1 callers
Function
_trace_fields_from_runtime
Resolve host-injected run metadata into ledger-verifiable evidence fields.
agent/src/tools/goal_tool.py:72
↓ 1 callers
Method
_track_session_symbols
Widen the run's instrument surface from one succeeding tool call. Both sides of a successful call count. The result is the strong signal —
agent/src/agent/grounding/identity.py:1014
↓ 1 callers
Function
_trade
(pnl: float = 100.0)
agent/tests/test_metrics_inf_zero_equity.py:25
↓ 1 callers
Function
_trade
(holding_bars: float)
agent/tests/test_metrics_holding_period.py:13
↓ 1 callers
Function
_trade_date
Normalize an Eastmoney ``TRADE_DATE`` cell to ``YYYY-MM-DD``.
agent/src/tools/southbound_tool.py:83
↓ 1 callers
Function
_translate_rule
Turn a structured rule dict into a concise English sentence (<=80 chars).
agent/src/shadow_account/extractor.py:539
↓ 1 callers
Function
_trd_env_of
(row: Mapping[str, Any])
agent/src/trading/connectors/futu/sdk.py:1200
↓ 1 callers
Function
_triggers
(parsed: dict)
agent/tests/test_docker_workflow_publish_guard.py:30
↓ 1 callers
Function
_trim_window
(frame: pd.DataFrame, from_date: str, to_date: str)
agent/src/tools/paper_trade/data.py:177
↓ 1 callers
Function
_trip_halt_from_repl
Trip the global kill switch from the REPL and print a notice. This is the surface action behind a bare "停"/"stop" turn and the ``/halt`` / ``
agent/cli/main.py:888
↓ 1 callers
Function
_truncate
(value: str, max_len: int)
agent/cli/stream.py:79
↓ 1 callers
Function
_truncate
(value: str, limit: int = _ARG_VALUE_MAX)
agent/cli/components/tool_event.py:66
↓ 1 callers
Function
_truncate
Clip to _MAX_CHARS, return (text, was_truncated).
agent/src/tools/doc_reader_tool.py:80
↓ 1 callers
Function
_truncate_period
Cap one period's field count so a single record stays context-safe. Args: record: A flat period dict (field name -> value). Returns:
agent/src/tools/financial_statements_tool.py:127
↓ 1 callers
Function
_truncate_swarm_vars_preview
Return a compact preview for a CLI JSON token.
agent/cli/_legacy.py:91
↓ 1 callers
Function
_trusted_docker_loopback_ip
Return whether an IP is the explicitly trusted Docker host gateway.
agent/src/api/security.py:546
↓ 1 callers
Function
_try_lock
Acquire a non-blocking cross-process advisory lock.
agent/src/live/daily_count.py:52
↓ 1 callers
Method
_try_register
(self, zoo_id: str, py_file: Path)
agent/src/factors/registry.py:242
↓ 1 callers
Function
_try_render_pdf
Render PDF via weasyprint, returning (path|None, engine_name). The import is probed at most once per process. Retrying it after a failure is
agent/src/shadow_account/reporter.py:307
↓ 1 callers
Function
_try_render_pdf_reportlab
Render PDF via reportlab platypus, returning (path|None, engine_name).
agent/src/shadow_account/reporter.py:366
↓ 1 callers
Function
_turnover
(weights: pd.DataFrame)
agent/src/quantlib/combination.py:305
↓ 1 callers
Method
_tushare_fallback_envelope
Build the tushare-fallback envelope, or an honest error without it. Args: lookback_days: Clamped history window forwarded to the
agent/src/tools/northbound_tool.py:293
↓ 1 callers
Function
_type_matches
(instance: Any, json_type: str)
agent/src/tools/paper_trade/schema.py:604
↓ 1 callers
Method
_typing_keepalive_loop
(self, user_id: str, typing_ticket: str, stop_event: asyncio.Event)
agent/src/channels/weixin.py:1079
↓ 1 callers
Method
_typing_loop
Send typing updates periodically until cancelled.
agent/src/channels/signal.py:1370
↓ 1 callers
Method
_typing_loop
Repeatedly send 'typing' action until cancelled.
agent/src/channels/telegram.py:1612
↓ 1 callers
Method
_uid_expunge_or_fallback
(self, client: Any, uid: str, features: _ServerFeatures)
agent/src/channels/email.py:865
↓ 1 callers
Method
_uid_store_deleted
(self, client: Any, uid: str, features: _ServerFeatures)
agent/src/channels/email.py:841
↓ 1 callers
Function
_unanchored_term
Whether a formula adds or subtracts a term holding no observed operand. Multiplicative constants are free, so two forms are not offsets: ``1 ± c`
agent/src/agent/grounding/policies.py:244
↓ 1 callers
Method
_unavailable_reason
(self, name: str)
agent/src/agent/tools.py:96
↓ 1 callers
Function
_ungroup_number
Normalize declared grouping only when every digit group is valid. Args: text: Signed numeric text, optionally with a scientific exponent.
agent/src/entities/ingest.py:139
↓ 1 callers
Method
_universe
List analysis-universe stocks with their latest indicators. Args: connection: Open snapshot connection. active_only:
agent/src/tools/taiwan_stock_data_tool.py:924
↓ 1 callers
Method
_unknown_call_field_ref_candidates
Exact ``call_id::path`` refs for a ``scope::field`` whose scope names nothing. A model that writes an alias (``p1::field``) instead of the ca
agent/src/agent/grounding/policies.py:1342
↓ 1 callers
Function
_unlock
Release the platform advisory lock.
agent/src/live/daily_count.py:65
↓ 1 callers
Function
_unlock
Release the lock acquired by :func:`_lock_exclusive`.
agent/src/governance/ledger.py:345
↓ 1 callers
Function
_unlock_token_file
Release the lock acquired by :func:`_lock_token_file`.
agent/src/providers/openai_codex.py:143
↓ 1 callers
Function
_unrecognized_config_keys
Config keys nothing on the path reads (misspellings included). ``BacktestConfigSchema`` allows extras so engine-specific keys flow through; t
agent/backtest/runner.py:1361
↓ 1 callers
Function
_unresolved_reason
Explain why a filing cannot be applied, or ``None`` when it can be. Two filings in one quarter cannot both be applied without a rule saying how,
agent/src/tools/institutional_holdings_tool.py:1163
↓ 1 callers
Function
_unsupported_snapshot_provenance
(snapshot: BinanceAccountSnapshot)
agent/backtest/binance_shadow_evidence.py:249
↓ 1 callers
Function
_untradable_dates
(frame: pd.DataFrame)
agent/src/tools/paper_trade/data.py:195
↓ 1 callers
Function
_unused_engine_config_warning
Warn about known engine-only keys with no reader in the selected rules.
agent/backtest/runner.py:1407
↓ 1 callers
Function
_unwrap_ok_payload
Decode a successful adapter read payload into a records list. Accepts a bare list (injected/legacy read stubs) or the adapter's ``{"status":
agent/src/live/runtime/flatten.py:210
↓ 1 callers
Method
_update_index
Append or update an entry in MEMORY.md.
agent/src/memory/persistent.py:718
↓ 1 callers
Method
_update_memory
Update workspace memory counters after tool execution.
agent/src/agent/tool_lifecycle.py:941
↓ 1 callers
Method
_update_react_emoji
Remove the in-progress reaction and optionally add a done reaction.
agent/src/channels/slack.py:650
↓ 1 callers
Method
_upload_and_send_attachment
Upload one local file to Matrix and send it as a media message. Returns failure marker or None.
agent/src/channels/matrix.py:458
↓ 1 callers
Method
_upload_media
( self, token: str, data: bytes, media_type: str, filename: str,
agent/src/channels/dingtalk.py:520
↓ 1 callers
Method
_upload_media_ws
Upload a local file to WeCom via WebSocket 3-step protocol (base64). Uses the WeCom WebSocket upload commands directly via ``client._
agent/src/channels/wecom.py:404
↓ 1 callers
Function
_url
()
agent/src/tools/gildata_srv.py:39
↓ 1 callers
Function
_url_allowed
Return whether a URL is safe to forward to the remote reader service.
agent/src/tools/web_reader_tool.py:25
↓ 1 callers
Function
_url_host
Return the lower-cased hostname of an http(s) URL, or ``""``. Args: url: A candidate MCP server URL. Returns: The lower-case
agent/src/config/schema.py:54
↓ 1 callers
Function
_us_indexed_periods
Map accession -> period of report for a series, from EDGAR full-text search. The atom filing index carries no period, and the newest-filed NPORT-
agent/src/tools/etf_holdings_tool.py:580
↓ 1 callers
Function
_us_nport_filings
List a fund series' NPORT-P filings, newest first. Args: series_id: SEC series identifier, e.g. ``"S000004310"``. Returns: A
agent/src/tools/etf_holdings_tool.py:532
↓ 1 callers
Function
_usage
(payload: dict[str, Any])
agent/src/providers/claude_cli.py:338
↓ 1 callers
Function
_utc_now
()
agent/backtest/run_card.py:258
↓ 1 callers
Function
_utc_now
()
agent/src/research_artifacts/store.py:22
↓ 1 callers
Function
_utc_now_iso
Return the current UTC time as an ISO-8601 string.
agent/src/live/enforcement.py:183
↓ 1 callers
Function
_utc_now_iso_ms
Return the current UTC time as an ISO-8601 string with ms precision.
agent/src/live/runtime/reconcile.py:190
↓ 1 callers
Function
_utcnow
Return the current UTC time (seam for tests).
agent/src/live/mandate/commit.py:147
↓ 1 callers
Function
_utcnow_iso
Second-resolution UTC stamp for ``recorded_at_utc`` (manual tool only).
agent/tests/fixtures/paper_trade/record_market_fixtures.py:88
↓ 1 callers
Function
_val_columns_required
Collect requested ``val:*`` panel columns from selected factors. Args: selected_factors: Factor metadata/spec objects. Returns:
agent/backtest/runner.py:1047
↓ 1 callers
Function
_val_columns_required
Collect declared ``val:*`` columns missing from the panel. Args: registry: Registry holding the selected factors. alpha_ids: Fact
agent/src/tools/alpha_bench_tool.py:752
↓ 1 callers
Function
_valid_date
Check a date argument is a ``YYYY-MM-DD`` string. Args: value: Raw argument value. Returns: True when the value is a well-fo
agent/src/tools/research_papers_tool.py:1449
↓ 1 callers
Function
_valid_iso_date
True only for strict ``YYYY-MM-DD`` calendar dates. ``date.fromisoformat`` alone is not enough: on Python 3.11+ it also accepts the compact `
agent/src/tools/market_data_tool.py:63
↓ 1 callers
Function
_valid_iso_date
(value: str)
agent/tests/test_paper_trade_fixtures.py:111
↓ 1 callers
Method
_validate_allow_from
(self)
agent/src/channels/manager.py:210
↓ 1 callers
Function
_validate_api_auth
Validate configured auth, preserving loopback-only dev mode. Key-first precedence: when an API key is configured every peer -- including loop
agent/src/api/security.py:463
↓ 1 callers
Function
_validate_api_key
Basic API-key format validation used during interactive setup.
agent/cli/_legacy.py:6040
← previous
next →
7,601–7,700 of 26,887, ranked by callers