SQX API

The SQX API serves the prices, reference data, curves and fund files SQX delivers, over HTTPS with JSON responses. Every endpoint below shows the request in curl, Python and JavaScript, and the response the API returns.

Base URL

https://api.sqx.com/v1

Authentication

Send the API key in the X-API-Key header. It is the only place the gateway reads a key: a key in the query string is not a credential and is ignored.

curl 'https://api.sqx.com/v1/whoami' \
  --header 'X-API-Key: <your-api-key>'

Envelope

Every response, success or error, has the same three keys: data (the result, null on an error), errors (empty on success) and meta (request_id, as_of, and page on a paged list). Quote request_id when you contact us about a call.

A request refused at the gateway before it reaches the API (no key or an unknown one, a source address the key is not allowed from, or over the rate limit) answers with the status code and a body of {"message": "..."} instead.

Errors

Each error carries a category, a type and a numeric messageCode. Branch on messageCode: it never changes meaning. The HTTP status follows the first error.

StatusmessageCodeCategoryMeaning
2001041DATA_FETCHING_ERRORfound but no data points (e.g. no price)
4001001VALIDATION_ERRORrequired parameter missing
4001010VALIDATION_ERRORISIN format/checksum invalid
4001011VALIDATION_ERRORCUSIP format/checksum invalid
4001012VALIDATION_ERRORdate format invalid
4001013VALIDATION_ERRORbody JSON parse failed, or neither JSON nor a multipart form
4001014VALIDATION_ERRORmin > max / out-of-range value
4001015VALIDATION_ERRORnot offered here: a type, field, product, job kind, or intraday on a non-treasury
4011030ENTITLEMENT_ERRORmissing/invalid API key
4021032ENTITLEMENT_ERRORBilling issue — account not entitled to be served: {detail}
4031031ENTITLEMENT_ERRORkey lacks required scope/field grant
4031033ENTITLEMENT_ERRORkey expired (grant has lapsed)
4031034ENTITLEMENT_ERRORkey not authorized from this source address
4031035ENTITLEMENT_ERRORkey has no registered source address; register one with POST /v1/access/ip
4031037ENTITLEMENT_ERRORself-serve address registration is closed for this key
4041040DATA_FETCHING_ERRORidentifier resolves to nothing
4051020HTTP_ERRORwrong HTTP method
4091036ENTITLEMENT_ERRORno source address slot is free for this key (HTTP 409)
4131051CAPACITY_ERRORRequest too large: {detail}
4291050CAPACITY_ERRORbulk request exceeds 1,000 ISINs, lifetime or monthly distinct-ISIN cap reached, or per-second rate limit
5001060DATA_FETCHING_ERRORupstream data store failure, or a job failed / could not be started
5001090OTHERunexpected/uncategorized
5041061DATA_FETCHING_ERRORRequest timed out while fetching data: {detail}
5291053CAPACITY_ERRORService temporarily overloaded — retry shortly: {detail}

Limits and large requests

Batch too large, or a per-key limit was reached. A request for 1,000 or more ISINs, or one whose result reaches 1,000 rows, becomes a job: the API answers 202 with a status_url to poll (Jobs).

Endpoints

Pricing

MethodPathWhat it returns
GET/price/byIsinThe price of one ISIN, latest, on a date, or over a window
POST/price/byIsinThe prices of a list of ISINs, latest, on a date, or over a window
GET/price/byCusipLatest price for one CUSIP
GET/price/byIsinHistoricalClosest-date historical price for one ISIN
POST/price/bulk/byIsinBulk latest-price lookup by ISIN list
GET/price/latestThe whole latest price row for one ISIN
POST/price/latest/bulkThe whole latest price row for a list of ISINs
GET/price/rangeEvery dated price for one ISIN in a window
POST/price/range/bulkEvery dated price for a list of ISINs in a window
GET/price/universeEvery price a product holds on a date, or across a window

Reference data

