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
_prune_tests
()
agent/src/api/custom_provider_routes.py:149
↓ 2 callers
Function
_public_config
Redacted config for health/error payloads (never leaks secrets).
agent/src/trading/connectors/mt5/_client.py:208
↓ 2 callers
Function
_public_names
Callable public names of a module, writers excluded. Args: module: An imported quantlib module. Returns: Sorted names from `
agent/src/tools/quantlib_tool.py:120
↓ 2 callers
Function
_push_flags
(job: dict)
agent/tests/test_docker_workflow_publish_guard.py:35
↓ 2 callers
Method
_qr_login
Perform QR code login flow. Returns True on success.
agent/src/channels/weixin.py:342
↓ 2 callers
Function
_qualify_contract
Qualify the contract, populating conId and exchange fields. Raises IBKRConnectionError if qualification fails.
agent/src/trading/connectors/ibkr/local.py:654
↓ 2 callers
Function
_quantlib_export_count
Count the public functions `src/quantlib` exports. The Quant Library badge states this number, and the whole point of the layer is that a for
agent/tests/test_readme_counts.py:140
↓ 2 callers
Method
_query_pit_cut
Return all rows visible by ``as_of`` without deduplication. This is the raw PIT cut used internally by :func:`enrich_price_frames_wit
agent/backtest/loaders/tushare_fundamentals.py:189
↓ 2 callers
Function
_queue_prompt
Stash ``prompt`` on ``ctx.pending_prompt`` for the loop to consume. Returns ``True`` if the context exposes a writable ``pending_prompt`` att
agent/cli/commands/chat.py:100
↓ 2 callers
Function
_quote_client
(cfg: TigerConfig)
agent/src/trading/connectors/tiger/sdk.py:586
↓ 2 callers
Function
_quote_to_dict
(item: Any)
agent/src/trading/connectors/longbridge/sdk.py:917
↓ 2 callers
Function
_rank
(design: np.ndarray, weights: np.ndarray, rcond: float)
agent/src/quantlib/neutralization.py:106
↓ 2 callers
Function
_raw_field_spec
(schema: Any, field: str)
agent/backtest/loaders/fundamentals_loader.py:387
↓ 2 callers
Function
_raw_mandate_json
(instruments: list[str], asset_classes: list[str])
agent/tests/test_mandate_forex.py:97
↓ 2 callers
Function
_raw_tool_call
( call_id: str, name: str, arguments: dict, thought_signature: str | None = None, )
agent/tests/test_agent_loop_thought_signature.py:14
↓ 2 callers
Function
_read_audit_records
(live_runtime: Path)
agent/tests/test_mandate_enforcement.py:535
↓ 2 callers
Function
_read_broker_state
Read broker state for the sweep, or record a structured read error. Broker reads are wired to ``MCPServerAdapter.call_tool``, whose contract
agent/src/live/runtime/flatten.py:162
↓ 2 callers
Function
_read_csv
Read only selected records, retaining at most the requested page.
agent/src/tools/run_artifact_tool.py:248
↓ 2 callers
Function
_read_input
Read user input with arrow key support if prompt_toolkit is available. Falls back to Rich Prompt.ask() when prompt_toolkit is not installed or
agent/cli/_legacy.py:234
↓ 2 callers
Function
_read_json
Safely read JSON.
agent/cli/_legacy.py:324
↓ 2 callers
Function
_read_ledger
()
agent/tests/test_runtime_flatten.py:56
↓ 2 callers
Function
_read_pdf
Extract PDF text; OCR pages with too little text.
agent/src/tools/doc_reader_tool.py:133
↓ 2 callers
Function
_read_raw_records
Read every parseable JSON line from ``path`` in order. Used by :func:`build_export` after :func:`verify_chain` has already established (or re
agent/src/governance/ledger.py:475
↓ 2 callers
Function
_read_records
(config: MStockConfig, resource: str)
agent/src/trading/connectors/mstock/sdk.py:53
↓ 2 callers
Function
_read_rows
Read a delimited text file into a header and a list of row mappings. Args: path: File to read. delimiter: Field delimiter, or ``N
agent/src/entities/ingest.py:317
↓ 2 callers
Method
_read_tools
Return connector-specific read tools, falling back to legacy names.
agent/src/live/order_guard.py:732
↓ 2 callers
Function
_read_trace
Read trace.jsonl entries from a run directory.
agent/tests/test_content_filter_e2e.py:150
↓ 2 callers
Function
_read_with_clock_retry
Retry one rejected signed read after refreshing Binance's clock offset. Binance rejects timestamps more than one second ahead regardless of the
agent/src/trading/connectors/binance/sdk.py:768
↓ 2 callers
Function
_reading
A number's value and canonical spelling, in percent units for bp.
agent/src/agent/grounding/figures.py:638
↓ 2 callers
Method
_rebalance
Adjust position for *symbol* toward *target_weight*.
agent/backtest/engines/base.py:1582
↓ 2 callers
Method
_rebuild
Build a derived series that keeps this series' currency contract. Args: flows: Subset of flows for the new series. Retur
agent/src/entities/cashflow.py:338
↓ 2 callers
Function
_recall_envelope
(ref_code, code)
agent/tests/test_gildata_loader.py:295
↓ 2 callers
Function
_reconnect_service
(tmp_path)
agent/tests/test_portfolio_service.py:825
↓ 2 callers
Function
_reconnect_snapshot
()
agent/src/api/portfolio_routes.py:77
↓ 2 callers
Method
_record_backtest_outputs
Record every scalar of a backtest's summary outputs, and hash its tables. The run's Sortino, turnover, final equity, Monte Carlo p-values and
agent/src/agent/grounding/evidence.py:971
↓ 2 callers
Method
_record_blocked_tool_call
Record a blocked call without invoking its implementation. Args: tc: Provider tool-call object. result: Structured id
agent/src/agent/tool_lifecycle.py:336
↓ 2 callers
Method
_record_leaf_metrics
Record nested numeric leaves whose key names a metric kind.
agent/src/agent/grounding/evidence.py:824
↓ 2 callers
Method
_record_metrics_file
Record metric figures from one metrics.csv/metrics.json artifact.
agent/src/agent/grounding/evidence.py:1202
↓ 2 callers
Method
_record_tool_failure
Store structured unavailable evidence for failed business envelopes.
agent/src/agent/grounding/evidence.py:1242
↓ 2 callers
Method
_record_tool_trail_event
Consolidate live tool events into a compact history record. Args: tool_trail: Mutable per-attempt trail. event_type:
agent/src/session/service.py:732
↓ 2 callers
Method
_record_turnover
Accumulate signed allocation turnover and roll prior holdings forward.
agent/backtest/optimizers/turnover_aware.py:289
↓ 2 callers
Method
_record_verdict_on
Write the run's verdict record onto ``job``, shifting the prior one. The previous record embeds one level only: a verdict chain any deeper
agent/src/scheduled_research/executor.py:683
↓ 2 callers
Function
_recorded_frame
(filename: str)
agent/tests/test_paper_trade_determinism.py:115
↓ 2 callers
Method
_recover_terminal
Pure: derive a terminal SwarmRun from already-terminal tasks.
agent/src/swarm/store.py:446
↓ 2 callers
Function
_recv
(conn: Any, budget: float)
agent/src/tools/paper_trade/strategy_exec.py:392
↓ 2 callers
Function
_reexpose_mt5_config
Write a credential-free subset of the host's ``mt5.json`` into the sandbox. The full connector config carries broker ``login``/``password``/``ser
agent/src/core/runner.py:148
↓ 2 callers
Function
_ref_ts_argmax
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:54
↓ 2 callers
Function
_ref_ts_argmin
(df: pd.DataFrame, n: int)
agent/tests/test_factor_operators.py:64
↓ 2 callers
Method
_reference_price_values
(self, open_: float, high: float, low: float, close: float)
agent/src/tools/paper_trade/engine.py:387
↓ 2 callers
Method
_refresh_context_token_if_stale
Return a fresh context_token if the cached one is too old. iLink context_token expires server-side after a short idle period (empiric
agent/src/channels/weixin.py:974
↓ 2 callers
Method
_refresh_sessions_directory
(self, subscribe_new: bool)
agent/src/channels/mochat.py:550
↓ 2 callers
Method
_refusal
Build the structured refusal envelope returned to the agent loop.
agent/src/live/order_guard.py:577
↓ 2 callers
Method
_register_handlers
( self, client: Any, *, login_result: asyncio.Future[None] | None = None,
agent/src/channels/whatsapp.py:433
↓ 2 callers
Function
_registered_multiword_tool_names
Return registered tool names containing an underscore. Single-word tool names (``bash``, ``pattern``, ``sentiment``) are ordinary English wor
agent/tests/test_investor_lenses_skill.py:244
↓ 2 callers
Function
_registered_tool_names
Names of every tool a swarm worker could possibly be granted. Shell tools are included because a preset may legitimately whitelist ``bash``;
agent/tests/test_preset_claim_backing.py:70
↓ 2 callers
Function
_registry
(columns: list[str])
agent/tests/test_alpha_bench_pit_lag.py:61
↓ 2 callers
Method
_reject
(self, day: DayPlan, order: Order, code: str, detail: str)
agent/src/tools/paper_trade/engine.py:405
↓ 2 callers
Method
_reject_unfunded_atomic_order
( self, order, timestamp: pd.Timestamp, action: str )
agent/backtest/engines/crypto.py:491
↓ 2 callers
Function
_rejected_payload
()
agent/tests/test_dragon_tiger_tool.py:71
↓ 2 callers
Function
_relative_posix
``path`` relative to ``root`` in POSIX form, "" for ``root`` itself.
agent/src/agent/grounding/evidence.py:234
↓ 2 callers
Method
_remember_account_id_alias
Remember known bot identifiers for mention matching.
agent/src/channels/signal.py:1099
↓ 2 callers
Method
_remember_thread_context
Cache Telegram thread context by chat/message id for follow-up replies.
agent/src/channels/telegram.py:1339
↓ 2 callers
Function
_remote_arguments
Normalize generic arguments for a remote MCP operation.
agent/src/trading/service.py:1685
↓ 2 callers
Method
_remove_reaction
Remove emoji reaction from a message (best-effort, non-blocking).
agent/src/channels/telegram.py:1599
↓ 2 callers
Function
_rename_keys
Alias Alpaca market-data short keys to the model names the mappers expect (``bp`` -> ``bid_price``, ``o`` -> ``open`` …); non-mappings become ``{}
agent/src/trading/connectors/alpaca/sdk.py:234
↓ 2 callers
Function
_render
(tmp_path: Path, excluded: dict[str, int])
agent/tests/test_shadow_currency_disclosure.py:70
↓ 2 callers
Function
_render_card
Print one template: metadata, declared variables and the full body. Returns: ``True`` when the card was printed, ``False`` when substitut
agent/cli/commands/research_playbook.py:308
↓ 2 callers
Function
_render_catalogue
Print the template catalogue as a table.
agent/cli/commands/research_playbook.py:284
↓ 2 callers
Method
_render_data_content
Extract text from a ``DataContent``-like payload within *budget*. Handles ``DataContent`` (``.items[].content``), a bare string, and
agent/src/openbb_bridge/context_injector.py:214
↓ 2 callers
Function
_render_env
Render values as a stable ``.env`` body (KEY=value lines).
agent/cli/onboard.py:124
↓ 2 callers
Function
_render_html
Render with Jinja2 autoescape if available; else manual ``html.escape``.
agent/src/tools/alpha_bench_tool.py:1147
↓ 2 callers
Method
_renderable
(self)
agent/cli/components/working_indicator.py:102
↓ 2 callers
Method
_replay_locked
Compute the replay list. Caller must already hold ``self._lock``.
agent/src/session/events.py:217
↓ 2 callers
Method
_reply_ephemeral
Send an ephemeral interaction response and report success.
agent/src/channels/discord.py:117
↓ 2 callers
Function
_report_html
(tmp_path)
agent/tests/test_alpha_bench_strict_cli.py:250
↓ 2 callers
Method
_report_media
Attach verified reports from this attempt, never model-written paths.
agent/src/channels/runtime.py:360
↓ 2 callers
Function
_report_value
Read a financial value without rescuing malformed accounting notation. Args: text: Table cell or text immediately following a prose label
agent/src/tools/report_audit_tool.py:64
↓ 2 callers
Function
_report_written
True iff a non-empty report.md was actually produced by the worker.
agent/src/swarm/worker.py:1388
↓ 2 callers
Method
_request_page
Fetch up to `_PAGE_SIZE` bars in [start_date, end_date].
agent/backtest/loaders/tencent_loader.py:148
↓ 2 callers
Function
_require_assumption
Check that a terminal-value driver arrived as a justified Assumption. Args: value: Candidate supplied by the caller. expected_nam
agent/src/quantlib/valuation/dcf.py:193
↓ 2 callers
Function
_require_dhan
()
agent/src/trading/connectors/dhan/sdk.py:573
↓ 2 callers
Function
_require_eps_basis
Reject an EPS basis that is not one of the two this module recognises.
agent/src/quantlib/valuation/comps.py:602
↓ 2 callers
Function
_require_finite
(name: str, value: float, *, non_negative: bool = False)
agent/backtest/binance_tolerance_calibration.py:23
↓ 2 callers
Function
_require_jwt
()
agent/src/trading/connectors/upbit/sdk.py:544
↓ 2 callers
Function
_require_kite
()
agent/src/trading/connectors/zerodha/sdk.py:194
↓ 2 callers
Function
_require_name
Reject a blank company name -- every report keys off it.
agent/src/quantlib/valuation/comps.py:595
↓ 2 callers
Function
_require_resolved_config
(cfg: LongbridgeConfig)
agent/src/trading/connectors/longbridge/sdk.py:697
↓ 2 callers
Function
_require_shoonya
()
agent/src/trading/connectors/shoonya/sdk.py:550
↓ 2 callers
Function
_required
Return a column's value, refusing an empty or corrupt one. Args: row: The aligned row. column: The column to read. number
agent/src/portfolio/extraetf.py:742
↓ 2 callers
Function
_resample_to_interval
Resample an OHLCV frame to the requested bar ``interval``. Local files can hold any native granularity, so a requested interval the file does
agent/backtest/loaders/local_loader.py:85
↓ 2 callers
Method
_reset_runtime_state
Reset client and typing state.
agent/src/channels/discord.py:852
↓ 2 callers
Function
_resolution_label
Name what the chain walk actually did, in one machine-readable token.
agent/src/tools/institutional_holdings_tool.py:1187
↓ 2 callers
Function
_resolve_api_key
Return the configured Alpha Vantage API key, or empty when unset. Returns: The trimmed key, or ``""`` when the env var is absent or a pla
agent/backtest/loaders/alphavantage_loader.py:59
↓ 2 callers
Method
_resolve_bool_override
Return *key* from *section* if it is a bool, otherwise *default*. For dict configs also checks the camelCase alias.
agent/src/channels/manager.py:231
↓ 2 callers
Function
_resolve_broker
Return ``(broker_key, sdk_module)`` for the first available India broker. Prefers Zerodha, then Shoonya, then Dhan. Returns ``(None, None)`` when
agent/backtest/loaders/india_broker_loader.py:51
↓ 2 callers
Function
_resolve_candidate
Drive one ``search_symbol`` resolution for ``query`` through the ledger.
agent/tests/test_agent_grounding.py:237
↓ 2 callers
Method
_resolve_channel
Resolve a Discord channel from cache first, then network fetch.
agent/src/channels/discord.py:646
↓ 2 callers
Function
_resolve_code
Validate an A-share symbol and extract its bare 6-digit code. The datacenter report filters by the plain ``SECURITY_CODE`` (no market prefix)
agent/src/tools/block_trades_tool.py:47
↓ 2 callers
Function
_resolve_config
Return ``(base_url, agent_key)`` from the environment / project ``.env``. Reads ``TAP_PROXY_URL`` + ``TAP_AGENT_KEY`` from ``os.environ``. If the
agent/src/trading/tap_forward.py:79
↓ 2 callers
Method
_resolve_interaction_channel
( self, interaction: discord.Interaction, )
agent/src/channels/discord.py:126
← previous
next →
4,301–4,400 of 26,887, ranked by callers