Blog · · Ashutosh Agarwal

How we matched ISDA's CDS Standard Model on 145,668 published test cases

Our CDS converter now reproduces ISDA's published test grids in five currencies to at least eight decimal places of a point, agrees with ISDA's own C library, and turns the upfront cash dealers report to DTCC back into the spread they filed, to within 0.012bp on the official curve.

When an independent reviewer checked our CDS converter against ISDA's test grids, US dollars, euros and Swiss francs matched. Sterling and Australian dollars were off by $85 and $140 per $10 million of notional. The cause was one day-count rule, which ISDA's spec describes as ACT/365 that "considers leap years".

We fixed it, and the converter now matches every published grid in all five currencies. It is the engine behind the spreads our agent reports on every public CDS trade. Here is how we tested it, what we found, and why we trust it on real trades.

TL;DR

  • 145,668 published test cases reproduce to at least eight decimal places of a point. These are ISDA's own grids for USD, EUR, GBP, CHF and AUD; days accrued and settlement dates match on every case.
  • ISDA's C library agrees to within 2e-9 points. We built it from ISDA's source and drove it on 865 new cases, chosen to hit IMM rolls, weekends, holidays and month-ends.
  • GBP and AUD needed a leap-year-weighted ACT/365. It divides leap-year days by 366, not 365. With it, the error fell from 8.5e-4 and 1.4e-3 points to about 3e-12.
  • Real DTCC trades tie out. On 885 USD prints from October 26 to November 23, 2026, the upfront cash converts back to the filed spread within 0.012bp on ISDA's official curve, once EM sovereigns use 25% recovery.
  • The converter refuses what it can't price. No JPY, no silent flat curve, and no guessing the sign of an unsigned cash amount.

Why the conversion has to be exact

Most single-name CDS trade on a standard coupon, 100bp or 500bp in the US, plus an upfront payment. The market still thinks in spreads, and the ISDA Standard Model is the published formula everyone uses to turn one into the other.

On DTCC's public swap data, most single-name trades report a coupon and an upfront cash amount, and no spread at all. If our converter is a little off, every spread we report is a little off, and nobody can tell from the output. So we set a hard bar: match ISDA's own answers to 1e-6 points and 0.01bp, then prove it on trades dealers actually reported.

Test 1: ISDA's own answer key, 145,668 cases

ISDA publishes test grids on cdsmodel.com for each risk-free-rate curve. Each grid fixes a trade date and that day's curve, then prices 199 spreads from 10bp to 1,000bp, on two coupons, six maturities and two or three recovery rates. It gives the clean upfront, the cash settlement amount, the days accrued and the settlement date.

We ran all 32 grids: SOFR in USD on seven dates in 2021 and 2022, and €STR, SONIA, SARON, AONIA and TONA on five dates each. That is 145,668 priced cases across the five currencies we support (Exhibit 1).

Exhibit 1
Every supported currency now reproduces ISDA's grids far inside the 1e-6 point bar.

Currency Curve Cases Max error, spread to upfront Max error, upfront to spread
USD SOFR 50,148 6.8e-9 points 6.9e-7bp
EUR €STR 23,880 8.5e-11 points 2.2e-9bp
CHF SARON 23,880 7.3e-11 points 2.5e-9bp
GBP SONIA 23,880 3.2e-12 points 1.3e-10bp
AUD AONIA 23,880 2.3e-12 points 1.2e-10bp

Note: The bars are 1e-6 points and 0.01bp. JPY's 23,880 TONA cases are refused, since its curve conventions are not coded. The USD maximum comes from one date, June 22, 2022; every other USD date is within 9.3e-12 points.
Source: ISDA CDS Standard Model test grids (cdsmodel.com), via Matterfact

Two things the grids settled that the documents did not:

  • The curve starts from spot. The rate-curve spec's sample file is ambiguous about the base date. Building from two business days after the trade date reproduces the grids to about 1e-11 points; the other readings miss by 6e-4 to 8e-3 points.
  • Swap dates roll from the unadjusted maturity. Adjusting each tenor date for business days first leaves a 9.2e-5-point gap on the 2022 grids.

