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
↓ 4 callers
Function
_print_result
Print execution result panel.
agent/cli/_legacy.py:1411
↓ 4 callers
Function
_prior_row
(strategy_id="alpha_zoo:prior")
agent/tests/test_strategy_discovery_hard_gates.py:57
↓ 4 callers
Function
_pro_api
()
agent/src/tools/tushare_fallbacks.py:23
↓ 4 callers
Method
_process_inbound_event
(self, target_id: str, event: dict[str, Any], target_kind: str)
agent/src/channels/mochat.py:712
↓ 4 callers
Function
_profile_fits_ceilings
Return whether every clamped limit in ``profile`` is within ``ceilings``. Both sides are first normalized to canonical limit names (see :func
agent/src/live/mandate/commit.py:348
↓ 4 callers
Function
_proposal
Return a minimal valid proposal payload for commit_mandate.
agent/tests/test_mandate_commit_security.py:20
↓ 4 callers
Function
_quarter_chain
Read one quarter's filings into an ordered amendment chain. Ordering is the order the filings take effect: originals first, then amendments o
agent/src/tools/institutional_holdings_tool.py:1071
↓ 4 callers
Function
_rate_limit_error
Build a retryable 429-style error carrying a Retry-After header.
agent/tests/test_stream_retry_escalation.py:95
↓ 4 callers
Function
_rate_to_dict
Map one rates row (numpy structured row, mapping, or object) defensively.
agent/src/trading/connectors/mt5/reads.py:321
↓ 4 callers
Function
_raw
Unwrap a Yahoo ``{"raw":..,"fmt":..}`` cell to its numeric ``raw`` value. Args: value: A Yahoo scalar, which may be a plain value or a fo
agent/src/tools/stock_profile_tool.py:40
↓ 4 callers
Function
_raw_entries
(trace_dir: Path)
agent/tests/test_trace_writer.py:18
↓ 4 callers
Function
_read
(path: str, run: Path)
agent/tests/test_read_file_refusals.py:33
↓ 4 callers
Function
_read_json
Parse a document-reader JSON envelope.
agent/tests/test_doc_reader_security.py:19
↓ 4 callers
Method
_read_media_bytes
Read bytes from http(s) or local file path; return (data, filename).
agent/src/channels/qq.py:408
↓ 4 callers
Function
_read_metric_values
Read metrics.csv as raw floats, for callers that must do arithmetic. ``_read_metrics`` above pre-formats every value into a display string, so a
agent/cli/_legacy.py:357
↓ 4 callers
Function
_read_strict_evidence
(run_dir)
agent/tests/test_crypto_engine.py:143
↓ 4 callers
Function
_read_timeout
()
agent/backtest/loaders/baostock_loader.py:38
↓ 4 callers
Function
_rebalance_once
(engine, target_weight, raw_price=100.0)
agent/tests/test_base_engine.py:96
↓ 4 callers
Function
_record
(**dates)
agent/tests/test_generic_split_datetime.py:15
↓ 4 callers
Method
_record_written_target
Track writes with the active response's model identity.
agent/src/agent/loop.py:1306
↓ 4 callers
Function
_records
(frame: Any)
agent/src/tools/tushare_fallbacks.py:34
↓ 4 callers
Method
_recoverable_rejection
Report whether a failed request should be sent once more. Each branch records what the endpoint rejected so the retry, and ev
agent/src/providers/llm.py:623
↓ 4 callers
Method
_ref_source
Which source one evidence value belongs to, and the ref that names it. One backtest is one observation: its run card, metrics file and risk
agent/src/agent/grounding/policies.py:1026
↓ 4 callers
Function
_registry_with
(names)
agent/tests/test_strategy_discovery_guard.py:57
↓ 4 callers
Function
_registry_with_remote
Build a swarm registry that exposes the given remote tools verbatim. Reuses the real :func:`build_swarm_registry` for the local-tool side (so
agent/tests/test_swarm_m4_e2e.py:583
↓ 4 callers
Function
_reject_cross_site_browser_request
Reject unsafe browser requests from untrusted cross-site origins.
agent/src/api/security.py:423
↓ 4 callers
Function
_reject_unsupported_usdm_surface
(cfg: BinanceConfig)
agent/src/trading/connectors/binance/sdk.py:748
↓ 4 callers
Method
_release_session
Release a session claim. Safe to call when no claim is held. Args: session_id: Session to release.
agent/src/session/service.py:266
↓ 4 callers
Function
_remember_and_should_retry
(self: Any, exc: BaseException)
agent/src/providers/llm.py:1110
↓ 4 callers
Method
_reply_message_sync
Reply to an existing Feishu message using the Reply API (synchronous). Args: reply_in_thread: If True, reply as a thread/topic me
agent/src/channels/feishu.py:1640
↓ 4 callers
Function
_request
Run an HTTP request and normalize Upbit failure modes.
agent/src/trading/connectors/upbit/sdk.py:576
↓ 4 callers
Function
_request
(cash: float, positions: list[dict], orders: list[dict])
agent/tests/test_paper_trade_golden_hk.py:61
↓ 4 callers
Method
_require_mutable_goal
( self, session_id: str, goal_id: str, expected_goal_id: str, )
agent/src/goal/store.py:825
↓ 4 callers
Function
_require_number
(value: Any, path: str)
agent/src/tools/paper_trade/schema.py:280
↓ 4 callers
Function
_require_okx
()
agent/src/trading/connectors/okx/sdk.py:591
↓ 4 callers
Function
_require_tigeropen
()
agent/src/trading/connectors/tiger/sdk.py:551
↓ 4 callers
Function
_resolve_console
Return the shared CLI console.
agent/cli/commands/show.py:19
↓ 4 callers
Function
_resolve_console
Return the shared CLI console.
agent/cli/commands/session.py:20
↓ 4 callers
Function
_resolve_symbol
Resolve one broker identity, then select it in Market Watch.
agent/src/trading/connectors/mt5/_client.py:364
↓ 4 callers
Function
_resolver_payload
(symbol: str = "562500.SS")
agent/tests/test_grounding_recovery.py:41
↓ 4 callers
Function
_response_results
Decode the vendor envelope without leaking raw error bodies or secrets.
agent/backtest/loaders/gildata_loader.py:212
↓ 4 callers
Function
_result
(**overrides)
agent/tests/test_alpha_bench_meta_survivorship.py:37
↓ 4 callers
Function
_result
(status: str, in_tok: int, cache_read: int, cache_creation: int, source: str | None)
agent/tests/test_swarm_cache_source.py:482
↓ 4 callers
Function
_row
One RPT_LIFT_STAGE-shaped record.
agent/tests/test_lockup_expiry_tool.py:27
↓ 4 callers
Method
_rows
Materialize a cursor as plain dictionaries. Args: cursor: Cursor over ``sqlite3.Row`` rows. Returns: One dic
agent/src/tools/taiwan_stock_data_tool.py:542
↓ 4 callers
Function
_run
(tmp_path: Path)
agent/tests/test_swarm_error_surfacing.py:31
↓ 4 callers
Function
_run
()
agent/tests/test_eventbus_clear_subscribers.py:33
↓ 4 callers
Function
_run
(**kwargs)
agent/tests/test_financial_rigor_nonfinite_inputs.py:14
↓ 4 callers
Function
_run
(engine, code: str, run_dir: Path, **config_overrides)
agent/tests/test_korea_backtest_smoke.py:62
↓ 4 callers
Function
_run
(monkeypatch, capsys, args, result)
agent/tests/test_alpha_bench_meta_survivorship.py:113
↓ 4 callers
Function
_run
Run discovery against a mock HTTP transport with a fake OAuth session.
agent/tests/test_codex_model_discovery.py:19
↓ 4 callers
Function
_run
(tmp_path, monkeypatch, config, frames, signal=HOLD)
agent/tests/test_argentina_backtests.py:93
↓ 4 callers
Function
_run
(tolerance: float, targets: list[float], mode: str = "rebalance")
agent/tests/test_rebalance_tolerance.py:41
↓ 4 callers
Method
_run
(self, offset: int, period_count: int = 120)
agent/tests/test_tool_result_paging.py:137
↓ 4 callers
Method
_run
(self, tmp_path, config_extra)
agent/tests/test_warmup_window.py:108
↓ 4 callers
Method
_run_attempt
Execute an Attempt in the background. The whole body runs under try/finally: this coroutine owns the in-flight claim taken in :meth:`
agent/src/session/service.py:446
↓ 4 callers
Function
_run_main
Run ``runner.main`` end to end with a recording loader for ``source``. Args: tmp_path: Pytest temporary directory, used as the allowed ru
agent/tests/test_offline_benchmark.py:64
↓ 4 callers
Method
_run_with_agent
Execute an attempt with the V5 AgentLoop. Args: attempt: Current execution attempt. messages: Session message history
agent/src/session/service.py:585
↓ 4 callers
Function
_run_with_retries
( runtime: SwarmRuntime, tmp_path: Path, results: list[WorkerResult], *, cancelled_during_
agent/tests/test_swarm_cache_source.py:450
↓ 4 callers
Function
_runner
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, broker: _RunnerBroker, account: dict)
agent/tests/test_robinhood_live_account_binding.py:224
↓ 4 callers
Function
_runtime
(tmp_path: Path)
agent/tests/test_swarm_cache_source.py:446
↓ 4 callers
Function
_sample_mandate
(expires_at: str, *, flatten_on_halt: bool = False)
agent/tests/test_mandate_model.py:31
↓ 4 callers
Function
_sample_rows
()
agent/tests/test_tiingo_loader.py:76
↓ 4 callers
Function
_save
(data: dict[str, Any])
agent/src/channels/pairing/store.py:60
↓ 4 callers
Function
_save_handcrafted_proposal
Persist a proposal with an arbitrary single profile + ceiling snapshot. Lets a test exercise commit-time validation against a profile the clampin
agent/tests/test_consent_commit.py:303
↓ 4 callers
Method
_save_refs_locked
Persist conversation references (caller must hold _refs_guard).
agent/src/channels/msteams.py:818
↓ 4 callers
Function
_scenario
()
agent/tests/test_scheduling_lifespan_owner.py:116
↓ 4 callers
Function
_sec_get_text
GET an SEC URL as text through the shared ``"sec"`` throttle bucket. The frozen SEC client only decodes JSON, while both endpoints this tool
agent/src/tools/etf_holdings_tool.py:304
↓ 4 callers
Function
_seed_hypothesis
Create a persisted hypothesis in an isolated registry.
agent/tests/test_autopilot_tool.py:20
↓ 4 callers
Function
_seed_job
(job_id: str, **over: Any)
agent/tests/test_alpha_compare_api.py:70
↓ 4 callers
Function
_seed_run
(store: SwarmStore, run_id: str, **usage: object)
agent/tests/test_swarm_routes_usage.py:46
↓ 4 callers
Function
_selected_profile_or
Resolve the selected or explicit trading profile.
agent/cli/_legacy.py:3992
↓ 4 callers
Method
_send_pairing_code_if_private
(self, sender_id: str, message, user)
agent/src/channels/telegram.py:1167
↓ 4 callers
Function
_serialize
Serialize an envelope the way every response in this tool does.
agent/src/tools/run_artifact_tool.py:301
↓ 4 callers
Function
_series
(scale: float)
agent/tests/test_technical_indicator_small_price_rounding.py:35
↓ 4 callers
Function
_series_with_gpd_left_tail
Return a series whose worst 5% are exactly GPD(shape, scale) losses. The body sits just above zero and the tail just below it, so the 5th per
agent/tests/quantlib/test_risk.py:451
↓ 4 callers
Function
_service
(store: SessionStore, runs_dir: Path, monkeypatch)
agent/tests/test_session_restart_recovery.py:25
↓ 4 callers
Method
_session_file
(self, session_id: str)
agent/src/session/store.py:46
↓ 4 callers
Function
_session_store
Return a process-wide :class:`SessionStore` rooted at the user-level sessions dir. Cached on the module so repeat ``_append_message`` / ``_new_se
agent/cli/main.py:372
↓ 4 callers
Function
_set_env
setenv + config-cache reset (T8's test_memory_consolidation_job pattern).
agent/tests/test_br_data.py:348
↓ 4 callers
Function
_severity
Map a numeric score to low/medium/high given (med_cutoff, high_cutoff).
agent/src/tools/trade_journal_tool.py:379
↓ 4 callers
Function
_share_row
(end: str, filed: str, value: float, *, form: str = "10-Q")
agent/tests/test_fundamentals_shares_diluted_alias.py:22
↓ 4 callers
Function
_sharpe
(returns: np.ndarray, bars_per_year: int = 252)
agent/backtest/validation.py:238
↓ 4 callers
Function
_should_skip
Return True when *rel_path* falls in a skipped or allowed zone.
tools/ci_env_var_gate.py:221
↓ 4 callers
Function
_simple_data_and_signals
Build minimal data_map and signal_map for alignment tests.
agent/tests/test_base_engine.py:754
↓ 4 callers
Function
_skipped
True when a message is the synthetic duplicate-skip result.
agent/tests/test_agent_loop_dedup_arguments.py:98
↓ 4 callers
Function
_snapshot_tree
Byte-level tree snapshot: relative path → sha256 (file) / "dir" / link target. Directories are recorded so a created/removed EMPTY directory is a
agent/tests/test_paper_trade_purity.py:110
↓ 4 callers
Function
_source
(path: Path)
agent/tests/test_local_loader_cache_identity.py:13
↓ 4 callers
Function
_spec_get
Read a derived-field spec entry from either a mapping or an object.
agent/backtest/loaders/fundamentals_loader.py:394
↓ 4 callers
Function
_sqlite_store
(tmp_path)
agent/tests/test_strategy_store.py:1150
↓ 4 callers
Method
_stall_watchdog
Fail the run when no forward progress happens for the stall timeout. A run can hang inside a tool or provider call without ever raising:
agent/src/agent/loop.py:1237
↓ 4 callers
Method
_status_error
(status: int, body: str)
agent/tests/test_mcp_client_adapter.py:839
↓ 4 callers
Function
_status_style
Return a consistent Rich color for status labels.
agent/cli/_legacy.py:380
↓ 4 callers
Method
_stop_typing
Stop typing indicator updates for a chat.
agent/src/channels/signal.py:1356
↓ 4 callers
Method
_stop_typing
Stop the typing indicator for a chat.
agent/src/channels/telegram.py:1580
↓ 4 callers
Function
_store
(args: argparse.Namespace)
agent/src/research_artifacts/cli_handlers.py:14
↓ 4 callers
Function
_store
(tmp_path: Path)
agent/tests/scheduling/test_memory_consolidation_job.py:57
↓ 4 callers
Function
_stream
(tmp_path: Path, content: str)
agent/tests/test_grounding_release.py:2118
↓ 4 callers
Method
_stream_key
Scope streaming buffers to the inbound message when available.
agent/src/channels/feishu.py:1103
↓ 4 callers
Method
_strike
Listed-style strike (1% of spot grid) whose |delta| is closest to target.
agent/src/skills/options-strategy/example_signal_engine.py:59
← previous
next →
2,301–2,400 of 26,887, ranked by callers