curl --request PUT \
--url https://api.kraken.com/0/public/InstrumentDefinitions \
--header 'Content-Type: application/json' \
--data '{
"limit": 500
}'{
"error": [],
"result": {
"instrument_definitions": [
{
"instrument_id": "411418695325365121",
"symbol": "TSLA-PERP",
"description": "TSLA Perp",
"product_type": "future",
"market_sector": "equity",
"listing_status": "listed",
"quote_asset": {
"instrument_id": "13337172766075780647",
"symbol": "USD"
},
"trading_parameters": {
"price_scale": 2,
"quantity_scale": 0
},
"future": {
"maturity_type": "perpetual",
"contract_size": "0.01",
"underlying_asset": {
"instrument_id": "17524043648546138397",
"symbol": "TSLA"
},
"tick_size": "0.01",
"quantity_increment": "1",
"maximum_order_volume": "200000",
"minimum_price": "346.29",
"maximum_price": "423.25",
"price_variation": "7.7"
}
}
],
"cursor": {
"next": "<opaque token>"
}
}
}Get Instrument Definitions
Returns the static reference data of instruments, one page at a time, ordered by instrument_id ascending. Trading status and other intraday data stay in the SBE market data feed.
The endpoint currently returns Kraken US Perps instruments. Other instruments will be added later.
Authentication and rate limits. This is a public endpoint: it needs no API key and no signature. It is rate limited per IP address: up to 10 requests in a burst, then 1 request per second. Cache the result instead of polling.
How to use it
- Fetch at least once a day. Definitions are static reference data and do not change intraday. Refresh them daily and keep them cached between refreshes.
- Read every page. Request the first page without a
cursor, then keep requesting withcursor.nextfrom the previous response until the response has nocursor. A page can hold fewer thanlimitentries, or none, while acursoris still set. - Filter by instrument id if you need only some. Send
instrument_idsto get only those instruments. Omit it, or send an empty array, to get all of them. Send up to 1,000 ids, duplicates included: each matching instrument is returned once. Send the same ids on every page. - Treat the cursor as opaque. Do not parse or build cursor tokens: their encoding is not part of the API.
- Expect delisted instruments. An instrument with
listing_statusdelistedstays in the response so you can retire it. - Accept values you do not know. Enumerations such as
product_type,market_sector,maturity_typeandlisting_statuscan gain values, and later product types add new product-specific blocks. Do not fail on a value or block you do not recognise.
Relationship to SBE
instrument_id is the matching engine instrument id, the same id the SBE market data feed carries as instrumentId. It is serialized as a JSON string, because JSON numbers cannot hold every uint64.
The SBE instrument definition messages carry an instrument’s trading parameters and its symbol, but not its descriptive reference data. Use this endpoint for the description, product type, market sector, maturity type, contract size, quote asset and underlying asset of an instrument, and join it to SBE market data on the instrument id. See Instrument definitions in the SBE reference.
Errors
EGeneral:Invalid arguments:cursoris malformed,limitis out of range, orinstrument_idshas more than 1,000 entries or an entry that is not a number. Fix the request: retrying it fails again.EService:Unavailable: a transient failure, such as a database timeout. Retry with backoff.EGeneral:Internal error: a failure inside the service. Retrying is unlikely to help.EGeneral:Too many requests: the per-IP rate limit was exceeded. Slow down to at most 1 request per second.
Errors use the legacy format: the response body is {"error": ["<error>"]} and result is absent. Errors can come back with HTTP status 200, so check the error array rather than the HTTP status.
See Errors for how errors are reported.
curl --request PUT \
--url https://api.kraken.com/0/public/InstrumentDefinitions \
--header 'Content-Type: application/json' \
--data '{
"limit": 500
}'{
"error": [],
"result": {
"instrument_definitions": [
{
"instrument_id": "411418695325365121",
"symbol": "TSLA-PERP",
"description": "TSLA Perp",
"product_type": "future",
"market_sector": "equity",
"listing_status": "listed",
"quote_asset": {
"instrument_id": "13337172766075780647",
"symbol": "USD"
},
"trading_parameters": {
"price_scale": 2,
"quantity_scale": 0
},
"future": {
"maturity_type": "perpetual",
"contract_size": "0.01",
"underlying_asset": {
"instrument_id": "17524043648546138397",
"symbol": "TSLA"
},
"tick_size": "0.01",
"quantity_increment": "1",
"maximum_order_volume": "200000",
"minimum_price": "346.29",
"maximum_price": "423.25",
"price_variation": "7.7"
}
}
],
"cursor": {
"next": "<opaque token>"
}
}
}Body
Ids of the instruments to return, as JSON strings. Omit it, or send an empty array, to get all instruments. Send up to 1,000 entries, duplicates included. Each matching instrument is returned once. Send the same ids on every page.
1000^[0-9]+$["411418695325365121", "3709947118148701877"]
Was this page helpful?