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

# List orders

> Returns your account's orders with optional market, status, and pagination filters. Use this endpoint for dashboards, backfills, and reconciliation jobs.



## OpenAPI

````yaml /openapi/openapi.json get /partner/exchange/orders
openapi: 3.1.0
info:
  title: Stabyl API
  description: >-
    REST API for approved Stabyl accounts to automate exchange, wallet, and
    non-production simulation workflows.
  contact:
    name: Stabyl Support
    email: support@stabyl.com
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.stabyl.com/v1
    description: Production
  - url: https://api-staging.stabyl.com/v1
    description: Staging
security: []
tags:
  - name: Exchange
    description: Trading market data and order management for account automation.
  - name: Wallets
    description: >-
      Supported routes, deposit destinations, balances, transactions, and saved
      recipients.
  - name: Webhooks
    description: >-
      Outbound event delivery configuration and eventually consistent delivery
      history. Verify Standard Webhooks webhook-id, webhook-timestamp, and
      webhook-signature headers against the unchanged raw request body before
      parsing JSON.
  - name: Simulation
    description: Non-production endpoints for testing integration behavior.
paths:
  /partner/exchange/orders:
    get:
      tags:
        - Exchange
      summary: List orders
      description: >-
        Returns your account's orders with optional market, status, and
        pagination filters. Use this endpoint for dashboards, backfills, and
        reconciliation jobs.
      operationId: get_partner_exchange_orders
      parameters:
        - name: status
          in: query
          description: >-
            Optional order status filter. Supported values include `pending`,
            `accepted`, `partially_filled`, `filled`, `cancelled`, `rejected`,
            and `expired`.
          required: false
          schema:
            type:
              - string
              - 'null'
          example: accepted
        - name: pair_id
          in: query
          description: >-
            Trading pair identifier returned by `GET /partner/exchange/markets`,
            for example `USD/NGN`.
          required: false
          schema:
            type:
              - string
              - 'null'
          example: USD/NGN
        - name: limit
          in: query
          description: Number of orders to return for this page.
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
          example: 50
        - name: offset
          in: query
          description: Offset for paginated order list reads.
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
          example: 0
      responses:
        '200':
          description: Order list
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/ListOrdersResponse'
                  status:
                    type: string
                    enum:
                      - success
              example:
                data:
                  next_cursor: null
                  orders: []
                status: success
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                        example: missing X-Api-Key header
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: UNAUTHORIZED
                  message: missing X-Api-Key header
                status: error
      security:
        - api_key: []
components:
  schemas:
    ListOrdersResponse:
      type: object
      description: Paginated collection of orders for the authenticated account.
      required:
        - orders
        - count
      properties:
        count:
          type: integer
          description: Count of orders in this response
          minimum: 0
        orders:
          type: array
          items:
            $ref: '#/components/schemas/OrderInfo'
          description: List of orders
      example:
        count: 1
        orders:
          - avg_fill_price: '1649.50'
            client_order_id: cli-123
            created_at: '2026-01-14T10:30:00Z'
            filled_quantity: '50.00'
            id: 123e4567-e89b-12d3-a456-426614174000
            order_type: limit
            pair_id: USD/NGN
            price: '1650.00'
            quantity: '100.00'
            replace:
              replaced_by_order_id: null
              replaces_order_id: null
            side: buy
            status: accepted
            time_in_force: POST_ONLY
    OrderInfo:
      type: object
      description: >-
        Order state, quantities, pricing, time-in-force, and replacement
        linkage.
      required:
        - id
        - pair_id
        - side
        - order_type
        - time_in_force
        - status
        - quantity
        - filled_quantity
        - remaining_quantity
        - replace
        - created_at
      properties:
        avg_fill_price:
          type:
            - string
            - 'null'
        cancel_reason:
          type:
            - string
            - 'null'
        client_order_id:
          type:
            - string
            - 'null'
        created_at:
          type: string
        filled_quantity:
          type: string
        id:
          type: string
          format: uuid
        order_type:
          type: string
        pair_id:
          type: string
        price:
          type:
            - string
            - 'null'
        quantity:
          type: string
        reject_reason:
          type:
            - string
            - 'null'
        remaining_quantity:
          type: string
        replace:
          $ref: '#/components/schemas/OrderReplaceInfo'
        side:
          type: string
        status:
          type: string
        time_in_force:
          type: string
    OrderReplaceInfo:
      type: object
      description: Links an order to the order it replaced or the order that replaced it.
      properties:
        replaced_by_order_id:
          type:
            - string
            - 'null'
          format: uuid
        replaces_order_id:
          type:
            - string
            - 'null'
          format: uuid
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API credential. Withdrawal quote and submit operations additionally
        require the documented Ed25519 timestamp, nonce, and signature headers.
      x-default: sb_test_your_key

````