Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
16,853 in github.com/HKUDS/Vibe-Trading
⨍
Functions
16,853
◇
Types & classes
2,089
↳
Endpoints
112
↓ 9 callers
Function
_provider
(payload: str = _RSS)
agent/tests/test_rsshub_events_provider.py:68
↓ 9 callers
Function
_readers
Build the three injected READ callables from fabricated snapshots.
agent/tests/test_runtime_reconcile.py:37
↓ 9 callers
Function
_reject_mixed_currency
Refuse a code set whose members do not settle in one currency. The shared capital pool holds a single scalar of cash and sums position values
agent/backtest/engines/composite.py:71
↓ 9 callers
Function
_request
(**kwargs)
agent/tests/test_openbb_bridge/test_context_injector.py:80
↓ 9 callers
Function
_reset_crumb
Clear the process-wide crumb cache so each test handshakes fresh.
agent/tests/test_yahoo_client.py:43
↓ 9 callers
Function
_rows_to_frame
Build the OHLCV frame from chart rows, clipped to the inclusive window. For daily-and-coarser intervals the DatetimeIndex is normalized to midnig
agent/backtest/loaders/yahoo_loader.py:128
↓ 9 callers
Function
_rule_with_rsi
( rsi_min: float, rsi_max: float, hour_min: int = 0, hour_max: int = 23, )
agent/tests/test_shadow_account.py:1669
↓ 9 callers
Function
_run
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, llm: Any, max_iterations: int = 5, )
agent/tests/test_agent_loop_content_filter.py:80
↓ 9 callers
Function
_run_dir
(base: Path)
agent/tests/test_autopilot_phase3.py:49
↓ 9 callers
Function
_seed
(directory: Path, filename: str = "record.json")
agent/tests/test_state_migration.py:10
↓ 9 callers
Function
_stub_panel
(monkeypatch: pytest.MonkeyPatch, n_rows: int = 80, n_cols: int = 8)
agent/tests/factors/test_bench_strict.py:221
↓ 9 callers
Function
_tool_call
(call_id: str, tool_name: str, **arguments: Any)
agent/tests/test_agent_grounding.py:150
↓ 9 callers
Function
_two_regime_series
Build a series alternating between a calm and a turbulent regime.
agent/tests/quantlib/test_timeseries.py:713
↓ 9 callers
Function
_write_factor_bundle
( run_dir: Path, name: str, ic_csv: str, summary: dict | None, group_equity_csv: str | Non
agent/tests/test_factor_api.py:20
↓ 9 callers
Function
_write_five_records
(path: Path)
agent/tests/test_governance.py:287
↓ 9 callers
Function
build_dcf_artifact
Wrap a completed :func:`~.dcf.run_dcf` call into a versioned artifact. ``capital_structure_basis``, ``discounting_convention``, ``terminal_va
agent/src/quantlib/valuation/artifact.py:691
↓ 9 callers
Function
calendarise_metric
Align one company's flow metric onto a comparable twelve-month footing. See the module docstring, section 2, for why this step exists and why
agent/src/quantlib/valuation/comps.py:230
↓ 9 callers
Function
christoffersen_independence
Test whether breaches cluster in time. Fits a first-order Markov chain to the breach sequence and tests the restriction that the two transiti
agent/src/quantlib/var_backtest.py:394
↓ 9 callers
Method
close_position
(self, config, **kwargs)
agent/tests/test_etoro_live_actions.py:26
↓ 9 callers
Function
compute_input_hash
Hash an arbitrary payload the same way ``build_*_artifact`` hashes inputs. Public mainly so the normalization scheme (:func:`_flatten` / :fun
agent/src/quantlib/valuation/artifact.py:518
↓ 9 callers
Method
create
Create and persist a new hypothesis. Args: title: Short hypothesis title. thesis: Research thesis or rationale.
agent/src/hypotheses/registry.py:158
↓ 9 callers
Function
enterprise_value
Bridge a known equity market value to enterprise value. EV = market_cap + total_debt - cash_and_equivalents + minority_interest
agent/src/quantlib/valuation/comps.py:388
↓ 9 callers
Function
escapeHtml
(value: string)
frontend/src/lib/escapeHtml.ts:16
↓ 9 callers
Function
expected_maximum_sharpe
Sharpe the best of ``n_trials`` reaches by luck alone. From the expected maximum of ``N`` independent Gaussians:: E[max] ~ std * [ (1 -
agent/src/quantlib/multipletesting.py:281
↓ 9 callers
Function
fetch_market_data_json
Fetch market data and return strict JSON.
agent/src/market_data.py:358
↓ 9 callers
Method
find_spec
(self, fullname, path=None, target=None)
agent/tests/test_openbb_bridge/test_registration_guard.py:25
↓ 9 callers
Function
fit_gpd_tail
Fit the loss tail with a generalised Pareto distribution (POT method). Extreme value theory says the exceedances over a high enough threshold
agent/src/quantlib/risk.py:430
↓ 9 callers
Method
handle_query
Yield ``openbb_ai`` SSE objects for an OpenBB ``QueryRequest``. Args: request: The parsed ``openbb_ai.models.QueryRequest``.
agent/src/openbb_bridge/adapter.py:82
↓ 9 callers
Function
historical_cvar
Conditional VaR (expected shortfall) from the empirical distribution. The average loss *given* that the VaR threshold was breached. Unlike VaR it
agent/src/quantlib/risk.py:218
↓ 9 callers
Method
index_entry
Upsert a memory entry into the index. Args: entry_id: 6-char hex identifier. title: Memory title. descrip
agent/src/memory/search_index.py:207
↓ 9 callers
Method
index_message
(self, session_id: str, role: str, content: str)
agent/tests/test_session_tool_trail.py:21
↓ 9 callers
Function
infer_market
Infer market key from a ticker symbol. Resolution order: 1. Crypto pair spellings (``BTC-USDT``, ``ETH/USD`` …). 2. Explicit exchange su
agent/backtest/correlation.py:19
↓ 9 callers
Function
is_sensitive_arg
Return whether a tool-argument / payload key name should be redacted. A key is sensitive when its normalized (stripped, lower-cased) form either
agent/src/tools/redaction.py:246
↓ 9 callers
Function
last_tick
Return a runner's last recorded heartbeat timestamp. Args: runner_id: The runner to read. Returns: The last-tick timestamp i
agent/src/live/runtime/liveness.py:103
↓ 9 callers
Function
linear_impact
Apply market impact proportional to the participation rate. Impact is ``impact_coeff * volume_traded / adv``. Marginal impact is constant, wh
agent/src/quantlib/impact.py:175
↓ 9 callers
Function
list_presets
Return summary info for all available presets, sorted by name. User presets (``~/.vibe-trading/swarm/presets/``) are listed alongside the bun
agent/src/swarm/presets.py:111
↓ 9 callers
Method
load
Load all persisted jobs. Returns: A dict mapping job id to job. Empty when the store has never been written.
agent/src/scheduled_research/store.py:85
↓ 9 callers
Function
load_config
Load Binance settings from ``~/.vibe-trading/binance.json``.
agent/src/trading/connectors/binance/sdk.py:185
↓ 9 callers
Function
load_config
()
agent/src/trading/connectors/dhan/sdk.py:153
↓ 9 callers
Function
load_config
()
agent/src/trading/connectors/shoonya/sdk.py:155
↓ 9 callers
Function
load_config
Load Alpaca settings from ``~/.vibe-trading/alpaca.json``.
agent/src/trading/connectors/alpaca/sdk.py:159
↓ 9 callers
Function
load_config
Load OKX settings from ``~/.vibe-trading/okx.json``.
agent/src/trading/connectors/okx/sdk.py:154
↓ 9 callers
Function
max_drawdown_analysis
Locate the worst peak-to-trough decline of an equity curve and its recovery. Args: equity: Net-value / equity series, strictly positive.
agent/src/quantlib/risk.py:250
↓ 9 callers
Function
memory_lock
Acquire exclusive file lock; yields True if acquired, False on timeout.
agent/src/memory/persistent.py:42
↓ 9 callers
Function
merton_model
Estimate default probability and credit spread from equity market data. Args: equity_value: Market capitalisation. equity_vol: An
agent/src/quantlib/credit.py:346
↓ 9 callers
Function
neutralize_special_tokens
Defang chat-template control tokens in untrusted external content. A zero-width space (U+200B) is inserted right after the opening delimiter
agent/src/security/scanner.py:117
↓ 9 callers
Function
paid_in_capital
Total capital drawn into the fund, as a positive magnitude. Args: series: The cash flows. contribution_kinds: Kind labels counted
agent/src/quantlib/fundmath.py:598
↓ 9 callers
Function
probabilistic_sharpe_ratio
Confidence that a strategy's true Sharpe exceeds a benchmark. ``PSR = Z[ (SR - SR*) * sqrt(T - 1) / sqrt(1 - g3*SR + (g4 - 1)/4 * SR^2) ]``
agent/src/quantlib/multipletesting.py:217
↓ 9 callers
Function
probability_of_backtest_overfitting
Combinatorially-symmetric cross-validation (CSCV) overfitting diagnostic. Splits the sample into ``n_splits`` contiguous subsets, then for every
agent/src/quantlib/multipletesting.py:445
↓ 9 callers
Function
rebalance_cost
Price one rebalance: capacity, then impact, then borrow. Args: target_weights: Desired weights, shorts negative. current_weights:
agent/backtest/factor_costs.py:297
↓ 9 callers
Method
reinforce
Update quality score based on usage feedback. Args: name: Memory entry name (exact match). event: One of "task_succes
agent/src/memory/lifecycle.py:112
↓ 9 callers
Method
run
Start a background task and return its task_id. Args: command: Shell command to execute. Returns: JSON strin
agent/src/tools/background_tools.py:110
↓ 9 callers
Method
run_gc
Run garbage collection on memory store. Args: dry_run: If True (default), log actions without modifying files. Returns:
agent/src/memory/lifecycle.py:183
↓ 9 callers
Function
safe_filename
Replace unsafe path characters with underscores.
agent/src/channels/utils.py:92
↓ 9 callers
Function
safe_path
Resolve `p` under `workdir` and ensure it stays inside. Args: p: User-supplied path (relative or absolute). ``~`` expansion is
agent/src/tools/path_utils.py:46
↓ 9 callers
Method
send
Send attachments first, then text.
agent/src/channels/qq.py:242
↓ 9 callers
Function
trip_halt
Trip the kill switch by writing a sentinel file. Writing is atomic (same-directory temp file + ``os.replace``) so a partial write can never l
agent/src/live/halt.py:72
↓ 9 callers
Function
truncate_tool_result
Cut an oversized tool result to ``limit`` characters and say so. A silent cut is indistinguishable from a complete answer, so the model repor
agent/src/config/limits.py:22
↓ 9 callers
Function
validate_generated
Static-check a generated signal_engine source. Checks: 1. ``ast.parse`` succeeds. 2. Module defines ``class SignalEngine``.
agent/src/shadow_account/codegen.py:117
↓ 9 callers
Function
win_rate_and_stats
Win rate and P&L statistics from completed trades. Args: trades: Completed round-trip trades. Returns: Dict with win_rate, p
agent/backtest/metrics.py:266
↓ 9 callers
Function
write_run_card
Write JSON and Markdown run cards for a backtest run. Args: run_dir: Directory where run_card.json and run_card.md are written. c
agent/backtest/run_card.py:25
↓ 8 callers
Function
_apply_filter
Filter DataFrame by a simple expression. Supports: - "YYYY-MM to YYYY-MM" or "YYYY-MM-DD to YYYY-MM-DD" (date range) - "symbol=XX
agent/src/tools/trade_journal_tool.py:361
↓ 8 callers
Function
_assert_host
Fail closed when the resolved host does not match the declared environment. The host is the authoritative discriminator: testnet keys cannot reac
agent/src/trading/connectors/binance/sdk.py:643
↓ 8 callers
Function
_assert_profile
Fail closed when the account does not match the declared environment.
agent/src/trading/connectors/tiger/sdk.py:591
↓ 8 callers
Function
_bar
(close: float = 100.0, pre_close: float | None = None)
agent/tests/test_india_equity_engine.py:29
↓ 8 callers
Function
_body
实体长度(绝对值)。 Args: o: 开盘价序列。 c: 收盘价序列。 Returns: 每根K线的实体长度。
agent/src/skills/candlestick/example_signal_engine.py:22
↓ 8 callers
Function
_body
Parse a JSON tool response.
agent/tests/test_file_tool_sandbox_security.py:16
↓ 8 callers
Function
_build_codex_token_storage
Build the Vibe-owned Codex token store. The path deliberately does not use oauth-cli-kit's default storage, because that backend imports and
agent/src/providers/openai_codex.py:94
↓ 8 callers
Function
_build_direct_agent
( tmp_path: Path, resolver_result: str, )
agent/tests/test_agent_grounding.py:154
↓ 8 callers
Function
_build_parser
Build the CLI parser with subcommands and compatibility flags.
agent/cli/_legacy.py:4782
↓ 8 callers
Function
_build_synthetic_dataset
Build data_map, signal_map, codes for testing.
agent/tests/test_signal_alignment_perf.py:68
↓ 8 callers
Method
_calc_equity
Total equity = free cash + sum(margin + unrealised) per position. Uses vectorized numpy path when _calc_pnl/_calc_margin are not over
agent/backtest/engines/base.py:1147
↓ 8 callers
Function
_capability
( tool_id: str = "tool_good", *, success_rate: float = 0.99, expected_cost: str = "1.0 credits
agent/tests/test_qveris_loader.py:93
↓ 8 callers
Function
_clear_environment
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_longbridge_credentials.py:25
↓ 8 callers
Method
_close_position
Close position, record trade, return capital.
agent/backtest/engines/base.py:1676
↓ 8 callers
Function
_collect
(agen)
agent/tests/test_openbb_bridge/test_adapter.py:79
↓ 8 callers
Function
_configured_api_key
Return the current API auth key, if configured. Resolves the ``VIBE_TRADING_API_KEY`` alias server-side via :func:`get_env_config` so both ``
agent/src/api/security.py:355
↓ 8 callers
Function
_create_test_database
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:76
↓ 8 callers
Function
_daily_index
(start: str = "2026-01-02", periods: int = 30)
agent/tests/test_shadow_account.py:1724
↓ 8 callers
Function
_etoro_overrides
Build override dict for eToro tools, including optional credential overrides.
agent/src/tools/trading_connector_tool.py:206
↓ 8 callers
Method
_execute_run
Core orchestration loop (runs in background thread). Steps: 1. Update run status to running 2. Initialize TaskStore,
agent/src/swarm/runtime.py:222
↓ 8 callers
Function
_fact_row
( end: str, filed: str, value: float, *, form: str = "10-Q", start: str | None = None,
agent/tests/test_fundamentals_pit.py:37
↓ 8 callers
Function
_facts
(concept_rows: dict[str, list[dict[str, object]]])
agent/tests/test_fundamentals_pit.py:26
↓ 8 callers
Method
_fetch_minutes
Intraday bars via stk_mins. Args: codes: Stock codes. start_date: Start date (YYYY-MM-DD). end_date: End
agent/backtest/loaders/tushare.py:325
↓ 8 callers
Function
_first
(obj: Any, names: tuple[str, ...], default: Any = None)
agent/src/trading/connectors/okx/sdk.py:650
↓ 8 callers
Function
_human
(text)
agent/tests/test_openbb_bridge/test_adapter.py:65
↓ 8 callers
Function
_is_a_share
(code: str)
agent/backtest/loaders/baostock_loader.py:23
↓ 8 callers
Function
_is_etf_listed
Detect exchange-listed ETF / LOF symbols (e.g. 510050.SH, 159915.SZ).
agent/backtest/loaders/_symbol_utils.py:12
↓ 8 callers
Function
_is_tool_success
Return True if the tool result does not look like an error response.
agent/src/agent/loop.py:562
↓ 8 callers
Function
_lens_text
Return the raw text of one lens file. Args: slug: Lens file stem, e.g. ``munger-inversion``. Returns: Raw markdown text.
agent/tests/test_investor_lenses_skill.py:82
↓ 8 callers
Function
_local_ms
Epoch-ms of a wall-clock time in an IANA zone (``fold=0`` = first occurrence).
agent/tests/test_scheduled_research_executor.py:25
↓ 8 callers
Function
_long_call_body
(**over: Any)
agent/tests/test_options_routes.py:38
↓ 8 callers
Function
_make_bar
( close: float = 5000.0, pre_close: float | None = None, pct_chg: float | None = None, open_:
agent/tests/test_global_futures_engine.py:33
↓ 8 callers
Function
_make_ohlcv_df
Build a minimal OHLCV DataFrame matching tushare's column layout.
agent/tests/test_tushare_loader.py:124
↓ 8 callers
Function
_make_store
(tmp_path: Path)
agent/tests/test_strategy_discovery_hard_gates.py:67
↓ 8 callers
Function
_mandate
()
agent/tests/test_etoro_live_actions.py:71
↓ 8 callers
Function
_normalize_tool_run_dir
Normalize ``run_dir`` in tool args to an absolute path when possible. If the model supplies a relative ``run_dir`` (for example ``"."`` or ``
agent/src/agent/loop.py:646
↓ 8 callers
Function
_ns
(**overrides)
agent/tests/test_alpha_bench_strict_cli.py:13
↓ 8 callers
Function
_obj_get
(obj: Any, name: str, default: Any = None)
agent/src/trading/connectors/alpaca/sdk.py:841
↓ 8 callers
Function
_overlapping_labels
Label i resolves `horizon` bars later, so labels overlap heavily.
agent/tests/quantlib/test_crossvalidation.py:25
← previous
next →
501–600 of 16,853, ranked by callers