> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kraken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](/exchange/api-reference/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 with `cursor.next` from the previous response until the response has no `cursor`. A page can hold fewer than `limit` entries, or none, while a `cursor` is still set.
- **Filter by instrument id if you need only some.** Send `instrument_ids` to 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_status` `delisted` stays in the response so you can retire it.
- **Accept values you do not know.** Enumerations such as `product_type`, `market_sector`, `maturity_type` and `listing_status` can 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](/exchange/api-reference/sbe#instrument-definitions) in the SBE reference.

### Errors

- `EGeneral:Invalid arguments`: `cursor` is malformed, `limit` is out of range, or `instrument_ids` has 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](/exchange/guides/general/errors) for how errors are reported.




## OpenAPI

````yaml openapi/us-perps-rest.yaml PUT /0/public/InstrumentDefinitions
openapi: 3.0.0
info:
  title: US Perps REST API
  version: 0.1.0
  description: >
    REST endpoints for Kraken US Perps.


    Order entry uses [Unified FIX v2](/exchange/api-reference/unified-fix-v2)
    and market data uses [SBE](/exchange/api-reference/sbe). See the [US Perps
    APIs](/exchange/guides/us-perps/api) guide.
servers:
  - url: https://api.kraken.com
    description: Production Server
security: []
tags:
  - name: Instrument Definitions
paths:
  /0/public/InstrumentDefinitions:
    put:
      tags:
        - Instrument Definitions
      summary: Get Instrument Definitions
      description: >
        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](/exchange/api-reference/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 with `cursor.next` from the previous response until the
        response has no `cursor`. A page can hold fewer than `limit` entries, or
        none, while a `cursor` is still set.

        - **Filter by instrument id if you need only some.** Send
        `instrument_ids` to 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_status`
        `delisted` stays in the response so you can retire it.

        - **Accept values you do not know.** Enumerations such as
        `product_type`, `market_sector`, `maturity_type` and `listing_status`
        can 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](/exchange/api-reference/sbe#instrument-definitions) in the
        SBE reference.


        ### Errors


        - `EGeneral:Invalid arguments`: `cursor` is malformed, `limit` is out of
        range, or `instrument_ids` has 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](/exchange/guides/general/errors) for how errors are
        reported.
      operationId: getInstrumentDefinitions
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetInstrumentDefinitionsRequest'
            examples:
              firstPage:
                summary: First page
                value:
                  limit: 500
              nextPage:
                summary: Next page
                value:
                  cursor: <opaque token from cursor.next>
                  limit: 500
              byInstrumentIds:
                summary: Only the listed instruments
                value:
                  instrument_ids:
                    - '411418695325365121'
                    - '3709947118148701877'
      responses:
        '200':
          description: One page of instrument definitions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInstrumentDefinitionsResponse'
              example:
                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>
