From everything-claude-trading
- Analyzing term structure of interest rates for trading signals or macro assessment
npx claudepluginhub brainbytes-dev/everything-claude-tradingThis skill uses the workspace's default tool permissions.
- Analyzing term structure of interest rates for trading signals or macro assessment
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
Normal (Upward Sloping):
Inverted:
Flat:
Humped (Bear Flattener):
Pure Expectations Theory:
Liquidity Premium Theory:
Preferred Habitat Theory:
Spreads:
2s10s = 10Y yield - 2Y yield (most watched recession indicator)
2s30s = 30Y yield - 2Y yield (steeper, more sensitive to term premium)
3m10Y = 10Y yield - 3M T-bill yield (Fed's preferred recession indicator)
5s30s = 30Y yield - 5Y yield (long-end steepness)
Fed funds - 2Y = front-end tightness
Term Premium:
10Y yield = Expected average of short rates over 10 years + Term premium
Term premium drivers:
- Inflation uncertainty (higher uncertainty = higher premium)
- Supply of duration (more Treasury issuance = higher premium)
- Central bank holdings (QE reduces premium, QT increases it)
- Foreign demand (strong foreign demand compresses premium)
- Historically: -0.5% to +2.5% range; negative term premium from 2015-2021 due to QE
Key Rate Durations:
Bootstrapping:
Nelson-Siegel Model:
Spline Methods:
Bull Steepener (expect rate cuts, long end stable):
View: Fed will cut rates; front end rallies more than long end
Trade: Long 2Y futures, Short 10Y futures (duration-weighted)
DV01 ratio: 2Y DV01 / 10Y DV01 to equalize interest rate sensitivity
Profit if 2s10s spread widens (steepens)
Risk: if long end sells off more than front end (bear steepener)
Bear Flattener (expect rate hikes, long end anchored):
View: Fed tightening; front end sells off, long end anchored by slowing growth expectations
Trade: Short 2Y futures, Long 10Y futures (duration-weighted)
Profit if 2s10s spread narrows (flattens)
Risk: if curve steepens instead (growth surprises to upside)
Butterfly:
View: belly of curve is mispriced relative to wings
Trade: 2s5s10s butterfly
- Long wings (2Y and 10Y), Short belly (5Y)
- Or vice versa
Weighting: match DV01 so total portfolio duration is zero
Example: Long 1x 2Y, Short 2x 5Y, Long 1x 10Y (approximate weights)
Profit: if 5Y yield moves relative to interpolated 2Y-10Y line
Barbell vs bullet: butterfly trades express view on curvature
Models:
- NY Fed model: uses 3m10Y spread to estimate recession probability
Probit regression: P(recession in 12 months) = Phi(beta0 + beta1 * spread)
When 3m10Y inverts: ~30-40% recession probability
When 3m10Y at -100bps: ~60-80% recession probability
- 2s10s alternative: similar signal but historically less reliable than 3m10Y
Caveats:
- Lead time varies: 6-24 months from inversion to recession
- QE may distort term premium, making inversions less meaningful
- "This time is different" arguments emerge every cycle (and are usually wrong)
Scenario: 2s10s has been inverted at -80bps for 6 months
3-month T-bill: 5.25%, 2Y: 4.80%, 10Y: 4.00%
Fed signaling end of tightening cycle
Trade: Bull steepener
- Long 2Y Treasury futures (2 contracts, DV01 = $40/bp each)
- Short 10Y Treasury futures (1 contract, DV01 = $80/bp)
- Net DV01: zero (duration neutral)
Thesis: 2Y will rally more than 10Y as Fed pivots to cuts
Target: 2s10s moves from -80bps to 0bps
P&L: 80bps * $80 DV01 = $6,400 per unit
Risk: if Fed delays cuts and front end stays elevated
Stop: if 2s10s widens to -120bps (loss = $3,200 per unit)
Risk/reward: 2:1
Current yields: 2Y = 4.50%, 5Y = 4.70%, 10Y = 4.40%
5Y looks rich relative to wings
Implied 5Y rate from 2Y-10Y interpolation: 4.45%
5Y is 25bps above theoretical (butterfly spread = +25bps)
Historical average butterfly: +5bps
Trade: Sell the butterfly (short belly, long wings)
- Long 1x 2Y futures
- Short 2.2x 5Y futures
- Long 1x 10Y futures
- DV01 neutral overall
Target: butterfly normalizes to +5bps (20bps profit)
Stop: butterfly widens to +40bps (15bps loss)
Catalyst: front-end rally on dovish Fed, or long-end selloff on supply concerns
Signal analysis:
- 2s10s inverted 14 months ago (currently at -20bps, steepening)
- Historical pattern: equities peak 3-6 months after inversion
- Steepening from inversion = recession approaching (Fed about to cut)
- S&P 500 has been flat for 3 months (topping pattern?)
Framework:
- Phase 1: Curve inverts -> equities continue rising (6-18 months)
- Phase 2: Curve begins steepening from inversion -> equities peak
- Phase 3: Recession begins -> curve steepens aggressively -> equities decline 20-40%
- Phase 4: Recovery -> curve normalizes -> equities bottom
Current assessment: Late Phase 2. Reduce equity exposure.
Position for further steepening. Build cash for Phase 3 opportunities.
Before implementing curve trades, verify: