/* src/v2/data-ext.jsx — supplementary seeds used by macro & news rows.
   Fallback-only; rows fetch real data from TMT_API on mount. */

// Yield curve fallback (bps)
const YIELD_CURVE_SEED = [
  { tenor: '1M',  label: '1M',  y: 4.55 },
  { tenor: '3M',  label: '3M',  y: 4.48 },
  { tenor: '6M',  label: '6M',  y: 4.38 },
  { tenor: '1Y',  label: '1Y',  y: 4.28 },
  { tenor: '2Y',  label: '2Y',  y: 4.18 },
  { tenor: '5Y',  label: '5Y',  y: 4.22 },
  { tenor: '10Y', label: '10Y', y: 4.31 },
  { tenor: '30Y', label: '30Y', y: 4.52 },
];

// HY OAS recent history in percent, newest last (matches FRED BAMLH0A0HYM2 units).
// Display layer multiplies by 100 to render as bps.
const HY_OAS_SEED = [3.45, 3.42, 3.40, 3.38, 3.36, 3.32, 3.29, 3.25, 3.21, 3.18, 3.14, 3.09, 3.04, 2.98, 2.93, 2.89];

// VIX recent close history
const VIX_SEED = [15.8, 15.4, 15.0, 14.6, 14.3, 14.1, 14.0, 13.9, 13.8];

// CPI fallback — last 6 months, headline & core YoY %
const CPI_SEED = {
  headline: [
    { period: '2025-05', value: 3.3 },
    { period: '2025-06', value: 3.2 },
    { period: '2025-07', value: 3.1 },
    { period: '2025-08', value: 2.9 },
    { period: '2025-09', value: 2.8 },
    { period: '2025-10', value: 2.7 },
  ],
  core: [
    { period: '2025-05', value: 3.6 },
    { period: '2025-06', value: 3.5 },
    { period: '2025-07', value: 3.4 },
    { period: '2025-08', value: 3.3 },
    { period: '2025-09', value: 3.2 },
    { period: '2025-10', value: 3.2 },
  ],
};

// Sector ETF list (used by macro sector leaderboard)
const SECTOR_ETFS = [
  { sym: 'XLK',  name: 'Technology' },
  { sym: 'XLF',  name: 'Financials' },
  { sym: 'XLE',  name: 'Energy' },
  { sym: 'XLV',  name: 'Healthcare' },
  { sym: 'XLY',  name: 'Cons. Discr.' },
  { sym: 'XLP',  name: 'Cons. Staples' },
  { sym: 'XLI',  name: 'Industrials' },
  { sym: 'XLB',  name: 'Materials' },
  { sym: 'XLU',  name: 'Utilities' },
  { sym: 'XLRE', name: 'Real Estate' },
  { sym: 'XLC',  name: 'Comm. Svc.' },
];

// 13F CIKs for top-tier funds (used by scanners row)
const TOP_13F_FUNDS = [
  { cik: '0001029160', name: 'Bridgewater Associates' }, // Ray Dalio
  { cik: '0001336528', name: 'Renaissance Technologies' }, // Jim Simons
];

// Econ calendar fallback — next 7 days
const ECON_CAL_SEED = [
  { date: 'Tue', name: 'NVDA earnings',   imp: 'high',   time: 'AMC',        consensus: 'EPS $0.75' },
  { date: 'Wed', name: 'FOMC minutes',    imp: 'high',   time: '14:00 ET',   consensus: '—' },
  { date: 'Thu', name: 'Initial claims',  imp: 'med',    time: '08:30 ET',   consensus: '218K' },
  { date: 'Thu', name: 'Existing homes',  imp: 'med',    time: '10:00 ET',   consensus: '3.95M' },
  { date: 'Fri', name: 'Core PCE',        imp: 'high',   time: '08:30 ET',   consensus: '2.8% YoY' },
  { date: 'Fri', name: 'Durable goods',   imp: 'med',    time: '08:30 ET',   consensus: '+0.3%' },
];

Object.assign(window, {
  YIELD_CURVE_SEED, HY_OAS_SEED, VIX_SEED, CPI_SEED,
  SECTOR_ETFS, TOP_13F_FUNDS, ECON_CAL_SEED,
});
