Submit a list or file of ISINs as a job

POSThttps://api.sqx.com/v1/jobs/isins

Runs one of the four retrievals (latest, range, universe, reference) as a job regardless of size. Send either a JSON body or a multipart form whose file part holds ISINs one per line or comma-separated (a column of ISINs pasted from a spreadsheet or query output works). Every kind but universe requires ISINs (400, code 1001).

The response is the same 202 the retrieval routes return when they hand off: poll status_url until it answers 200 with a download_url.

Scope: jobs.

Authorization

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

Request body

application/json

kindstring: latest, price_latest, range, price_range, universe, price_universe, reference, reference_fields, options
isinsarray of string

For options jobs, the underlier ISINs to retrieve.

datestring (date)

Options chain date. Defaults to each underlier's latest date.

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

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.

fromstring (date)
tostring (date)
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.

intradayboolean

Response fields

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

job_idstring (uuid)required
statusstring: queuedrequired
status_urlstring (uri)required

Absolute URL of /v1/jobs/{job_id} on the host that answered.

row_countinteger | null

ISINs or rows the job will process, when known at submission.

nextstringrequired

What to do now, in words.

Status codes

StatusMeaning
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

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