Files
Bu5hm4nn 9a3b835c95 feat(DATA-DB-004): add Databento settings UI and independent scenario config
- Updated backtests page with Data Source card
  - Data source selector (databento/yfinance/synthetic)
  - Dataset dropdown (XNAS.BASIC, GLBX.MDP3)
  - Resolution dropdown (ohlcv-1d, ohlcv-1h)
  - Cost estimate display (placeholder for now)

- Added Scenario Configuration card
  - Underlying symbol selector (GLD/GC/XAU)
  - Start/end date inputs
  - Start price input (0 = auto-derive)
  - Underlying units, loan amount, margin call LTV

- BacktestPageService updates:
  - get_historical_prices() with data_source parameter
  - get_cost_estimate() for Databento cost estimation
  - get_cache_stats() for cache status display
  - Support for injected custom provider identity
  - DataSourceInfo for provider metadata

- BacktestSettingsRepository integration:
  - Load/save settings per workspace
  - Default values from BacktestSettings.create_default()

- Test update: TLT validation message changed to reflect
  new multi-symbol support (GLD, GC, XAU)
2026-03-29 11:12:11 +02:00

23 lines
573 B
JSON

{
"settings_id": "3e5143f6-29da-4416-8fca-edeaaac986ae",
"name": "Backtest 2020-01-01 - 2023-12-31",
"data_source": "databento",
"dataset": "XNAS.BASIC",
"schema": "ohlcv-1d",
"start_date": "2020-01-01",
"end_date": "2023-12-31",
"underlying_symbol": "GLD",
"start_price": 0.0,
"underlying_units": 1000.0,
"loan_amount": 0.0,
"margin_call_ltv": 0.75,
"template_slugs": [
"protective-put-atm-12m"
],
"cache_key": "",
"data_cost_usd": 0.0,
"provider_ref": {
"provider_id": "synthetic_v1",
"pricing_mode": "synthetic_bs_mid"
}
}