Every dated price for one ISIN in a window

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

Every row of the product's dated price table for the ISIN with a date in [from, to] inclusive, ascending by date. to before from is a 400 (code 1012), not an empty list. The date column depends on the product; a product timestamped by pricing_datetime includes the whole of the last day.

A range read resolves a Treasury as the corporate bond security_master types it as; intraday=true reads the treasury intraday series instead. intraday=true on a non-treasury is a 400 (code 1015).

Rows are counted before they are read. At 1,000 or more rows the request becomes a job (HTTP 202) — one ISIN over a year, or a few days of the treasury intraday series, is enough on its own.

Scope: price.range (or price).

Authorization

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

Query parameters

isinstring

12-char ISIN; must pass the ISIN structure and mod-10 check-digit checks. Name the security by isin or by cusip, not both.

Example: US037833BH21

cusipstring

9-char CUSIP (8 characters + 1 mod-10 check digit), e.g. 037833BH2, in place of isin. It is served as the ISIN security_master knows it by, with the same scope, product and quota checks; meta.cusips names that ISIN. An invalid CUSIP is 400 (1011), an unknown one 404 (1040).

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

fieldsstring

Comma-separated column names. Absent: the whole row minus insert_date. Present: exactly these keys, in this order. A name the product's table does not have, or insert_date, is a 400 (code 1015) naming the field.

Example: pricing_date,bid_price,ask_price

filterstring

<field><op><value> with op one of >=, <=, !=, =, >, <. The field must be one the request asked for (a filter on an unrequested field would leak its values through which rows came back); otherwise 400, code 1010. Values are bound as parameters, never spliced into SQL.

Example: bid_price>=50

intradayboolean

true reads the treasury intraday table (about 35 rows per ISIN per trading day, keyed pricing_datetime) instead of the daily row. Refused (400, code 1015) for any ISIN or product that is not a treasury bond; a treasury is an ISIN with a treasury price.

Response fields

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

productstring: structured_note, corporate_bond, municipal_bond, exchange_traded, cd, uit, treasury_bond, alternative_investmentrequired

A product the API serves. The API resolves which product an ISIN belongs to (by its reference type, and the table that holds its price where the type's own table has none; a Treasury is corporate_bond unless intraday=true asks for treasury_bond), so data.product can differ from data.reference.type.

referenceobjectrequired

The security-master identity block. Every key is present, null when unknown.

reference.isinstringrequired
reference.cusipstring | nullrequired
reference.descriptionstring | nullrequired
reference.typestring | nullrequired

The security type in SQX reference data, as stored (a treasury reads corporate_bond here).

reference.issuerstring | nullrequired
reference.currencystring | nullrequired
reference.tickerstring | nullrequired
reference.maturity_datestring (date) | nullrequired
reference.last_pricing_datestring (date) | nullrequired
reference.statusstring | nullrequired
rangeobjectrequired
range.fromstring (date)required
range.tostring (date)required
pricesarray of objectrequired

Ascending by the table's date column. Empty when the window holds no row.

lifecycle_statusstring: active, inactive, pre_issuance | nullrequired

Lifecycle of the security as of the response build. The first rule that matches decides it:

  • inactive : the security has ended (matured, called, redeemed or

a similar status), or its maturity_date is past

  • pre_issuance : a note known before its issue date (its trade date

when no issue date is known). A price can already exist; terms may still change (see filing_status)

  • active : a price no more than 31 days old exists
  • null : indeterminate (no recent price)

Status codes

StatusMeaning
200

The security and its dated rows 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