components:
  schemas:
    GetInstrumentDefinitionsRequest:
      type: object
      properties:
        cursor:
          type: string
          minLength: 1
          maxLength: 1000
          description: >-
            Opaque token from `cursor.next` of the previous page. Omit it for
            the first page. Do not parse or build tokens.
        limit:
          type: integer
          format: int32
          minimum: 1
          maximum: 1000
          default: 500
          description: Maximum number of instrument definitions in the page.
        instrument_ids:
          type: array
          maxItems: 1000
          items:
            type: string
            pattern: ^[0-9]+$
          description: >-
            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.
          example:
            - '411418695325365121'
            - '3709947118148701877'
    GetInstrumentDefinitionsResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: array
          items:
            type: string
          description: Errors. Empty on success.
          example: []
        result:
          type: object
          required:
            - instrument_definitions
          properties:
            instrument_definitions:
              type: array
              description: >-
                Instrument definitions, ordered by `instrument_id` ascending. A
                page can hold fewer than `limit` entries, or none, while
                `cursor` is set.
              items:
                $ref: '#/components/schemas/InstrumentDefinition'
            cursor:
              $ref: '#/components/schemas/Cursor'
    InstrumentDefinition:
      type: object
      description: >-
        Static reference data of one instrument. It does not change intraday, so
        fetch it at least once a day.
      required:
        - instrument_id
        - symbol
        - market_sector
        - listing_status
        - quote_asset
        - trading_parameters
        - product_type
      properties:
        instrument_id:
          type: string
          pattern: ^[0-9]+$
          description: >-
            Matching engine instrument id, the id the SBE market data feed
            carries. Serialized as a JSON string, as JSON numbers cannot hold
            every `uint64`.
          example: '411418695325365121'
        symbol:
          type: string
          minLength: 1
          description: Instrument symbol.
          example: TSLA-PERP
        description:
          type: string
          minLength: 1
          description: Human-readable description.
          example: TSLA Perp
        market_sector:
          type: string
          enum:
            - crypto
            - equity
            - fx
            - tokenized_equity
          description: Market sector of the underlying. More values may be added.
        listing_status:
          type: string
          enum:
            - listed
            - delisted
          description: >-
            Whether the instrument is listed. This is not the trading status,
            which changes intraday and stays in the SBE market data feed.
            Delisted instruments stay in the response so you can retire them.
            More values may be added.
        quote_asset:
          $ref: '#/components/schemas/InstrumentDefinitionAsset'
        trading_parameters:
          $ref: '#/components/schemas/TradingParameters'
        product_type:
          type: string
          enum:
            - spot
            - future
            - option
          description: >-
            Kind of product. Names the product-specific block that is set.
            Currently only `future` carries a block. More values may be added.
        future:
          $ref: '#/components/schemas/FutureDetails'
    Cursor:
      type: object
      description: >-
        Set when another page exists. Keep requesting with `cursor.next` until
        it is absent.
      properties:
        next:
          type: string
          description: Token for the next page, to pass as the request `cursor`.
    InstrumentDefinitionAsset:
      type: object
      description: An asset an instrument refers to.
      required:
        - instrument_id
        - symbol
      properties:
        instrument_id:
          type: string
          pattern: ^[0-9]+$
          description: Instrument id of the asset. Serialized as a JSON string.
          example: '13337172766075780647'
        symbol:
          type: string
          minLength: 1
          description: Asset symbol.
          example: USD
    TradingParameters:
      type: object
      description: Trading parameters common to all or most instruments.
      properties:
        price_scale:
          type: integer
          format: int32
          minimum: 0
          maximum: 255
          description: Number of decimal places of prices.
          example: 2
        quantity_scale:
          type: integer
          format: int32
          minimum: 0
          maximum: 255
          description: Number of decimal places of order quantities. `0` means whole units.
          example: 0
    FutureDetails:
      type: object
      description: >-
        Contract terms of a future. Set when `product_type` is `future`. Later
        product types add new blocks, so accept a definition where none of the
        blocks you know is set. Decimal values are strings.
      required:
        - contract_size
        - tick_size
        - quantity_increment
      properties:
        maturity_type:
          type: string
          enum:
            - perpetual
          description: >-
            Expiry cycle. Currently `perpetual` for perpetual futures. More
            values may be added.
        contract_size:
          type: string
          description: >-
            Quantity of the underlying asset one contract represents, as a
            decimal string.
          example: '0.01'
        minimum_tradable_unit:
          type: string
          description: Minimum order size in contracts, as a decimal string.
        underlying_asset:
          allOf:
            - $ref: '#/components/schemas/InstrumentDefinitionAsset'
          description: >-
            Asset the contract tracks as underlying, such as `TSLA` for
            `TSLA-PERP`. May be absent.
        tick_size:
          type: string
          description: Minimum price increment, as a decimal string.
          example: '0.01'
        quantity_increment:
          type: string
          description: Smallest valid order quantity step, as a decimal string.
          example: '1'
        maximum_order_volume:
          type: string
          description: >-
            Largest quantity allowed in a single order, as a decimal string.
            Absent when there is no limit.
          example: '200000'
        minimum_price:
          type: string
          description: >-
            Lowest allowed order price, as a decimal string. Absent when there
            is no lower price limit.
          example: '346.29'
        maximum_price:
          type: string
          description: >-
            Highest allowed order price, as a decimal string. Absent when there
            is no upper price limit.
          example: '423.25'
        price_variation:
          type: string
          description: >-
            Price band half-width, as an absolute price offset in a decimal
            string. Absent when price banding is disabled.
          example: '7.7'

````