MethodPathWhat it returns
GET/reference/byIsinReference data for one ISIN
POST/reference/bulk/byIsinBulk reference lookup by ISIN list
GET/reference/bulk/changesChange feed — which notes changed since a date, and which fields
GET/reference/changesList structured-note reference changes
GET/reference/bulk/statusPoll an asynchronous bulk-reference ticket
GET/reference/fieldsNamed reference fields for one ISIN, or the field list of a product
POST/reference/fields/bulkNamed reference fields for a list of ISINs
POST/reference/byPdfSubmit a PDF prospectus for asynchronous reference-data extraction
GET/reference/jobs/{job_id}Poll status of a PDF extraction job
GET/reference/relationships/byIsinReferenceRelationships by ISIN

Curves

MethodPathWhat it returns
GET/curvesDiscovery — every offered curve with rows recently
GET/curves/latestThe latest snapshot of one curve, tenor by tenor
GET/curves/rangeEvery snapshot of one curve in a date window
GET/curves/constituentsThe member securities of one curve

Analytics

MethodPathWhat it returns
GET/moversTop and bottom corporate-bond movers by price, spread or yield change
GET/ratings/latestSQX's rating for a corporate bond
POST/ratings/latest/bulkSQX's ratings for up to 1,000 corporate bonds

Events

MethodPathWhat it returns
GET/events/byIsinSecurity events, scheduled observations and current state

Performance

MethodPathWhat it returns
GET/performance/byIsinPerformance by ISIN

Flows

MethodPathWhat it returns
GET/flows/byIsinFlows by ISIN

Balances

MethodPathWhat it returns
GET/balances/byIsinBalances by ISIN

Fees

MethodPathWhat it returns
GET/fees/byIsinFees by ISIN

Liquidity

MethodPathWhat it returns
GET/liquidity/byIsinLiquidity by ISIN

Holdings

MethodPathWhat it returns
GET/holdings/breakdown/byIsinHoldingsBreakdown by ISIN
GET/holdings/byIsinPortfolio holdings for a fund share class
GET/holdings/fundsFunds with a book in the current holdings delivery

Funds

MethodPathWhat it returns
GET/fund/holdings/byIsinPortfolio holdings for a fund share class
GET/fund/liquidity/byIsinLiquidity profile of a fund share class
GET/fund/reference/byIsinReference data for a fund share class
GET/fund/parent/byIsinParent firm of a fund share class
GET/fund/profile/byIsinDisclosed profile of a fund share class
GET/fund/manager/byIsinPortfolio managers and advisers of a fund
GET/fund/adviser/byIsinInvestment-management firm register for a fund
GET/fund/proxy_summary/byIsinProxy voting summary of a fund
GET/fund/analytics/byIsinComputed performance analytics of a fund share class
GET/fund/class_periods/byIsinCalendar-year and trailing-window returns of a fund share class
GET/fund/monthly_returns/byIsinMonthly returns of a fund share class beside its category and stated index
GET/fund/portfolio_flows/byIsinMonthly filed flows of a fund's portfolio
GET/fund/portfolio_analytics/byIsinPortfolio-level analytics of a fund
GET/fund/portfolio_breakdown/byIsinPortfolio breakdown of a fund by bucket family
GET/fund/fees/byIsinFee stack of a fund share class
GET/fund/etf_daily/byIsinDaily ETF market data of a fund share class

Jobs

MethodPathWhat it returns
POST/jobs/isinsSubmit a list or file of ISINs as a job
GET/jobs/{job_id}Poll a retrieval job

Account and status

MethodPathWhat it returns
GET/whoamiIdentify the caller behind the current API key
GET/permissions/meList the scopes and field grants for the current API key
GET/access/ipList the source addresses registered for the current API key
POST/access/ipRegister the source address the current API key is called from
GET/healthLiveness + per-DB health check
GET/usage/meCurrent caller's monthly request totals
GET/versionBuild version + environment

Guides

For tools and AI agents

Talk to SQX

Tell us what data you need. Ask today and get a response today.

Or email inquiries@sqx.com