đ” US Treasury Yields & Bond Data â Curve, 2s10s, Spreads
Pricing
from $100.00 / 1,000 yield records
đ” US Treasury Yields & Bond Data â Curve, 2s10s, Spreads
Track US Treasury yield curve from 1M to 30Y â daily yields, spreads, 2s10s curve inversion, historical changes. FRED + Treasury.gov public data for fixed income desks, asset allocators, macro hedge funds, treasury teams. Bloomberg yield curve alternative, no terminal needed. Pay-per-result.
Pricing
from $100.00 / 1,000 yield records
Rating
0.0
(0)
Developer
NexGenData
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Share
The Bloomberg yield curve, without the Bloomberg terminal. Daily US Treasury constantâmaturity yields from 1âMonth to 30âYear, sourced live from FRED (Federal Reserve Bank of St. Louis) and the U.S. Treasury Department â packaged with rolling 1âday / 1âweek / 1âmonth / yearâtoâdate change context, curveâsegment tags (short / belly / long), the 2s10s spread, and an inverted flag so you can wire curveâinversion alerts straight into your pipeline.
đ Sample Output
If you trade rates, allocate across asset classes, run a corporate treasury, manage pension liabilities, or build macro dashboards, this actor is your lowâcost, programmatic alternative to Bloomberg <GC>, Refinitiv Eikon, FactSet, or scraping Treasury.gov yourself.
Who this is for
- Fixedâincome desks â daily markâtoâmarket against the official Treasury constantâmaturity curve, plus preâcomputed yieldâchange deltas in basis points.
- Asset allocators & macro hedge funds â 2s10s, curveâsegment exposure, inversion signal â all in one row.
- Pension funds and LDI teams â longâend yields (20Y / 30Y) for liability discounting, no terminal seat required.
- Corporate treasury teams â benchmark rates for floatingârate debt, intercompany loans, and discountârate disclosures.
- Quant researchers / academics â full daily history per tenor, programmatic access, deterministic schema.
- AI / agent builders â drop the dataset into an MCP server, RAG store, or scheduled Slack digest.
What you get â schema
Every row in the dataset has the following fields:
| Field | Type | Example | Meaning |
|---|---|---|---|
instrument | string | US Treasury 10-Year Constant Maturity | Friendly instrument name. |
tenor | string | 10Y | Standard tenor label (1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y). |
tenor_years | number | 10.0 | Tenor expressed in years (fractions for 1M/3M/6M). |
yield_pct | number | 4.38 | Annualized yield, percent. |
as_of_date | string | 2026-05-08 | Observation date (ISOâ8601). |
price | number / null | null | Clean price when available â FRED publishes yields, so this is null for constantâmaturity series. |
change_bps_1d | number / null | -3.0 | Change vs. prior business day, in basis points. |
change_bps_1w | number / null | +8.0 | Change vs. one week prior. |
change_bps_1m | number / null | +12.0 | Change vs. one month prior. |
change_bps_ytd | number / null | +47.0 | Change vs. the first observation of the current year. |
series_id | string | DGS10 | Underlying FRED series identifier. |
curve_segment | string | long | One of short (â€1Y), belly (2Yâ7Y), long (10Y+). |
2s10s_spread_bps | number | 48.0 | The classic 2s10s spread, in bps, sampled on the same observation date. |
inverted | boolean | false | true when 2Y > 10Y (curve inverted). |
data_source | string | FRED (St. Louis Fed) â Treasury Constant Maturity | Provenance string. |
Input
{"tenors": ["2Y", "5Y", "10Y", "30Y"],"date_range": "today","include_historical": false}
| Input | Type | Default | Notes |
|---|---|---|---|
tenors | array of strings | full curve | Subset of 1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y. |
date_range | enum | today | today, last_30d, last_90d, ytd. |
include_historical | boolean | false | When true, emits one row per (tenor, date) for the date range. |
The actor always pulls 2Y and 10Y internally so the 2s10s spread and inversion flag are populated even when you ask for a narrower tenor list.
Example outputs
Latest 10Y row (today):
{"instrument": "US Treasury 10-Year Constant Maturity","tenor": "10Y","tenor_years": 10.0,"yield_pct": 4.38,"as_of_date": "2026-05-08","price": null,"change_bps_1d": -3.0,"change_bps_1w": -1.0,"change_bps_1m": +8.0,"change_bps_ytd": +12.0,"series_id": "DGS10","curve_segment": "long","2s10s_spread_bps": 48.0,"inverted": false,"data_source": "FRED (St. Louis Fed) â Treasury Constant Maturity"}
2Y row from the same run:
{"instrument": "US Treasury 2-Year Constant Maturity","tenor": "2Y","yield_pct": 3.90,"2s10s_spread_bps": 48.0,"inverted": false,"curve_segment": "belly"}
Why this exists â Bloomberg / FactSet / Refinitiv alternative
| Platform | Cost / month | API access | Yield curve history | Curveâinversion signal | Setup time |
|---|---|---|---|---|---|
| Bloomberg Terminal | ~$2,000 | Limited (BBGânative) | Yes | Manual | Days |
| Refinitiv Eikon / LSEG | ~$1,800 | Yes (paid addâon) | Yes | Manual | Days |
| FactSet | ~$1,500+ | Yes (paid) | Yes | Manual | Days |
| TradingEconomics API | $99â$999 | Yes | Limited | No | Hours |
| DIY Treasury.gov scrape | Free | Build it yourself | Yes (CSV) | Build it yourself | Weeks |
| đ” NexGenData Treasury Yields actor | Payâperâresult | JSON / CSV / Excel / RSS | Full daily history | Built in | Minutes |
You're not paying for the data â FRED and Treasury.gov are public â you're paying for the assembled curve: deltas, segments, spread, inversion flag, deterministic schema, and the dataset surface that snaps into Apify integrations (Webhooks, Zapier, Make, Google Sheets, n8n, MCP).
How it works under the hood
- Probe FRED for each tenor. For every tenor in scope (and always 2Y + 10Y for spread context), the actor hits
https://fred.stlouisfed.org/graph/fredgraph.csv?id={SERIES}and parses the CSV. No API key required for daily series. - Normalize the curve. Missing observations (FRED publishes
.for nonâbusiness days) are skipped. The reference "today" is the most recent observation across the fetched series, so weekend/holiday runs still return the last good print. - Compute deltas. For each emitted point we look up the most recent value on or before Tâ1, Tâ7, Tâ30, and the first observation of the calendar year. All deltas are expressed in basis points (rounded to 0.01 bp).
- Tag and spread. Tenor is bucketed into
short/belly/long. The 2Y vs 10Y spread is computed in bps;inverted = truewhen 2Y > 10Y. - Push to dataset. One JSON record per (tenor, observation date). Stream to your warehouse or hit
/dataset/items?format=csvfor Excel.
Fallback: when FRED is unreachable, the actor logs a warning per series and emits whatever it has. No silent failure.
Curveâinversion playbook
The 2s10s spread has frontârun every U.S. recession since the 1960s. With this dataset you can:
- Schedule the actor daily (Apify schedules â cron) and emit a Webhook when
invertedflips. - Plot the term structure (yield_pct vs tenor_years) in any BI tool.
- Crossâreference
change_bps_1dwith riskâasset moves (SPY, HYG) to spot bear flatteners vs bull steepeners. - Combine with our ETF Holdings Tracker to monitor TLT/IEF/SHY positioning while the curve moves.
Pricing
Payâperâevent:
- Actor start: $0.01 (charged once when the actor begins running).
- Yield record: $0.10 per Treasury yield record returned (tenor, yield, daily / weekly / monthly / YTD deltas, curve context).
A full curve snapshot (11 tenors, date_range=today) costs $0.01 + 11 Ă $0.10 = $1.11. A subset of 4 key tenors costs $0.41. A ytd historical pull of one tenor (~100 trading days) costs roughly $10.
Margins are 20%. Pricing kicks in 14 days after publication for existing users â fresh runs in the first two weeks are free for trial.
Sister actors from NexGenData
This actor is part of the NexGenData crossâasset intelligence fleet. Pair it with:
- nexgendata/finance-mcp-server â MCP server that exposes the full NexGenData finance fleet to Claude, ChatGPT, and any MCPâaware agent.
- nexgendata/etf-holdings-tracker â bond ETF (TLT, IEF, SHY, AGG, LQD, HYG) and equity ETF holdings â overlap analysis when the curve moves.
- nexgendata/finviz-stock-screener â screen equities by valuation, growth, and technicals to pair with macro rate calls.
- nexgendata/sec-form-13f-holdings-tracker â quarterly institutional positioning, including duration bets via Treasuryâfutures and rateâsensitive equities.
- nexgendata/chinese-adrs-stock-screener â China ADR screener for rateâsensitive EM exposure.
- nexgendata/earnings-calendar â earnings calendar overlay for eventâdriven rates trades.
Integration recipes
Daily Slack digest â set a daily schedule, route the dataset to a Make.com / Zapier scenario that posts the full curve plus the 2s10s line to a Slack channel.
Curveâinversion alert â schedule daily; webhook fires only when inverted = true and change_bps_1d magnitudes exceed your threshold.
LDI rebalance feed â pipe the 20Y/30Y rows into your liabilityâdiscounting model via the Apify Google Sheets integration.
MCP / agent â wire this actor into the financeâmcpâserver so an LLM agent can ask "what's the 2s10s today" and get a typed answer.
Backtesting â set date_range=ytd and include_historical=true to get the full year per tenor, then materialize into Parquet via the Apify Dataset API.
FAQ
Q: Is this realâtime? A: FRED publishes Treasury constantâmaturity yields with a 1âbusinessâday lag. For intraday quotes use a paid marketâdata feed; for endâofâday analytics this dataset matches the Fed's official release.
Q: Why FRED and not Treasury.gov directly?
A: Both work. FRED is more programmatic (clean CSV per series), versus the Treasury XML which changes layout. We use FRED's Treasury Constant Maturity series â the same series that Treasury.gov sources.
Q: Why is price null?
A: Constantâmaturity series are yields, not cash bonds. We don't synthesize clean prices from yield because converting requires a coupon / settlement convention that varies. Use the yield with a duration approximation if you need a price proxy.
Q: How do I get a CSV?
A: Apify dataset API: GET /v2/datasets/{datasetId}/items?format=csv. Or hit the Console export button.
Q: Will this stay free in week 1?
A: Yes â the pricing record sets startedAt to 14 days after publication, so all users get a free trial window.
Q: Can I get a longer history?
A: Set date_range=ytd for the current year. For multiâyear history, file a request â we keep the FRED back catalog up to the limit (DGS10 goes back to 1962).
Roadmap
- TIPS (real yields, breakevens) â
DFII5,DFII10,DFII20,DFII30. - OIS / SOFR overlay for repo / funding context.
- Onâtheârun vs constantâmaturity reconciliation.
- Foreign sovereign curves (DE, UK, JP) under a separate sister actor.
Support
- Apify Console: console.apify.com
- Issues / data requests: contact NexGenData via Apify messaging.
- Affiliate signup (1âclick): https://apify.com/nexgendata?fpr=2ayu9b â sign up under this link to support continued development of the fleet.
