The latest snapshot of one curve, tenor by tenor

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

Every tenor of family/curve at that tenor's own latest pricing_datetime, the rule SQX's curve deliveries apply: for a daily family every tenor shares the snapshot and the rule collapses to "the latest day"; for the intraday treasury_bond/otr curve, tenors print at different minutes (about 234 snapshots a day across 11 tenors) and this is the only correct reading. data.pricing_datetime is the max across all tenors; each point also carries its own pricing_datetime. The tenor = 0 row is dropped, as every delivery drops it.

The ratings curve (family=corporate_bond) carries 34 tenors, TSY among them; a zero_coupon curve carries 33. zero_coupon curves carry the currency of the curve's country (null where SQX has no currency for the country); every other family answers currency: null.

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

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

The currency of the curve's country for a zero_coupon curve (null where SQX has no currency for the country); null for every other family.

pricing_datetimestring (date-time)required

The latest snapshot across all tenors (the max of each point's own pricing_datetime).

pointsarray of objectrequired
points[].tenorstringrequired

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

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").

points[].yieldstringrequired

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

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 tenors at their own latest snapshot

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

Talk to SQX

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

Or email inquiries@sqx.com