Every snapshot of one curve in a date window

GEThttps://api.sqx.com/v1/curves/range

Every row of family/curve with a snapshot in [from, to] inclusive, grouped by snapshot ascending; a snapshot's points omit their own pricing_datetime — it is the snapshot's, carried once.

Rows are counted before they are read. At 1,000 or more rows the request becomes a job (HTTP 202) — three days of the intraday treasury_bond/otr curve (about 234 snapshots a day across 11 tenors) is already past the threshold, while several days of a daily ratings curve (34 tenors per snapshot) is not.

Scope: curves (or price).

Authorization

Send your API key in the X-API-Key header. See Authentication.

Query parameters

familystring: treasury_bond, corporate_bond, zero_couponrequired

One of the three offered curve families. Missing is a 400 (code 1001); any other family is a 404 (code 1040).

Example: corporate_bond

curvestringrequired

Curve name within the family: the ratings letters (AAA, AA, A, BBB, BB, B, CCC) or TSY for corporate_bond, otr for treasury_bond, or a two-letter country code for zero_coupon. Missing is a 400 (code 1001); unknown is a 404 (code 1040).

Example: A

fromstring (date)required

Window start, YYYY-MM-DD (inclusive).

Example: 2026-09-01

tostring (date)required

Window end, YYYY-MM-DD (inclusive). Before from is a 400 (code 1012).

Example: 2026-09-30

Response fields

Inside the envelope's data. Every response also carries errors and meta (Envelope).

familystring: treasury_bond, corporate_bond, zero_couponrequired

One of the three families the API offers. Any other family is a 404 (code 1040).

curvestringrequired
cadencestring: intraday, dailyrequired
currencystring | nullrequired

As CurveLatestData.currency — set for zero_coupon, null otherwise.

rangeobjectrequired
range.fromstring (date)required
range.tostring (date)required
snapshotsarray of objectrequired

Ascending by pricing_datetime. 1,000 or more rows across the window becomes a job (HTTP 202) instead of this shape — three days of the intraday otr curve is already over the threshold.

snapshots[].pricing_datetimestring (date-time)required
snapshots[].pointsarray of objectrequired

Each point's own pricing_datetime is omitted here; it is this snapshot's.

snapshots[].points[].tenorstringrequired

Tenor in years, as stored, as a decimal string.

snapshots[].points[].tenor_labelstringrequired

The delivery spelling of the tenor: round(tenor*12)M under a year, truncate(tenor)Y from a year up (for example "1M" or "5Y").

snapshots[].points[].yieldstringrequired

Percent (4.512 is 4.512%), to 8 decimals, as a decimal string.

snapshots[].points[].pricing_datetimestring (date-time)

The snapshot this point was read at. Present in /curves/latest and in a /curves/range job's CSV rows; absent inside a /curves/range snapshot, where the snapshot itself carries one pricing_datetime for all its points.

Status codes

StatusMeaning
200

The curve's snapshots in the window

202

Too large to answer on the connection (1,000 or more ISINs or rows): the request is now a job. Poll status_url until HTTP 200.

400

Validation / parse error

401

Missing or invalid API key

403

Key valid but lacks required scope/field grant

404

Identifier resolves to nothing

429

Batch too large, or a per-key limit was reached

500

Unexpected server error

503

The job could not be started (code 1060); the request is safe to retry

Talk to SQX

Tell us what data you need. Ask today and get a response today.

Or email inquiries@sqx.com