backtest_portfolio
shallowkr.gronox/finbridge · Verify this server
Backtest a fixed-weight KR or US portfolio on daily data from the local finbridge.db (stocks are corporate-action adjusted; US stocks are total-return where SEC-reported dividends exist). ETFs are PRICE-RETURN ONLY in every market (no distributions). Detected US ETF splits are adjusted, but coverage is not exhaustive; unexplained jumps and long gaps are refused. US history starts 2023-03-28, so earlier start dates are clipped. Pure historical simulation — no forecasts. Account storage: when connected to an account, this call automatically saves its inputs and summary as a new run. Repeating it creates another run. Only the newest 200 runs are kept; saving beyond that limit deletes older runs and their trade logs. No brokerage order is placed. Args: - assets: 1-15 of {symbol, weight}. symbol = KR 6-digit code ('005930'), US ticker ('AAPL', 'SPY'), or a company/ETF name. Weights are normalized to sum 1. - from (required, YYYY-MM-DD), to (default: today). Start is clipped to the latest asset inception date (noted). - rebalance: 'none'|'monthly'|'quarterly'|'yearly' (default 'yearly') — rebalanced at the close of the first trading day of each new period. - currency: 'USD' (default) | 'KRW' — reporting currency; assets in the other currency are converted daily (USDKRW, FRED DEXKOUS). - initial: starting value in the report currency (default 10000). Returns: {period, currency, rebalance, assets[](weight_pct, first_date, dividend_adjusted, converted), metrics{total_return_pct, cagr_pct, vol_annual_pct, sharpe, mdd_pct, mdd_peak_date, mdd_trough_date, best_year, worst_year}, annual_returns[], equity_curve[](sampled, JSON only), notes[]}. Examples: - Samsung + KODEX 200 70/30: {assets:[{symbol:'005930',weight:0.7},{symbol:'069500',weight:0.3}], from:'2021-01-01', currency:'KRW'} Use when: "what if I invested in X portfolio since YYYY" questions, comparing allocations, drawdown/volatility analysis. Don't use for: single-stock history (get_stock_prices), stock screening (screeners), or rule-based strategy backtests with entry/exit signals (use the web studio's strategy replay). analyze_factors measures whether a ranking signal separates future returns. Errors: unknown/ambiguous symbol -> candidates list; missing price history -> source-limit hint; <60 overlapping trading days -> range too short; long price-series gaps or unexplained US jumps -> inconsistent-series error. Notes: Simulation on historical data — not investment advice. Commission, one-way slippage and sell-side tax ARE deducted on the initial purchase and every rebalance (set costs=false for a gross view); dividends on KR stocks and all ETFs are not. KR stocks are price-return only (no distributions). US stocks are total-return where SEC-reported dividends exist (see dividend_adjusted per asset; ex-dates are approximated by fiscal-quarter end), otherwise price-return. ⚠ETFs are price-return only in every market right now — distributions are not in the data, so bond, REIT and high-dividend ETFs are understated. US ETF splits use a separate detection and adjustment path with limited ratio coverage; adjustments are not exhaustive. This backtest refuses unexplained US price jumps and long gaps rather than calculating a return across an inconsistent series.
1 trials · measured 73 days ago
backtest_portfolio scores 100.0/100 on Vouch's measured behaviour index, from 1 real invocation trials against kr.gronox/finbridge, measured 11 Sept 2026 under methodology v0.2.0. Every measured component scored 100.
Component breakdown
| Component | Weight | Value |
|---|---|---|
| Reliability | 35% | not applicable |
| Schema integrity | 25% | 100.0 |
| Failure behaviour | 15% | not applicable |
| Latency | 15% | not applicable |
| Concurrency | 10% | not applicable |
Tool details
- Transport
- remote
- Credential class
- gated
- Input schema
- not declared
- Output schema
- not declared
- Side-effect classification
- unclassified
Score history
| Day | Score | Tier | Methodology |
|---|---|---|---|
| 2026-09-11 | 100.0 | shallow | v0.2.0 |
Probe evidence
| Probe | Outcomes |
|---|---|
| schema_integrity | pass: 1 |
Raw request/response logs are not archived yet — the outcome counts above are drawn directly from every recorded trial.
Embed this score
Available for every tool, scored or not — not a verification perk. Always links back to this page.
[](https://vouch.tools/tools/01bdf00f-ce60-4249-9c8f-09af8ba8f226)