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

# Get Order

> Get a single order by ID with its fills.

Returns complete order details including execution history.

**Use Cases:**
- Track order progress and execution quality
- Reconcile fills for accounting
- Debug rejected or partially filled orders



## OpenAPI

````yaml /openapi.json get /v1/orders/{order_id}
openapi: 3.1.0
info:
  title: Centos Finance API
  contact:
    name: Centos Finance
    url: https://centosfi.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.centosfi.com
security: []
tags:
  - name: markets
    description: Search and discover prediction markets across Kalshi and Polymarket.
  - name: subaccounts
    description: >-
      Manage trading subaccounts. Each subaccount can have its own exchange
      credentials and positions.
  - name: positions
    description: View current portfolio positions across all connected exchanges.
  - name: fills
    description: Retrieve trade execution history and fill details.
  - name: prices
    description: Get historical price data and candlesticks from exchanges.
  - name: orders
    description: Place and manage orders on prediction market exchanges.
  - name: complex-orders
    description: >-
      Manage complex orders: conditional orders (take-profit and stop-loss),
      TWAP, and other advanced order types.
paths:
  /v1/orders/{order_id}:
    get:
      tags:
        - orders
      summary: Get Order
      description: |-
        Get a single order by ID with its fills.

        Returns complete order details including execution history.

        **Use Cases:**
        - Track order progress and execution quality
        - Reconcile fills for accounting
        - Debug rejected or partially filled orders
      operationId: get_order_v1_orders__order_id__get
      parameters:
        - name: order_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Order Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrderDetailResponse:
      properties:
        centos_order_id:
          type: string
          format: uuid
          title: Centos Order Id
          description: Unique order identifier
        order_type:
          type: string
          title: Order Type
          description: 'Order type: LIMIT or MARKET'
        time_in_force:
          type: string
          title: Time In Force
          description: 'Time in force: FOK, GTC, GTD, or IOC'
        qty:
          type: number
          title: Qty
          description: Original order quantity
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
          description: Limit price (null for market orders)
        buy_flag:
          type: boolean
          title: Buy Flag
          description: 'Order direction: true=buy, false=sell'
        status:
          type: string
          title: Status
          description: >-
            Order status: PENDING_SUBMISSION, PROCESSING, RESTING,
            PARTIALLY_FILLED, EXECUTED, CANCELLED, REJECTED, or EXPIRED
        centos_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Centos Id
          description: Instrument ID
        custom_asset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Custom Asset Id
          description: Custom asset basket UUID
        subaccount_id:
          type: string
          format: uuid
          title: Subaccount Id
          description: Subaccount the order belongs to
        expiry_ts_utc:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expiry Ts Utc
          description: Expiry timestamp in UTC for GTD orders
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Order creation timestamp (UTC)
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Last update timestamp (UTC)
        traded_qty:
          type: number
          title: Traded Qty
          description: Total quantity filled
          default: 0
        average_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Average Price
          description: Volume-weighted average fill price
        fees_paid:
          type: number
          title: Fees Paid
          description: Total fees paid across all fills
          default: 0
        complex_order_ids:
          additionalProperties:
            items:
              type: string
              format: uuid
            type: array
          type: object
          title: Complex Order Ids
          description: List of complex centos orders id
        reject_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reject Reason
          description: Reason for rejection (if status is REJECTED)
        fills:
          items:
            $ref: '#/components/schemas/OrderFillResponse'
          type: array
          title: Fills
          description: List of executions (fills) for this order
          default: []
      type: object
      required:
        - centos_order_id
        - order_type
        - time_in_force
        - qty
        - buy_flag
        - status
        - subaccount_id
        - created_at
        - updated_at
        - complex_order_ids
      title: OrderDetailResponse
      description: Schema for order detail response including fills.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrderFillResponse:
      properties:
        centos_id:
          type: integer
          title: Centos Id
          description: Instrument ID
        exchange_order_id:
          type: string
          title: Exchange Order Id
          description: Exchange-assigned order ID
        exchange_trade_id:
          type: string
          title: Exchange Trade Id
          description: Exchange-assigned trade/fill ID
        exchange_timestamp:
          type: string
          format: date-time
          title: Exchange Timestamp
          description: Execution timestamp from exchange (UTC)
        price:
          type: number
          title: Price
          description: Execution price
        qty:
          type: number
          title: Qty
          description: Filled quantity
        fee:
          type: number
          title: Fee
          description: Fee charged by the exchange for this fill
        buy_flag:
          type: boolean
          title: Buy Flag
          description: 'Fill direction: true=buy, false=sell'
        is_maker:
          type: boolean
          title: Is Maker
          description: Whether this fill provided liquidity (maker) or took it (taker)
      type: object
      required:
        - centos_id
        - exchange_order_id
        - exchange_trade_id
        - exchange_timestamp
        - price
        - qty
        - fee
        - buy_flag
        - is_maker
      title: OrderFillResponse
      description: Schema for a single fill on an order.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````