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

# Get open orders

> Returns your resting orders. Requires an active API key.



## OpenAPI

````yaml /api-reference/derivatives-predictions-api/rest-api/cpm-spec.json get /api/orders
openapi: 3.0.3
info:
  title: CPM Public REST API
  version: 0.1.0
servers:
  - url: https://api.example.com
    variables: {}
security:
  - auth_api_key: []
  - auth_timestamp: []
  - auth_passphrase: []
  - auth_signature: []
paths:
  /api/orders:
    get:
      tags:
        - Orders
      summary: Get open orders
      description: Returns your resting orders. Requires an active API key.
      operationId: getOpenOrders
      parameters:
        - name: instrument_id
          in: query
          description: Filter by instrument ID.
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
        - name: sub_account
          in: query
          description: Filter by sub-account.
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
        - name: sort
          in: query
          description: >-
            Sort field: order_id (default), price, quantity, or
            remaining_quantity.
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
        - name: order
          in: query
          description: 'Sort direction: asc or desc. Default desc.'
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
        - name: limit
          in: query
          description: >-
            Maximum number of orders per page. Default 100; must be 1 to 500,
            otherwise 400.
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
        - name: cursor
          in: query
          description: >-
            Opaque cursor from the previous page's cursor field. Omit on the
            first request.
          required: false
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            Open orders page. IOC, FOK, and fully filled orders are never
            listed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OpenOrderResponse'
                  cursor:
                    type: string
      deprecated: false
      security: []
components:
  schemas:
    OpenOrderResponse:
      type: object
      additionalProperties: false
      properties:
        order_id:
          type: string
          description: Order id, as a canonical decimal string.
          example: '698471892348'
        instrument_id:
          type: string
          description: Instrument id, as a canonical decimal string.
          example: '598471892347'
        ticker:
          type: string
          description: Instrument ticker.
          example: NFL-GAMEWINNER-26NOV28LARSF-LAR
        side:
          type: string
          description: >-
            Side as booked: BUY or SELL of the YES contract. NO-side orders
            appear as their YES equivalent.
          example: BUY
        price:
          type: string
          description: >-
            Limit price of the YES order as booked, in USDC, as a decimal
            string.
          example: '0.590000'
        quantity:
          type: string
          description: Original order quantity in contracts, as a decimal string.
          example: '25.00'
        filled_quantity:
          type: string
          description: Quantity filled so far, in contracts, as a decimal string.
          example: '10.00'
        remaining_quantity:
          type: string
          description: >-
            Quantity still resting on the book, in contracts, as a decimal
            string.
          example: '15.00'
        time_in_force:
          type: string
          description: >-
            Time in force of the order. IOC and FOK orders never appear in this
            list.
          example: GTC
        client_order_id:
          type: string
          description: Client order id you assigned to the order.
          example: ord-100
        sub_account:
          type: string
          description: Sub-account of the order.
          example: fund-a
  securitySchemes:
    auth_api_key:
      name: CB-ACCESS-KEY
      description: The API key string for the request
      in: header
      type: apiKey
    auth_timestamp:
      name: CB-ACCESS-TIMESTAMP
      description: The request timestamp (epoch seconds)
      in: header
      type: apiKey
    auth_passphrase:
      name: CB-ACCESS-PASSPHRASE
      description: The passphrase for the API key
      in: header
      type: apiKey
    auth_signature:
      name: CB-ACCESS-SIGN
      description: HMAC SHA-256 signature over TIMESTAMP + METHOD + REQUEST_PATH + BODY
      in: header
      type: apiKey

````