Every dated price for a list of ISINs in a window

POSThttps://api.sqx.com/v1/price/range/bulk

The list form of /price/range: one window, many ISINs. Each success item carries that ISIN's rows in prices (empty when the window holds none). The row count across the whole list decides synchronous-or-job, so a short window over a long list can still be a 202.

Scope: price.range (or price.bulk, or price).

Authorization

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

Request body

application/json

isin_listarray of string
cusip_listarray of string

CUSIPs, in place of or beside isin_list. Each is served as the ISIN security_master knows it by and counted as that ISIN; meta.cusips reports what each became. Invalid and unknown CUSIPs are reported there and the rest of the request is served; a request left with no security is 404 (1040).

fromstring (date)required
tostring (date)required
fieldsarray of string | string

Field names as a JSON list, or one comma-separated string.

filterstring | array of string

One <field><op><value> filter, or a list of them (ANDed). See the filter query parameter.

intradayboolean

Response fields

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

rangeobjectrequired
range.fromstring (date)required
range.tostring (date)required
successarray of objectrequired
success[].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.

success[].referenceobjectrequired

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

success[].reference.isinstringrequired
success[].reference.cusipstring | nullrequired
success[].reference.descriptionstring | nullrequired
success[].reference.typestring | nullrequired

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

success[].reference.issuerstring | nullrequired
success[].reference.currencystring | nullrequired
success[].reference.tickerstring | nullrequired
success[].reference.maturity_datestring (date) | nullrequired
success[].reference.last_pricing_datestring (date) | nullrequired
success[].reference.statusstring | nullrequired
success[].pricesarray of objectrequired
success[].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)
unprocessedarray of objectrequired
unprocessed[].isinstringrequired
unprocessed[].reasonstringrequired
not_foundarray of stringrequired

Status codes

StatusMeaning
200

Bulk result (success/unprocessed/not_found always present)

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

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