{"uid":"cap_UxmKji8ACSoV5L2DxbYG0","slug":"stationfx-mortgage-rate-vs-10-year-treasury-spread-9b9c80de","name":"StationFX Mortgage Rate vs 10-Year Treasury Spread","description":"30-year fixed mortgage rate minus 10-year Treasury yield. Measures the premium mortgage lenders charge above the risk-free benchmark. Normal range 150-200bps; elevated spread signals lender risk aversion or MBS prepayment concerns. Pre-computed weekly from MORTGAGE30US and DGS10.","url":"https://stationfx.com/economic-data/cross-signal/mortgage-rate-vs-10y-treasury-spread?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http","description":"Always \"http\" for HTTP endpoints"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string","description":"HTTP method. Always GET for StationFX query endpoints"},"queryParams":{"type":"object","properties":{"fmt":{"enum":["json","toon"],"type":"string","description":"Response format. Use toon for compact agent-friendly output."},"fields":{"type":"string","description":"Comma-separated metric names"},"date_to":{"type":"string","description":"End date YYYY-MM-DD"},"date_from":{"type":"string","description":"Start date YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Response format. Always \"json\" (or \"toon\" if fmt=toon was requested)"},"example":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"Observation date YYYY-MM-DD"},"value":{"type":"number","description":"Raw observed value in series units"},"mom_pct":{"type":"number","description":"Month-over-month % change"},"yoy_pct":{"type":"number","description":"Year-over-year % change"},"zscore_5y":{"type":"number","description":"Z-score relative to trailing 5 years"},"mom_change":{"type":"number","description":"Month-over-month absolute change"},"yoy_change":{"type":"number","description":"Year-over-year absolute change"},"zscore_12m":{"type":"number","description":"Z-score relative to trailing 12 months"},"above_trend":{"type":"integer","description":"1 if value is above long-run trend, else 0"},"pct_rank_5y":{"type":"number","description":"Percentile rank over trailing 5 years (0-100)"},"rolling_3m_avg":{"type":"number","description":"3-month rolling average"},"rolling_12m_avg":{"type":"number","description":"12-month rolling average"},"trend_direction":{"type":"integer","description":"Trend: 1 rising, -1 falling, 0 flat"}}},"description":"Observations ordered by date ascending"},"meta":{"type":"object","description":"Series metadata: source_key (FRED series ID), units, frequency (D/W/M/Q/A), date_from, date_to, fields"}},"description":"Station f(x) response with metadata and pre-computed derived metrics"}}}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"Observation date YYYY-MM-DD"},"value":{"type":"number","description":"Raw observed value in series units"},"mom_pct":{"type":"number","description":"Month-over-month % change"},"yoy_pct":{"type":"number","description":"Year-over-year % change"},"zscore_5y":{"type":"number","description":"Z-score relative to trailing 5 years"},"mom_change":{"type":"number","description":"Month-over-month absolute change"},"yoy_change":{"type":"number","description":"Year-over-year absolute change"},"zscore_12m":{"type":"number","description":"Z-score relative to trailing 12 months"},"above_trend":{"type":"integer","description":"1 if value is above long-run trend, else 0"},"pct_rank_5y":{"type":"number","description":"Percentile rank over trailing 5 years (0-100)"},"rolling_3m_avg":{"type":"number","description":"3-month rolling average"},"rolling_12m_avg":{"type":"number","description":"12-month rolling average"},"trend_direction":{"type":"integer","description":"Trend: 1 rising, -1 falling, 0 flat"}}},"description":"Observations ordered by date ascending"},"meta":{"type":"object","description":"Series metadata: source_key (FRED series ID), units, frequency (D/W/M/Q/A), date_from, date_to, fields"}},"description":"Station f(x) response with metadata and pre-computed derived metrics"},"example":{"data":[{"date":"2024-01-01","value":5.33,"mom_pct":0,"yoy_change":0.5,"zscore_12m":1.2,"trend_direction":1}],"meta":{"frequency":"M","source_key":"SERIES_ID"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0KQsTjf7B-PWHjdWSYgCz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the pre-computed weekly spread between the 30-year fixed mortgage rate and the 10-year Treasury yield, with statistical enrichments like z-scores, percentile ranks, and rolling averages.","exampleAgentPrompt":"What's the current mortgage rate spread over the 10-year Treasury, and how does it compare historically — is it elevated relative to the past 5 years? Pull the data in JSON format for the last 12 months.","exampleUseCases":[{"title":"Detecting lender risk aversion spike","prompt":"Has the mortgage-Treasury spread spiked recently? Pull the last 6 months of data and tell me if the current spread is statistically elevated — show me the z-score and percentile rank relative to the past 5 years."},{"title":"Housing affordability macro briefing","prompt":"I'm putting together a macro housing affordability note — can you get me the weekly mortgage rate vs 10-year Treasury spread from 2023-01-01 to 2024-12-31 so I can see how the premium lenders charged evolved over that period?"},{"title":"Monitoring MBS prepayment risk signal","prompt":"Is the mortgage spread signaling MBS prepayment concerns right now? Show me the latest reading and whether it's above the long-run trend."}],"resultDescription":"Returns an array of weekly observations, each containing the spread value (30-year mortgage rate minus 10-year Treasury yield, in percentage points), along with enriched statistics: month-over-month and year-over-year absolute and percentage changes, 12-month and 5-year z-scores, 5-year percentile rank, 3-month and 12-month rolling averages, and an above-trend binary flag. Output is available in standard JSON or compact 'toon' format for agent consumption.","failureModes":["Invalid date format returns a 400 error","date_from after date_to results in empty data array or error","Requesting dates before available history returns empty or partial results","Invalid fmt enum value may return a 400 or default to json","Micropayment failure (x402) blocks response if USDC balance insufficient"],"whenToPreferThis":"Choose this endpoint when you need a pre-computed, statistically enriched time series of the mortgage-Treasury spread without having to source and subtract MORTGAGE30US and DGS10 yourself. It is superior to raw FRED data pulls when you need z-scores, percentile ranks, and trend flags already calculated. Ideal for macro dashboards, housing market alerts, and agent workflows that need to assess lender risk aversion or MBS market conditions on a weekly cadence.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:31:06.773Z","isFirstParty":false,"canonicalSlug":"stationfx-mortgage-rate-vs-10-year-treasury-spread-9b9c80de"}