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.
| Status | messageCode | Category | Meaning |
|---|---|---|---|
| 200 | 1041 | DATA_FETCHING_ERROR | found but no data points (e.g. no price) |
| 400 | 1001 | VALIDATION_ERROR | required parameter missing |
| 400 | 1010 | VALIDATION_ERROR | ISIN format/checksum invalid |
| 400 | 1011 | VALIDATION_ERROR | CUSIP format/checksum invalid |
| 400 | 1012 | VALIDATION_ERROR | date format invalid |
| 400 | 1013 | VALIDATION_ERROR | body JSON parse failed, or neither JSON nor a multipart form |
| 400 | 1014 | VALIDATION_ERROR | min > max / out-of-range value |
| 400 | 1015 | VALIDATION_ERROR | not offered here: a type, field, product, job kind, or intraday on a non-treasury |
| 401 | 1030 | ENTITLEMENT_ERROR | missing/invalid API key |
| 402 | 1032 | ENTITLEMENT_ERROR | Billing issue — account not entitled to be served: {detail} |
| 403 | 1031 | ENTITLEMENT_ERROR | key lacks required scope/field grant |
| 403 | 1033 | ENTITLEMENT_ERROR | key expired (grant has lapsed) |
| 403 | 1034 | ENTITLEMENT_ERROR | key not authorized from this source address |
| 403 | 1035 | ENTITLEMENT_ERROR | key has no registered source address; register one with POST /v1/access/ip |
| 403 | 1037 | ENTITLEMENT_ERROR | self-serve address registration is closed for this key |
| 404 | 1040 | DATA_FETCHING_ERROR | identifier resolves to nothing |
| 405 | 1020 | HTTP_ERROR | wrong HTTP method |
| 409 | 1036 | ENTITLEMENT_ERROR | no source address slot is free for this key (HTTP 409) |
| 413 | 1051 | CAPACITY_ERROR | Request too large: {detail} |
| 429 | 1050 | CAPACITY_ERROR | bulk request exceeds 1,000 ISINs, lifetime or monthly distinct-ISIN cap reached, or per-second rate limit |
| 500 | 1060 | DATA_FETCHING_ERROR | upstream data store failure, or a job failed / could not be started |
| 500 | 1090 | OTHER | unexpected/uncategorized |
| 504 | 1061 | DATA_FETCHING_ERROR | Request timed out while fetching data: {detail} |
| 529 | 1053 | CAPACITY_ERROR | Service 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
| Method | Path | What it returns |
|---|---|---|
| GET | /price/byIsin | The price of one ISIN, latest, on a date, or over a window |
| POST | /price/byIsin | The prices of a list of ISINs, latest, on a date, or over a window |
| GET | /price/byCusip | Latest price for one CUSIP |
| GET | /price/byIsinHistorical | Closest-date historical price for one ISIN |
| POST | /price/bulk/byIsin | Bulk latest-price lookup by ISIN list |
| GET | /price/latest | The whole latest price row for one ISIN |
| POST | /price/latest/bulk | The whole latest price row for a list of ISINs |
| GET | /price/range | Every dated price for one ISIN in a window |
| POST | /price/range/bulk | Every dated price for a list of ISINs in a window |
| GET | /price/universe | Every price a product holds on a date, or across a window |
Reference data
| Method | Path | What it returns |
|---|---|---|
| GET | /reference/byIsin | Reference data for one ISIN |
| POST | /reference/bulk/byIsin | Bulk reference lookup by ISIN list |
| GET | /reference/bulk/changes | Change feed — which notes changed since a date, and which fields |
| GET | /reference/changes | List structured-note reference changes |
| GET | /reference/bulk/status | Poll an asynchronous bulk-reference ticket |
| GET | /reference/fields | Named reference fields for one ISIN, or the field list of a product |
| POST | /reference/fields/bulk | Named reference fields for a list of ISINs |
| POST | /reference/byPdf | Submit a PDF prospectus for asynchronous reference-data extraction |
| GET | /reference/jobs/{job_id} | Poll status of a PDF extraction job |
| GET | /reference/relationships/byIsin | ReferenceRelationships by ISIN |
Curves
| Method | Path | What it returns |
|---|---|---|
| GET | /curves | Discovery — every offered curve with rows recently |
| GET | /curves/latest | The latest snapshot of one curve, tenor by tenor |
| GET | /curves/range | Every snapshot of one curve in a date window |
| GET | /curves/constituents | The member securities of one curve |
Analytics
| Method | Path | What it returns |
|---|---|---|
| GET | /movers | Top and bottom corporate-bond movers by price, spread or yield change |
| GET | /ratings/latest | SQX's rating for a corporate bond |
| POST | /ratings/latest/bulk | SQX's ratings for up to 1,000 corporate bonds |
Events
| Method | Path | What it returns |
|---|---|---|
| GET | /events/byIsin | Security events, scheduled observations and current state |
Performance
| Method | Path | What it returns |
|---|---|---|
| GET | /performance/byIsin | Performance by ISIN |
Flows
| Method | Path | What it returns |
|---|---|---|
| GET | /flows/byIsin | Flows by ISIN |
Balances
| Method | Path | What it returns |
|---|---|---|
| GET | /balances/byIsin | Balances by ISIN |
Fees
| Method | Path | What it returns |
|---|---|---|
| GET | /fees/byIsin | Fees by ISIN |
Liquidity
| Method | Path | What it returns |
|---|---|---|
| GET | /liquidity/byIsin | Liquidity by ISIN |
Holdings
| Method | Path | What it returns |
|---|---|---|
| GET | /holdings/breakdown/byIsin | HoldingsBreakdown by ISIN |
| GET | /holdings/byIsin | Portfolio holdings for a fund share class |
| GET | /holdings/funds | Funds with a book in the current holdings delivery |
Funds
| Method | Path | What it returns |
|---|---|---|
| GET | /fund/holdings/byIsin | Portfolio holdings for a fund share class |
| GET | /fund/liquidity/byIsin | Liquidity profile of a fund share class |
| GET | /fund/reference/byIsin | Reference data for a fund share class |
| GET | /fund/parent/byIsin | Parent firm of a fund share class |
| GET | /fund/profile/byIsin | Disclosed profile of a fund share class |
| GET | /fund/manager/byIsin | Portfolio managers and advisers of a fund |
| GET | /fund/adviser/byIsin | Investment-management firm register for a fund |
| GET | /fund/proxy_summary/byIsin | Proxy voting summary of a fund |
| GET | /fund/analytics/byIsin | Computed performance analytics of a fund share class |
| GET | /fund/class_periods/byIsin | Calendar-year and trailing-window returns of a fund share class |
| GET | /fund/monthly_returns/byIsin | Monthly returns of a fund share class beside its category and stated index |
| GET | /fund/portfolio_flows/byIsin | Monthly filed flows of a fund's portfolio |
| GET | /fund/portfolio_analytics/byIsin | Portfolio-level analytics of a fund |
| GET | /fund/portfolio_breakdown/byIsin | Portfolio breakdown of a fund by bucket family |
| GET | /fund/fees/byIsin | Fee stack of a fund share class |
| GET | /fund/etf_daily/byIsin | Daily ETF market data of a fund share class |
Jobs
| Method | Path | What it returns |
|---|---|---|
| POST | /jobs/isins | Submit a list or file of ISINs as a job |
| GET | /jobs/{job_id} | Poll a retrieval job |
Account and status
| Method | Path | What it returns |
|---|---|---|
| GET | /whoami | Identify the caller behind the current API key |
| GET | /permissions/me | List the scopes and field grants for the current API key |
| GET | /access/ip | List the source addresses registered for the current API key |
| POST | /access/ip | Register the source address the current API key is called from |
| GET | /health | Liveness + per-DB health check |
| GET | /usage/me | Current caller's monthly request totals |
| GET | /version | Build version + environment |
Guides
For tools and AI agents
- OpenAPI 3.1 specification of every endpoint here
- llms.txt: the index of these pages for an AI agent, each linked as Markdown (add
.mdto a page's address)