Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
30,405 in github.com/HKUDS/Vibe-Trading
⨍
Functions
30,405
◇
Types & classes
3,299
↳
Endpoints
266
↓ 14 callers
Function
convert_additive_to_multiplicative
Convert an additive qfq frame to the multiplicative convention. Args: raw: Unadjusted OHLCV bars (``close`` required), ascending date ind
agent/backtest/loaders/additive_conversion.py:103
↓ 14 callers
Function
create
(service, **kwargs)
agent/tests/test_paper_accounts.py:51
↓ 14 callers
Method
create_attempt
Create an execution attempt. Args: attempt: Attempt whose session and attempt IDs identify its record. Returns:
agent/src/session/store.py:254
↓ 14 callers
Function
evaluate_case
Evaluate one case without invoking an LLM, tool, or network client.
agent/evals/harness/runner.py:21
↓ 14 callers
Function
expiry_payoff
Calculate an expiry payoff curve and analytic risk summary. Premiums are pinned at entry. An explicit per-share premium wins over the Black-S
agent/backtest/options_payoff.py:276
↓ 14 callers
Method
forward
(event_type: str, data: dict[str, Any])
agent/src/tools/spawn_agent_tool.py:571
↓ 14 callers
Function
freeze_run
Copy verified engine inputs and strategy, retaining every exported field. Args: run: Completed source run. destination: New exper
agent/src/research_lab/execution.py:76
↓ 14 callers
Function
get_env_value
Read a dynamically named environment value through the config layer. Most application settings should use typed :class:`EnvConfig` fields. Th
agent/src/config/accessor.py:141
↓ 14 callers
Function
get_json
Issue a throttled Eastmoney GET and decode the body as JSON. Args: url: Fully-qualified Eastmoney endpoint URL. params: Query par
agent/backtest/loaders/eastmoney_client.py:106
↓ 14 callers
Function
get_limit_status
Look up one symbol-day: table-first, heuristic fallback, provenance. ``prev_close`` is only needed on the heuristic path (the ``stk_limit`` t
agent/src/tools/paper_trade/limits_cn_a.py:149
↓ 14 callers
Function
historical_var
Value at Risk from the empirical distribution of past returns. Makes no distributional assumption: it simply reads the loss off the sorted sa
agent/src/quantlib/risk.py:147
↓ 14 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:210
↓ 14 callers
Function
list_playbooks
Load every available playbook, sorted by slug. A slug found in an earlier directory shadows the same slug later, so a user file overrides the
agent/src/scheduled_research/playbooks.py:377
↓ 14 callers
Function
list_profiles
Return built-in profiles plus operator-installed local read-only plugins. Returns: The built-in profiles, followed by the profile of ever
agent/src/trading/profiles.py:63
↓ 14 callers
Function
load_config
Load Trading 212 settings from ``~/.vibe-trading/trading212.json``.
agent/src/trading/connectors/trading212/sdk.py:139
↓ 14 callers
Function
normalize_date
Coerce a supported date input to a plain ``datetime.date``. ``datetime`` instances are truncated to their date, because a cash flow settles o
agent/src/entities/models.py:95
↓ 14 callers
Method
optimize
Apply optimizer to position weights. Args: ret: Return matrix (dates x codes). For a decision at ``dt``, only row
agent/backtest/optimizers/base.py:36
↓ 14 callers
Function
parse_file
End-to-end: load file, detect format, parse. Args: path: File path. Returns: (format_name, records). Falls back to generic i
agent/src/tools/trade_journal_parsers.py:738
↓ 14 callers
Function
period_returns
Per-bar returns seeded with the pre-first-bar cash mark. The account holds ``initial_cash`` before the first recorded bar, so the first retur
agent/backtest/metrics.py:594
↓ 14 callers
Function
prices
(codes)
agent/tests/test_alpha_bench_nifty100.py:54
↓ 14 callers
Function
redact_internal_paths
Replace internal root prefixes with '<redacted>', keep relative tail. Every occurrence of an internal root is replaced when it ends at a real
agent/src/tools/redaction.py:232
↓ 14 callers
Function
resolve_longbridge_credentials
Resolve credentials atomically from environment or the legacy runtime file.
agent/src/trading/connectors/longbridge/credentials.py:49
↓ 14 callers
Method
send_message
(self, sid, content, **kw)
agent/tests/test_api_live_runtime.py:846
↓ 14 callers
Function
ts_argmin
Rolling argmin (0-based index into the window), warmup → NaN. Uses ``bottleneck.move_argmin`` when available (~350x faster). Correction: ``bn
agent/src/factors/base.py:351
↓ 14 callers
Function
useChartLifecycle
( ref: RefObject<HTMLDivElement | null>, buildOption: () => EChartsCoreOption, deps: readonly unknown[],
frontend/src/hooks/useChartLifecycle.ts:18
↓ 14 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:390
↓ 14 callers
Function
zscore_by_group
Per-row within-group z-score (axis=1 groups, sample std, ddof=1). The z-scoring sibling of the per-row sector demean the industry-neutralized
agent/src/factors/base.py:99
↓ 13 callers
Function
_bar
(close: float = 100.0, pre_close: float | None = None, open_: float | None = None)
agent/tests/test_korea_equity_engine.py:37
↓ 13 callers
Method
_calc_margin
Margin (collateral) required for a position. ``abs(price)`` so collateral stays positive when the entry price is negative; for the us
agent/backtest/engines/base.py:958
↓ 13 callers
Function
_check
(ledger: GroundingLedger, ref: str, written: str = "12.5")
agent/tests/test_grounding_unknown_call_id_refs.py:34
↓ 13 callers
Function
_client
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_attribution_api.py:28
↓ 13 callers
Function
_collect
(root, monkeypatch, task_id="collect")
agent/tests/test_swarm_selected_inputs.py:105
↓ 13 callers
Function
_compute_forward_returns
Forward simple returns over ``horizon`` bars, aligned to the factor timestamp. ``horizon=1`` keeps the historical next-bar formula byte-for-byte.
agent/src/tools/alpha_bench_tool.py:1236
↓ 13 callers
Function
_consume
(root: Path, sources: dict[str, str])
agent/tests/test_swarm_produced_file_handoff.py:64
↓ 13 callers
Function
_edit
Run edit_file against ``notes.md`` in ``run_dir`` and parse the envelope.
agent/tests/test_edit_file_tool.py:24
↓ 13 callers
Function
_facts
Wrap unit rows in the companyfacts envelope shape.
agent/tests/test_sec_period_frames.py:42
↓ 13 callers
Function
_frame
(rows: list[dict[str, Any]])
agent/tests/test_industry_loader.py:53
↓ 13 callers
Function
_frame
(rows: list[tuple[str, float]])
agent/tests/test_paper_trade_rejections.py:58
↓ 13 callers
Function
_hengrui_candidates
()
agent/tests/test_grounding_resolution_context.py:34
↓ 13 callers
Function
_internal_job
( job_id: str = "slow", *, callable_name: str = "test.slow", schedule: str = "1000", next_
agent/tests/scheduling/test_internal_dispatch.py:37
↓ 13 callers
Function
_ledger
( tmp_path: Path, payload: dict, tool: str = "account_summary" )
agent/tests/test_grounding_unit_and_scanner_gaps.py:25
↓ 13 callers
Function
_live_env
Sandbox the runtime root and the module-level runner registries.
agent/tests/test_api_live_runtime.py:304
↓ 13 callers
Function
_measure_usage
Normalize provider usage or estimate from character counts.
agent/src/swarm/node.py:101
↓ 13 callers
Function
_patch_ddgs
(monkeypatch, text_impl)
agent/tests/test_web_search_tool.py:36
↓ 13 callers
Function
_payload
(**overrides)
agent/tests/test_paper_trade_tool.py:118
↓ 13 callers
Function
_profile
(rule: ShadowRule)
agent/tests/test_shadow_account.py:2294
↓ 13 callers
Function
_propose
Run the propose tool and return the parsed proposal payload.
agent/tests/test_consent_commit.py:60
↓ 13 callers
Function
_remote_client
Return a TestClient that simulates a non-loopback caller.
agent/tests/test_security_auth_api.py:17
↓ 13 callers
Function
_rolling_correlation_matrix
Compute correlation matrix for multiple price series. Args: price_series: Mapping of asset code -> DataFrame with a ``close`` column.
agent/backtest/correlation.py:176
↓ 13 callers
Function
_row
(strategy_id, regime, **overrides)
agent/tests/test_strategy_discovery_facade.py:180
↓ 13 callers
Function
_rows_to_frame
Convert Tiingo's per-day records into the normalized OHLCV frame. Prefers Tiingo's adjusted OHLC (``adjOpen``/``adjHigh``/``adjLow``/ ``adjCl
agent/backtest/loaders/tiingo_loader.py:164
↓ 13 callers
Method
apply
Apply settings to the process for future client construction. Args: updates: Settings to set. An empty value clears the correspon
agent/src/providers/settings.py:293
↓ 13 callers
Method
bind_tools
(self, tools)
agent/tests/test_swarm_output_contract.py:473
↓ 13 callers
Function
boolean_argument
Parse an optional boolean without treating non-empty strings as true. Args: value: Boolean, null, zero/one, or an explicit boolean spelli
agent/src/tools/_arguments.py:9
↓ 13 callers
Method
build_system_prompt
Build the stable prompt from skill summaries, static instructions and the memory snapshot. Args: user_message: User message (kept
agent/src/product/context.py:175
↓ 13 callers
Method
cancel
Ask the kernel to stop this run. Returns: Whether a cancel signal was delivered. False once the run ended, so a finis
agent/vibe_trading/client.py:236
↓ 13 callers
Method
clear
Clear all issued tokens.
agent/src/channelsui/gateway_services.py:44
↓ 13 callers
Method
close
(self)
agent/src/tools/paper_trade/strategy_process.py:59
↓ 13 callers
Method
compare_revisions
Compare two revisions that must belong to the same series.
agent/src/research_artifacts/store.py:343
↓ 13 callers
Method
emit
(self, record: logging.LogRecord)
agent/tests/scheduling/test_kernel_sleep_hint.py:244
↓ 13 callers
Method
ensure
Return an existing connection, creating it when absent. Args: connection_id: Identifier to resolve or create. profile
agent/src/trading/connections.py:259
↓ 13 callers
Method
export_series
Render the complete immutable series without adding volatile metadata.
agent/src/research_artifacts/store.py:392
↓ 13 callers
Method
fetch
(self, codes, start, end, *, interval="1D", adjustment=None)
agent/tests/test_market_data_raw_adjustment.py:444
↓ 13 callers
Function
fetch_market_data_json
Fetch market data and return strict JSON. When no requested symbol returned data the envelope says so with ``status: error``: a bare ``{"_unr
agent/src/market_data.py:760
↓ 13 callers
Function
fixed_slippage
Apply a constant basis-point slippage to a fill price. The cheapest model, and adequate whenever the order is small enough that it does not m
agent/src/quantlib/impact.py:183
↓ 13 callers
Function
handler
(request: httpx.Request)
agent/tests/test_llm.py:546
↓ 13 callers
Method
index_message
(self, session_id: str, role: str, content: str)
agent/tests/test_cli_conversation.py:48
↓ 13 callers
Method
login
Perform channel-specific interactive login (e.g. QR code scan). Args: force: If True, ignore existing credentials and force re-au
agent/src/channels/base.py:66
↓ 13 callers
Function
migrate_legacy_state
Move legacy code-relative state directories under the runtime root. Idempotent: once a legacy entry has been moved (or was never there), late
agent/src/config/migrate.py:114
↓ 13 callers
Function
normalise_option_type
Fold an option-type string to ``"call"`` or ``"put"``. Public because callers that *store* an option type must fold it with the same rule the
agent/src/quantlib/options.py:122
↓ 13 callers
Function
registry_with_reader
()
agent/tests/test_result_artifacts.py:43
↓ 13 callers
Method
render
Build the dashboard rows for the current terminal width. Returns: Rich Group containing recent step details and either ongoing ac
agent/cli/ui/rail.py:466
↓ 13 callers
Function
resample_bars
Aggregate daily bars into ``interval`` bars. Each bar is stamped with the last trading day inside its period, which is when its close becomes
agent/backtest/loaders/base.py:397
↓ 13 callers
Function
resolve
(name)
agent/src/data_gateway/isolated.py:117
↓ 13 callers
Function
resolve_final_status
Select the terminal run status and any state update it requires. Args: inputs: Run facts used to resolve stop conditions, partial output,
agent/src/product/outcome.py:49
↓ 13 callers
Function
resolve_safe_path
Resolve a file path under run_dir with fallback to allowed roots. Args: file_path: Relative or absolute path (supports tilde expansion).
agent/src/tools/path_utils.py:244
↓ 13 callers
Function
retry_with_budget
Call ``fn`` with a bounded retry budget on declared transient errors. Between attempts sleeps ``min(backoff[attempt], remaining_budget)`` so a
agent/backtest/loaders/base.py:507
↓ 13 callers
Method
rows
(self, session_id: str)
agent/tests/test_cli_conversation.py:174
↓ 13 callers
Method
run
Resume verified chunks; bounded retries preserve all completed work.
agent/src/data_gateway/history_store.py:521
↓ 13 callers
Method
run
(self, **kwargs)
agent/tests/test_session_service_lifecycle.py:594
↓ 13 callers
Method
run
Create a session, send one message and wait for the result. Args: text: User message. title: Title of the new session
agent/vibe_trading/client.py:462
↓ 13 callers
Function
run_validation
Run configured validation checks. Reads from config["validation"]: - monte_carlo: {n_simulations, seed} - bootstrap: {n_bootstrap, co
agent/backtest/validation.py:363
↓ 13 callers
Function
scenario
()
agent/tests/test_session_service_lifecycle.py:74
↓ 13 callers
Method
send
(self, _prompt)
agent/tests/test_copilot_provider.py:243
↓ 13 callers
Method
start
(self, job, *, _automatic=False)
agent/src/data_gateway/history_store.py:434
↓ 13 callers
Method
stats
Report actual disk and RAM occupancy without quote contents.
agent/src/data_gateway/cache.py:146
↓ 13 callers
Method
to_openai_schema
Convert the tool definition to OpenAI function calling format. Returns: A function definition with the tool's name, description,
agent/src/agent/tools.py:62
↓ 13 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
↓ 13 callers
Function
tw_price_limits
Return the (upper, lower) limit prices for reference price *ref*. The ceiling is ``ref x (1 + band)`` floored, and the floor is ``ref x (1 -
agent/backtest/engines/taiwan_equity.py:220
↓ 13 callers
Method
update_status
Update task status and additional fields. Args: task_id: ID of the task to update. status: New task status.
agent/src/swarm/task_store.py:74
↓ 12 callers
Function
_agent
(tmp_path, callback=None)
agent/tests/test_llm_cost_accounting.py:35
↓ 12 callers
Function
_analyze
A producer that observes, computes metrics.json with a recorded command and writes a draft.
agent/tests/test_swarm_selected_inputs.py:112
↓ 12 callers
Function
_bars
(closes)
agent/tests/test_alpha_bench_qfq.py:24
↓ 12 callers
Function
_base_manifest_kwargs
()
agent/tests/test_governance.py:79
↓ 12 callers
Function
_build_dcf_artifact
(inputs: dict | None = None, *, generated_at: datetime = FIXED_TIME)
agent/tests/quantlib/valuation/test_artifact.py:112
↓ 12 callers
Function
_buy
(limit: float | None = None, qty: float = 100)
agent/tests/test_paper_trade_5m_partial_fills.py:203
↓ 12 callers
Function
_client
(tmp_path: Path, monkeypatch)
agent/tests/test_factor_api.py:15
↓ 12 callers
Method
_ctx
(self, n_assets: int = 5, seed: int = 42)
agent/tests/test_turnover_aware_optimizer.py:209
↓ 12 callers
Function
_diagnose
(observations, **kwargs)
agent/tests/quantlib/test_surface_diagnostics.py:48
↓ 12 callers
Function
_document
(**overrides)
agent/tests/test_paper_trade_reconcile.py:41
← previous
next →
601–700 of 30,405, ranked by callers