Test 2: ISDA's C library, built from source

A grid only tests the cases ISDA chose. So we built ISDA's own C library, version 1.8.3, from the source on cdsmodel.com and wrote a small driver for it. First we checked the driver on 1,518 grid rows: it matched to 3.0e-11 points. Then we fed it cases the grids never reach.

  • 400 random cases: spreads from 10bp to nearly 3,000bp, every coupon from 25bp to 1,000bp, off-the-run maturities, trade dates bunched near IMM rolls and month-ends, and 16 curves including flat, inverted and steep. Max gap: 1.75e-9 points.
  • 465 more: 358 USD and EUR cases built by an independent reviewer, covering weekends, US holidays including Juneteenth in four years and maturities from two days to over ten years, plus 107 GBP, AUD and CHF cases. All 465 agree within 1e-8 points, with a median gap of 2.9e-14.

The reviewer wrote their own parser, driver and date logic, and never used our test files as truth. Their first pass found eight defects. We fixed them, and their second pass confirmed the fixes.

The leap-year rule behind the GBP and AUD gap

The reviewer's first pass showed GBP and AUD off by 8.5e-4 and 1.4e-3 points against the grids. That is $85 and $140 per $10 million, and 0.021bp and 0.033bp of spread: small, but far outside our bar.

We had read the spec's ACT/365 for those two curves as the usual ACT/365 Fixed, which divides every day count by 365. ISDA's C library treats it differently. Its ACT/365 counts days in leap years over 366 and the rest over 365. Once we copied that, both currencies matched to about 3e-12 points (Exhibit 2). Our day-count function now agrees with the C library's exactly on 5,004 random date pairs.

Exhibit 2
One day-count rule took sterling and Australian dollars from two or three matching decimal places to eleven.

Decimal places of a point that match ISDA's test grids, by currency Worst case on each currency's grids, before and after the leap-year day-count fix

Category Before the fix After the fix
USD 8 8
EUR 10 10
CHF 10 10
GBP 3 11
AUD 2 11

Note: Decimal places = −log10 of the maximum clean-upfront error in points, rounded down. Before: USD 6.8e-9, EUR 8.5e-11, CHF 7.0e-11, GBP 8.5e-4, AUD 1.4e-3 points. After: 6.8e-9, 8.5e-11, 7.3e-11, 3.2e-12, 2.3e-12 points.
Source: ISDA CDS Standard Model test grids (cdsmodel.com); Matterfact verification records

Holidays got the same treatment. ISDA's US calendar for the model holds exactly seven dates, each a Juneteenth that falls on Sunday and is observed on Monday, June 20, an IMM date. We hold the same seven, from 2022 onwards.

Real trades: dealers' cash ties out to the model

Grids prove the formula. Trades prove the inputs. Some single-name prints on DTCC's public tape carry both a spread and an upfront cash amount, so we can convert the cash back and compare.

Our first records, on 24 to 32 prints and US Treasury yields as a stand-in curve, came within a median of 0.26bp to 0.30bp of the filed spread. For this post we re-measured on a larger set, with ISDA's official SOFR curve: every USD single-name print from October 26 to November 23, 2026 with a spread and an upfront we could test. That is 885 prints on 129 names, 852 of them with notionals at the $5 million reporting cap (Exhibit 3).

Exhibit 3
On ISDA's official curve, 870 of 885 DTCC prints convert back to the filed spread within 0.01bp.

Gap between the filed spread and the spread converted from the upfront cash, number of prints 885 USD single-name prints with both a spread and an upfront, October 26 to November 23, 2026, 40% recovery

Category ISDA official SOFR curve US Treasury fallback curve
0.01bp or less 870 107
0.01 to 0.1bp 4 165
0.1 to 0.25bp 1 245
0.25 to 0.5bp 2 201
0.5 to 1bp 8 66
Over 1bp 0 101

