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
_pip_upgrade
Upgrade the wheel install in place via pip, then verify. Returns exit code.
agent/cli/commands/update.py:186
↓ 1 callers
Function
_pkcs7_unpad_safe
Safely remove PKCS7 padding when valid; otherwise return original bytes.
agent/src/channels/weixin.py:1569
↓ 1 callers
Method
_plan_reduction
(self, before: Position, target_size: float, price: float)
agent/backtest/engines/base.py:2004
↓ 1 callers
Function
_plateau_spans
Group the offset series into [start, end) spans of one constant value. One-bar spans are folded into a matching level when both neighbors agree
agent/backtest/loaders/additive_conversion.py:47
↓ 1 callers
Function
_pnl_from_aggregate_portfolio
Normalize account-level PnL from ``GET …/aggregate-portfolio``.
agent/src/trading/connectors/etoro/sdk.py:346
↓ 1 callers
Method
_poll_once
(self)
agent/src/channels/weixin.py:540
↓ 1 callers
Function
_poll_registration
Poll until the user scans the QR code, or timeout/denial. Returns dict with app_id, app_secret, domain on success, None on failure.
agent/src/channels/feishu.py:471
↓ 1 callers
Function
_pool_deals
Combine every deal's flows into one whole-of-fund series. Args: deals: Deal-id -> that deal's cash flows. Assumed already validated
agent/src/quantlib/fundmath.py:1928
↓ 1 callers
Function
_pooled_entitlement
The whole-of-fund (European) split every deal's cash would have earned. This is the entitlement side of a clawback test: pool every deal's co
agent/src/quantlib/fundmath.py:2089
↓ 1 callers
Function
_populate
(index: SessionSearchIndex)
agent/tests/test_session_search_distinct_limit.py:10
↓ 1 callers
Function
_portfolio_greeks
Portfolio Greeks at entry, in dollar exposure per unit of ``multiplier``. Legs are re-run through the tool's own ``_coerce_legs`` so the Greeks u
agent/src/api/options_routes.py:138
↓ 1 callers
Method
_poses_as_price
Whether an unmarked number sits where its instrument's price does. A decimal inside the observed range (±10%) reads as a quote. An integer
agent/src/agent/grounding/policies.py:1562
↓ 1 callers
Function
_position_maps
( account: AccountState, risk: RiskSnapshot, exchange: BinanceAccountSnapshot, )
agent/backtest/binance_account_reconciliation.py:297
↓ 1 callers
Function
_position_qty
Return the signed quantity of a position dict (0.0 when absent).
agent/src/live/runtime/reconcile.py:264
↓ 1 callers
Function
_position_row
(item: dict[str, Any])
agent/src/trading/connectors/etoro/sdk.py:333
↓ 1 callers
Function
_position_symbol
Extract one normalized position symbol, or ``None`` if unavailable.
agent/src/live/enforcement.py:411
↓ 1 callers
Function
_position_symbol
Return the symbol of a position dict, or ``None`` if absent/flat.
agent/src/live/runtime/reconcile.py:258
↓ 1 callers
Function
_position_to_dict
(item: Any)
agent/src/trading/connectors/trading212/sdk.py:535
↓ 1 callers
Function
_position_to_dict
(item: Any)
agent/src/trading/connectors/tiger/sdk.py:670
↓ 1 callers
Function
_position_to_dict
(item: Any)
agent/src/trading/connectors/alpaca/sdk.py:895
↓ 1 callers
Function
_position_to_dict
(item: Any)
agent/src/trading/connectors/toss/sdk.py:644
↓ 1 callers
Function
_position_to_dict
Normalize one ``position_list_query`` row. Futu reports a position on two cost bases. ``cost_price`` is the diluted cost, with realized gains
agent/src/trading/connectors/futu/sdk.py:1263
↓ 1 callers
Function
_positive_finite
(value: float)
agent/src/tools/paper_trade/corporate_actions.py:145
↓ 1 callers
Function
_positive_int
(value: Any, name: str, minimum: int = 1)
agent/src/quantlib/combination.py:92
↓ 1 callers
Function
_positive_number
Validate a source number without guessing missing values. Args: value: The price or strike supplied by the data source. Returns:
agent/src/tools/options_chain_tool.py:199
↓ 1 callers
Function
_positive_prices
Finite, strictly positive floats for every value, or ``None``. A missing, non-numeric, non-finite or non-positive price makes the whole set u
agent/backtest/loaders/tiingo_loader.py:109
↓ 1 callers
Method
_post_base64file
Upload base64-encoded file and return Media object.
agent/src/channels/qq.py:486
↓ 1 callers
Function
_pre_position_qty
(positions: object, symbol: str)
agent/src/live/sdk_order_gate.py:1017
↓ 1 callers
Method
_prefetch_grounding_data
Fetch run-level grounding data without blocking ``start_run``.
agent/src/swarm/runtime.py:919
↓ 1 callers
Function
_prepared
(instruments, frames, **config)
agent/tests/test_argentina_equity_engine.py:74
↓ 1 callers
Function
_preset_paths
Every bundled preset YAML, sorted for stable test ids. Returns: Sorted list of paths to the bundled ``*.yaml`` presets.
agent/tests/test_preset_claim_backing.py:61
↓ 1 callers
Function
_pretty_tool_name
Convert ``get_financials`` to ``Get Financials``. Strips a leading ``get_`` prefix when present (dexter convention). Underscores and hyphens
agent/cli/components/tool_event.py:46
↓ 1 callers
Function
_prev_close
(sym_data: data.SymbolData, day: str)
agent/src/tools/paper_trade/engine.py:514
↓ 1 callers
Function
_preview_tool_result
Return a short, redacted result preview for streamed events. Delegates to the shared :func:`redact_tool_result` choke point so a plain-text r
agent/src/swarm/worker.py:1342
↓ 1 callers
Function
_previously_archived
Return the run-relative files the previous archive copied into ``target``. The caller deletes what this returns, and the names are read back off
agent/src/agent/tool_results.py:158
↓ 1 callers
Method
_price_band
The observed price range of a figure's instrument, or None when unknown.
agent/src/agent/grounding/policies.py:1552
↓ 1 callers
Method
_price_df
(n=60)
agent/tests/test_correlation.py:173
↓ 1 callers
Function
_price_from_quote_dict
Return the first parseable positive price from a quote dict, else None.
agent/src/live/order_guard.py:937
↓ 1 callers
Method
_priced_rows
Attach a market value to position rows the broker reports unpriced. The exposure check needs each position's value. A row with no price is
agent/src/live/order_guard.py:701
↓ 1 callers
Function
_prices
A rising series with a dip, so the MA rule both enters and exits.
agent/tests/test_warmup_window.py:58
↓ 1 callers
Method
_primary_sender_id
Pick the best sender identifier for routing (prefer phone-like IDs).
agent/src/channels/signal.py:1139
↓ 1 callers
Function
_primary_style
Resolve the brand-orange ``style`` string for prompt_toolkit. Rich and prompt_toolkit do not share a style grammar, so we read the brand hex
agent/cli/completer.py:22
↓ 1 callers
Function
_print_connector_account
(result: dict[str, Any])
agent/cli/_legacy.py:4845
↓ 1 callers
Function
_print_connector_account_mapping
Render the flat/nested ``account`` mapping used by direct SDK brokers.
agent/cli/_legacy.py:4801
↓ 1 callers
Function
_print_connector_assets
Render Futu's per-currency ``assets`` rows from ``accinfo_query``.
agent/cli/_legacy.py:4717
↓ 1 callers
Function
_print_connector_balances
Render the ``balances`` list returned by ``broker_sdk`` connectors. Two row shapes arrive here. Longbridge reports one row per currency with
agent/cli/_legacy.py:4642
↓ 1 callers
Function
_print_debug_summary
Render the one-line ``[debug]`` summary after a turn. Reads the iteration count from ``result`` (populated by :class:`src.agent.loop.AgentLoo
agent/cli/main.py:668
↓ 1 callers
Function
_print_help
Print all available slash commands.
agent/cli/_legacy.py:1856
↓ 1 callers
Function
_print_load_errors
(reg: Registry)
agent/src/factors/cli_handlers.py:287
↓ 1 callers
Function
_print_missing_live_channel_config
Print actionable guidance when a live broker config cannot be loaded.
agent/cli/_legacy.py:3432
↓ 1 callers
Function
_print_qr_code
Print QR code as ASCII art if qrcode package is available, otherwise print URL.
agent/src/channels/feishu.py:554
↓ 1 callers
Method
_print_qr_code
(url: str)
agent/src/channels/weixin.py:430
↓ 1 callers
Function
_print_recap_if_needed
Print a dim recap once per completed turn.
agent/cli/main.py:830
↓ 1 callers
Method
_print_tool_line
(self, call: ToolCall)
agent/cli/stream.py:270
↓ 1 callers
Function
_probe_model_name
Return the configured LLM model id, or a placeholder.
agent/cli/main.py:126
↓ 1 callers
Function
_probe_ready_url
(ready_url: str, request_kwargs: dict[str, Any] | None = None)
agent/tests/mcp_http_test_helpers.py:109
↓ 1 callers
Function
_probe_session_count
Count recorded sessions from the SQLite store.
agent/cli/main.py:174
↓ 1 callers
Function
_probe_skill_count
Count bundled + user skills without blocking startup on import errors. Reads ``SkillsLoader.skills`` directly — that is the authoritative list
agent/cli/main.py:158
↓ 1 callers
Function
_probe_tool_count
Count registered tools without blocking startup on import errors.
agent/cli/main.py:148
↓ 1 callers
Function
_profile
()
agent/tests/test_shadow_currency_disclosure.py:23
↓ 1 callers
Function
_profile
(entry_condition: dict[str, Any])
agent/tests/test_shadow_codegen_condition_bounds.py:40
↓ 1 callers
Function
_profile_to_universe
Map a clamped proposal profile to the mandate ``universe`` section. Args: profile: The resolved proposal profile. Returns: A
agent/src/live/mandate/commit.py:609
↓ 1 callers
Function
_profiled_ssr
Best achievable squared error for fixed decay parameters. Beta coefficients are solved via OLS; decay parameters are searched non-linearly. A
agent/src/quantlib/fixedincome.py:710
↓ 1 callers
Function
_project_panel_fields_to_data_map
Copy injected panel fields back to per-symbol backtest frames.
agent/backtest/runner.py:1247
↓ 1 callers
Function
_project_period
Project one period, solving the interest/revolver circularity by iteration. See the module docstring for the fixed-point scheme: the ending revol
agent/src/quantlib/valuation/threestatement.py:508
↓ 1 callers
Function
_project_row
Trim one raw answer row to a compact, column-capped record. iWenCai returns a wide, query-dependent column set keyed by Chinese metric names;
agent/src/tools/iwencai_tool.py:130
↓ 1 callers
Function
_prompt_divider_window
()
agent/cli/input.py:96
↓ 1 callers
Function
_prompt_text
Read a plain string. Returns string, BACK, or CANCEL.
agent/cli/onboard.py:337
↓ 1 callers
Function
_prompt_verdicts
(case: HarnessCase, bundle: ArtifactBundle)
agent/evals/harness/assertions.py:65
↓ 1 callers
Function
_proposal_id
()
agent/tests/test_robinhood_live_account_binding.py:300
↓ 1 callers
Function
_proposals_dir
Return the per-broker pending-proposals directory.
agent/src/live/mandate/commit.py:157
↓ 1 callers
Method
_provenance_note
Build the one-line data note that satisfies the provenance checks. Args: content: The answer the note is appended to, so the symb
agent/src/agent/grounding/release.py:472
↓ 1 callers
Function
_provenance_payload
(result: PaperTradeStepResult)
agent/src/tools/paper_trade/wire.py:271
↓ 1 callers
Function
_provider_async_client
Client for the provider test: every direct connection is re-checked. The name is resolved again when the request connects, and only to public
agent/src/api/custom_provider_routes.py:94
↓ 1 callers
Function
_provider_base_env
Return the base URL environment variable for a provider.
agent/cli/_legacy.py:458
↓ 1 callers
Function
_provider_default_base_url
Return the catalog default base URL for a canonical provider name.
agent/src/providers/capabilities.py:381
↓ 1 callers
Function
_provider_readiness
Report whether the configured LLM provider looks usable, cheaply. Mirrors the config-validation portion of ``src.preflight._check_llm_provide
agent/src/api/system_routes.py:143
↓ 1 callers
Function
_prune_agent_config_for_swarm_tools
Keep only MCP servers whose local tool prefix appears in ``tool_names``.
agent/src/tools/__init__.py:422
↓ 1 callers
Function
_ptk_toolbar
prompt_toolkit bottom_toolbar callback — called on every render. Args: stats: Session statistics. Returns: FormattedText for
agent/cli/_legacy.py:189
↓ 1 callers
Function
_public_config
Config snapshot with secrets redacted.
agent/src/trading/connectors/binance/sdk.py:876
↓ 1 callers
Function
_public_config
(cfg: DhanConfig)
agent/src/trading/connectors/dhan/sdk.py:604
↓ 1 callers
Function
_public_config
Config snapshot with the API key redacted.
agent/src/trading/connectors/trading212/sdk.py:461
↓ 1 callers
Function
_public_config
(cfg: ShoonyaConfig)
agent/src/trading/connectors/shoonya/sdk.py:625
↓ 1 callers
Function
_public_config
(cfg: UpbitConfig)
agent/src/trading/connectors/upbit/sdk.py:637
↓ 1 callers
Function
_public_config
Config snapshot with credential material masked (key path only, never contents).
agent/src/trading/connectors/tiger/sdk.py:622
↓ 1 callers
Function
_public_config
Config snapshot with secrets redacted.
agent/src/trading/connectors/longbridge/sdk.py:767
↓ 1 callers
Function
_public_config
Config snapshot with secrets redacted.
agent/src/trading/connectors/alpaca/sdk.py:863
↓ 1 callers
Function
_public_config
(cfg: TossConfig)
agent/src/trading/connectors/toss/sdk.py:568
↓ 1 callers
Function
_public_config
Config snapshot with no secret material (local endpoint only).
agent/src/trading/connectors/futu/sdk.py:1126
↓ 1 callers
Function
_public_config
(cfg: KISConfig)
agent/src/trading/connectors/kis/sdk.py:908
↓ 1 callers
Function
_public_config
Config snapshot with secrets redacted.
agent/src/trading/connectors/okx/sdk.py:631
↓ 1 callers
Function
_public_config
(cfg: ZerodhaConfig)
agent/src/trading/connectors/zerodha/sdk.py:222
↓ 1 callers
Method
_publish_background_completion
Route a background task's terminal state to its owning session. The AgentLoop that started the task may already have exited by the time
agent/src/session/service.py:225
↓ 1 callers
Function
_publish_reset_notice
Best-effort reset notice on the fresh runtime's bus (#1625). A bus publish is a queue put, so the HTTP response never waits on the adapter; t
agent/src/api/channels_config_routes.py:381
↓ 1 callers
Method
_put
(self, item: Any)
agent/src/providers/stream_guard.py:92
↓ 1 callers
Function
_py_files
(root: Path)
agent/tests/test_no_set_mandate_tool.py:42
↓ 1 callers
Function
_python_block
()
agent/tests/test_ml_strategy_skill.py:13
↓ 1 callers
Method
_python_ready
Check whether a Python interpreter can import runtime dependencies. Args: python_cmd: Interpreter executable path. Retur
agent/src/core/runner.py:478
↓ 1 callers
Function
_qq_hints
Return the hand-written QQ field hints (``enabled`` excluded).
agent/src/channels/config_meta.py:131
↓ 1 callers
Function
_qr_register_inner
Run init → begin → poll. Raises on network/protocol errors.
agent/src/channels/feishu.py:571
← previous
next →
6,901–7,000 of 26,887, ranked by callers