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

# See order fills



## OpenAPI

````yaml openapi/order-gateway.json GET /order-fills
openapi: 3.1.0
info:
  title: ax-order-gateway
  description: ''
  license:
    name: ''
  version: 15.24.0
servers:
  - url: https://gateway.architect.exchange/orders
security: []
tags:
  - name: order-gateway
    description: Order gateway
paths:
  /order-fills:
    get:
      tags:
        - order-gateway
      operationId: get_order_fills
      parameters:
        - name: order_id
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/OrderId'
        - name: aid
          in: query
          description: >-
            Optional account ID, selecting which account's fills to return for
            the

            order. If omitted, the user's default (primary) account is used.
          required: false
          schema:
            type:
              - string
              - 'null'
      responses:
        '200':
          description: List of fills associated with an order ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrderFillsResponse'
      security:
        - session_token: []
components:
  schemas:
    OrderId:
      type: string
      description: |-
        Strong type for Order IDs to prevent mixing with other string values

        Order IDs are ULIDs with a prefix:

        - Regular orders: O-<ULID>
        - Liquidation orders: L-<ULID>
    GetOrderFillsResponse:
      type: object
      required:
        - fills
      properties:
        fills:
          type: array
          items:
            $ref: '#/components/schemas/Fill'
    Fill:
      type: object
      required:
        - trade_id
        - account_id
        - timestamp
        - symbol
        - price
        - quantity
        - is_taker
        - fee
        - side
      properties:
        account_id:
          type: string
        fee:
          type: string
        is_block_trade:
          type: boolean
          description: |-
            True if this fill was generated by a block trade — a privately
            negotiated trade booked away from the order book.
        is_final_settlement:
          type: boolean
          description: >-
            True if this fill was generated by final settlement of a delisted or

            expired contract at the final settlement price; the counterparty is
            the

            exchange settlement account. Implies `is_block_trade`.
        is_taker:
          type: boolean
        order_id:
          type:
            - string
            - 'null'
        price:
          type: string
        quantity:
          type: integer
          format: int64
          minimum: 0
        realized_pnl:
          type:
            - string
            - 'null'
        side:
          $ref: '#/components/schemas/Side'
        symbol:
          type: string
        timestamp:
          type: string
          format: date-time
        trade_id:
          type: string
    Side:
      type: string
      enum:
        - B
        - S
  securitySchemes:
    session_token:
      type: http
      scheme: bearer
      description: User session token

````