Note: Median gap 0.0001bp on the official curve and 0.2bp on the Treasury fallback (whose output is rounded to 0.1bp); worst 0.73bp and 2.2bp. Capped prints are read at the $5 million cap. Thirteen of the 15 prints above 0.01bp on the official curve are Latin American sovereigns; re-run at 25% recovery, all 13 match within 0.0005bp.
Source: DTCC public swap data (SEC single-name CDS files); ISDA standard rate curves (S&P Global); US Treasury par yields; Matterfact analysis

That is the result you would expect if the reported cash was computed with the same model and curve we use. The same data confirmed three facts about the tape that the converter now relies on:

  • The cash is net of accrued and unsigned. DTCC's upfront amount is the ISDA cash settlement amount, notional times clean upfront minus accrued, with no sign. The sign has to come from a filed level.
  • Capped trades report cash for the cap. Read at $5 million, capped prints convert as cleanly as uncapped ones.
  • Some names file points where the spread goes. Upfront-quoted names put points divided by 10,000 in the spread field, so 0.00145 means 14.5 points. The cash shows which reading is right.

What the curve is worth, in basis points

The official curves come from S&P Global and need a free registration. When the official file is unavailable, USD conversions fall back to Treasury yields and say so, with rounded output and a stated error. Exhibit 4 shows why we bother: curve error moves the spread in proportion to the gap between spread and coupon.

Exhibit 4
A 10bp error in the discount curve moves a 5-year spread by about a third of a basis point per 100bp from the coupon.

Spread error from a parallel shift in the discount curve, bp per 100bp of |spread − coupon| Worst cases on the April 26, 2021 and June 21, 2022 SOFR curves, 40% recovery, coupons 100bp and 500bp, spreads 25bp to 1,000bp

Low High
+10bp curve, 5Y 0.31 0.34
+10bp curve, 10Y 0.72 0.82
+25bp curve, 5Y 0.78 0.86
+25bp curve, 10Y 1.80 2.10
+100bp curve, 5Y 3.10 3.50
+100bp curve, 10Y 7.40 8.40

Source: ISDA CDS Standard Model test-grid curves (cdsmodel.com); Matterfact verification records

What the converter refuses to do

The review's most serious findings were not rounding errors. They were answers that should have been refusals, and all are fixed:

  • Unsupported currencies are refused. JPY used to price on a flat, dollar-convention curve. Anything outside the five now returns an error naming them.
  • No silent flat curve. Without the official curve, EUR, GBP, CHF and AUD are refused. A flat curve runs only on request, with its error stated.
  • No guessed sign or mismatched curve. An unsigned cash amount with no stated payer returns both readings, and a euro contract on a dollar curve raises an error.

Two gaps remain. Index CDS conversion uses the same model but has not yet had its own validation. Recovery defaults to 40%, so an emerging-market sovereign needs 25% passed explicitly, as Exhibit 3 shows.

Questions to try

Each of these runs today. Ask in Matterfact chat as written.

  1. Convert 3.25 points upfront on a 5-year CDS with a 100bp coupon, traded November 20, 2026, into a spread.
  2. What upfront does a 180bp spread imply on a 100bp coupon maturing December 20, 2031, traded November 20, 2026?
  3. A CDS print shows $162,500 upfront on $5 million, 100bp coupon, 5-year, traded November 20, 2026. What spread is that if the buyer paid, and if the seller paid?
  4. Convert 2 points upfront on a 5-year euro CDS with a 100bp coupon, traded November 20, 2026, into a spread on the €STR curve.
  5. Convert 2 points upfront on a 5-year sterling CDS with a 100bp coupon, traded November 20, 2026, into a spread on the SONIA curve.
  6. What spread do 10 points upfront on a 100bp coupon imply for a sovereign at 25% recovery, 5-year, traded November 20, 2026?
  7. What 5-year spread does each upfront imply for Oracle's CDS trades over the last 30 days?

Getting started

Ask in Matterfact chat. There is nothing to set up: the agent picks the right curve, states which one it used, and tells you when it can't convert.