2s10s Went +72bp to +31bp in 2026: Reading a Bear-Flattener as a Quant Feature

The 2s10s Treasury spread opened 2026 at +0.72pp on 2026-01-02 and closed the period at +0.31pp on both 2026-10-22 and 10-23 — roughly a 41bp compression in under ten months. Negative 2s10s days in 2026 through 10-23 number zero. The one-number answer: the curve flattened because the 2Y rose more than the 10Y, a front-end-led bear flattener, and it is straightforward to encode as a pandas feature.

E-E-A-T note: All figures below come from FRED primary series fetched 2026-10-24: the 2s10s spread, 2Y yield, 10Y yield, CPI, and effective fed funds. This analysis uses FRED primary data; we did not run a live trading test, backtest, or any strategy evaluation. Nothing here is a prediction.

What the 2026 numbers actually show

The 2s10s spread stayed positive for every trading day of 2026 through 10-23 while compressing from +0.72pp to +0.31pp. The full T10Y2Y timeline: +0.72pp on 01-02, the 2026 high of +0.74 on 01-30, +0.58 on 03-02, +0.42 on 06-01, +0.40 on 09-01, the 2026 low of +0.20 on 09-21, a rebound to a +0.51 peak on 10-07, +0.44 on 10-09, and +0.31 on both 10-22 and 10-23. The compression was not monotonic — September marked the tightest point, followed by a partial re-steepening and renewed flattening into late October.

Why it’s a bear-flattener: decomposing the move

A flattening move where both yields rise is a bear flattener; the 2026 data fits that label cleanly. The 2Y went 3.47% (01-02) → 4.05% (06-01) → 4.39% (09-01) → 4.79% (10-20) → 4.65% (10-22), while the 10Y went 4.19% → 4.47% → 4.79% → 5.12% → 4.96% over the same dates. The 2Y rose more than the 10Y (+118bp vs +77bp from 01-02 to 10-22), so the front end led the move — the defining signature of a front-end-led bear flattening rather than a bull flattening driven by long-end rallies.

The macro backdrop, kept in its lane

Inflation peaked in May and then eased. CPI YoY ran 2.39% (Jan), 4.17% (May), 3.46% (Jun), 3.30% (Jul), 3.35% (Aug), 3.72% (Sep), computed from the seasonally adjusted index levels (FRED has no October 2025 value in this series, which does not affect 2026 YoY). The effective fed funds monthly average held at 3.63-3.64% from January through August, then moved to 3.75% in September, a single month of change. The 2Y climbing faster than the 10Y is directionally consistent with that policy-rate path, but the data here supports no causal or forward-looking claim.

Building the feature in Python

You can turn the raw spread into a compact feature set with a few pure-pandas functions. The pipeline below loads FRED CSVs directly, computes the spread, derives momentum and normalization features plus a front-end-leadership flag, and applies a rule-based regime label. No returns, no backtest — just deterministic transforms you can drop into any feature store.

import pandas as pd
import numpy as np

FRED = "https://fred.stlouisfed.org/graph/fredgraph.csv?id={}"

def load_fred_series(series_id: str) -> pd.Series:
    """Load one FRED series via the CSV endpoint. '.' marks missing data."""
    df = pd.read_csv(FRED.format(series_id), index_col=0, parse_dates=True)
    s = pd.to_numeric(df.iloc[:, 0].replace(".", np.nan), errors="coerce")
    return s.rename(series_id).dropna()

def compute_spread(dgs10: pd.Series, dgs2: pd.Series) -> pd.Series:
    """2s10s spread in percentage points: DGS10 - DGS2."""
    df = pd.concat([dgs10, dgs2], axis=1).dropna()
    return (df["DGS10"] - df["DGS2"]).rename("spread_2s10s")

