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

# List settlement batches



## OpenAPI

````yaml /xentfi-pro/openapi.json get /v1/orderbook/settlement-batches
openapi: 3.0.3
info:
  title: XentFi Pro API
  version: 1.0.0
  description: >-
    API documentation for XentFi Pro — programmatic liquidity and trading on
    XentFi's hybrid off-chain matching / on-chain settlement order book.
    Requires a Pro account and an API key with the Trade scope. See the XentFi
    Pro Overview and Authentication guides in this tab before making requests.
  contact:
    name: XentFi Pro Support
    email: support@xentfi.com
servers:
  - url: https://api.pro.xentfi.com
    description: XentFi Pro production server
security: []
tags:
  - name: OrderBook
    description: Place, list, cancel, and inspect orders and their fills.
  - name: OrderBook Markets
    description: Market configuration, order book depth, trades, ticker, and candles.
  - name: OrderBook Settlement
    description: Inspect on-chain settlement batches produced from matched trades.
  - name: OrderBook Ops
    description: Engine health/status and realtime (websocket) channel authorization.
paths:
  /v1/orderbook/settlement-batches:
    get:
      tags:
        - OrderBook Settlement
      summary: List settlement batches
      operationId: listSettlementBatches
      parameters:
        - name: marketSymbol
          in: query
          required: false
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/SettlementStatus'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: List of settlement batches
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SettlementBatch'
                  meta:
                    $ref: '#/components/schemas/PageMeta'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
          OrgIdAuth: []
components:
  schemas:
    SettlementStatus:
      type: string
      enum:
        - QUEUED
        - BATCHED
        - SUBMITTED
        - CONFIRMED
        - FAILED
        - REORGED
        - REPLACED
    SettlementBatch:
      type: object
      properties:
        id:
          type: string
        marketId:
          type: string
        blockchainId:
          type: integer
          description: Resolved numeric EVM chain ID this batch settled on.
        tradeIds:
          type: array
          items:
            type: string
        netDeltas:
          type: object
          description: walletId -> assetId -> signed net delta for this batch.
          additionalProperties:
            type: object
            additionalProperties:
              type: string
        legs:
          type: array
          items:
            $ref: '#/components/schemas/SettlementLeg'
        status:
          $ref: '#/components/schemas/SettlementStatus'
        retryCount:
          type: integer
        failureReason:
          type: string
          nullable: true
        submittedAt:
          type: string
          format: date-time
          nullable: true
        confirmedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
    PageMeta:
      type: object
      properties:
        total:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
              example: Wallet not found
            timestamp:
              type: string
              format: date-time
            requestId:
              type: string
    SettlementLeg:
      type: object
      properties:
        walletId:
          type: string
        assetId:
          type: string
        amount:
          type: string
        direction:
          type: string
          enum:
            - IN
            - OUT
        chainId:
          type: integer
        status:
          $ref: '#/components/schemas/SettlementStatus'
        txHash:
          type: string
          nullable: true
        quoteId:
          type: string
          nullable: true
        retryCount:
          type: integer
        failureReason:
          type: string
          nullable: true
        submittedAt:
          type: string
          nullable: true
        confirmedAt:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
    OrgIdAuth:
      type: apiKey
      in: header
      name: orgId

````