Poll an asynchronous bulk-reference ticket

GEThttps://api.sqx.com/v1/reference/bulk/status

A POST /v1/reference/bulk/byIsin that has to dispatch structured-note extractions answers with a ticket. Poll here with that ticket until HTTP 200. While any ISIN is still extracting the answer is HTTP 202 with progress counts (ready, pending, total).

A ticket is visible only to the caller that created it: an unknown ticket and another caller's ticket both answer 404 (messageCode 1040).

final=1 returns HTTP 200 with the ISINs that are ready now plus a pending list of the unfinished ones, without closing the ticket.

Authorization

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

Query parameters

ticketstringrequired

The ticket id returned by the bulk-reference POST. Missing is a 400 (code 1001).

Example: 1234

finalstring: 1, true, yes

1, true or yes returns the ready subset now instead of a 202 while ISINs are still pending.

Example: 1

Response fields

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

successarray of objectrequired
success[].isinstring

Non-structured-note answers only.

success[].security_masterobject

Identity block in the sectioned structured-note record.

success[].productstring: structured_note, corporate_bond, municipal_bond, exchange_traded, cd, uit, treasury_bond, alternative_investment

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

Flat reference fields available via field-level permission. Specific columns surfaced depend on the caller's grants on the routed <type>_reference table.

success[].reference.isinstring
success[].reference.cusipstring | null
success[].reference.descriptionstring | null
success[].reference.typestring: structured_note, corporate_bond, municipal_bond, exchange_traded, cd, uit | null
success[].reference.issuerstring | null
success[].fieldsobject

Non-structured-note answers only: {published_name: value} for the product's core fields, or the published names asked for in fields. null where the security has no value.

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)
success[].filing_statusobject

Pricing-supplement provenance (structured-note responses only; null for other asset types).

unprocessedarray of objectrequired
unprocessed[].isinstringrequired
unprocessed[].reasonstringrequired
not_foundarray of stringrequired
pendingarray of string

Present only for final=1 on a ticket that is still running.

Status codes

StatusMeaning
200

Every ISIN on the ticket has resolved (or final was requested)

202

Extraction still running. The body is the bare progress object below, not wrapped in the envelope.

400

Validation / parse error

401

Missing or invalid API key

403

Key valid but lacks required scope/field grant

404

Identifier resolves to nothing

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