The whole latest price row for one ISIN

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

Returns the product's entire latest price record for the ISIN, minus insert_date, or exactly the columns named in fields. Column names are the product's own (corporate_bond answers clean_price, treasury_bond answers bid) and differ between products; data.product says which product answered. GET /price/byIsin answers the same row.

An end-of-day read resolves a Treasury as the corporate bond security_master types it as, so its price comes from the corporate bond tables and the SQX engine series. intraday=true reads the treasury intraday table instead of the daily row, and is refused (400, code 1015) for any ISIN that is not a treasury.

insert_date is refused by name (400, code 1015) rather than dropped.

Scope: price.latest (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).

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
pricingobjectrequired

One row of the product's price table in the product's own column names: the whole row minus insert_date, or exactly the fields requested. Keys therefore differ between products and between requests; a column with no value is null, never absent.

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 latest price row

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