def spread_features(spread: pd.Series, window: int = 20) -> pd.DataFrame:
    """Momentum, normalization, and front-end leadership flag."""
    out = pd.DataFrame({"spread": spread})
    out["chg_20d"] = spread.diff(window)          # 20-day change in pp
    mu = spread.rolling(window).mean()
    sd = spread.rolling(window).std()
    out["z_20d"] = (spread - mu) / sd             # rolling z-score
    out["front_led"] = (out["chg_20d"] < 0).astype(int)  # 1 = flattening press
    return out.dropna()

def label_regimes(f: pd.DataFrame) -> pd.DataFrame:
    """Rule-based regime label from spread level and 20-day change."""
    f = f.copy()
    f["regime"] = np.select(
        [
            (f["spread"] > 0) & (f["chg_20d"] < 0),   # positive & flattening (spread-only; not a bear-flattener without yield data)
            (f["spread"] > 0) & (f["chg_20d"] >= 0),  # positive & steepening
            (f["spread"] <= 0),                       # flat/negative level
        ],
        ["flattening", "steepening", "flat_or_inverted"],
        default="unknown",
    )
    return f

# Demo over 2026-01-01 to 2026-10-22 (last DGS2/DGS10 date)
dgs2 = load_fred_series("DGS2")
dgs10 = load_fred_series("DGS10")
spread = compute_spread(dgs10, dgs2)
feats = label_regimes(spread_features(spread))
demo = feats.loc["2026-01-01":"2026-10-22"]
print(demo.tail())

A few design notes: load_fred_series treats FRED’s "." sentinel as NaN so holidays and publication gaps don’t poison the rolling windows. chg_20d is a rolling 20-day change (+0.05pp on the last row); the -0.41pp move from 01-02 to 10-22 is a full-period figure, not a diff(20) output. Window length changes the label: the demo’s last rows print “steepening” because their 20-day window starts from the late-September low, so a 20-day rule and a 9-day read of the same October move can disagree. z_20d normalizes the level so regime rules stay comparable across years. The front_led flag here is a spread-only proxy; a stricter version joins DGS2 and DGS10 changes and checks whether the 2Y’s 20-day change exceeds the 10Y’s, which is the more faithful decomposition of the front-end-led move described above.

What the spread does NOT tell you

This feature describes curve shape and its momentum, nothing more. The 2026 facts above contain zero negative 2s10s days, so any code path keyed to “inversion” simply never triggers this year — and nothing in the data supports recession-signal, inversion-warning, or predictive interpretation. The spread says nothing about Fed decision outcomes or future policy timing; the fed funds average moving to 3.75% in September is a realized value, not a forecast input. Treat regime as a descriptive label over realized data, not a trading signal.

FAQ

Is a positive-but-compressing 2s10s the same as an inversion?

No. Inversion means the spread crosses below zero. In 2026 through 10-23, the spread never went negative — its low was +0.20pp on 2026-09-21 per T10Y2Y. Compression toward zero and actual inversion are different states, and your feature pipeline should encode them separately.

Why call it a “bear” flattener if the spread just got smaller?

Because both legs of the curve rose while the spread narrowed. The 2Y climbed from 3.47% to 4.65% and the 10Y from 4.19% to 4.96% between 01-02 and 10-22, with the 2Y rising more. “Bear” refers to the direction of yields, “flattener” to the curve shape change.

Can I use this feature in a model without a backtest?

You can construct and version it, but any performance claim requires evaluation we did not perform here. This analysis uses FRED primary data; we did not run a live trading test. Build the features, validate data quality, and run your own rigorously controlled research before drawing strategy conclusions.

Closing: how to keep tracking this

Pin the five FRED series — T10Y2Y, DGS2, DGS10, CPIAUCSL, FEDFUNDS — into a scheduled fetch, store the raw values unrounded, and recompute the feature frame daily. The pipeline above is idempotent and dependency-light, so it slots into an Airflow or cron job with minimal glue. Re-verify against FRED primary values on each refresh, and log the spread level, 20-day change, and regime label as your compact audit trail of the 2026 bear flattener.

← Back to all posts