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

# Get order status

> Poll the lifecycle state of a submitted equity order (Ondo).

Reports `pending`, `filled`, `expired`, or `cancelled`, with fill details as
they arrive. Equity orders only — RWA yield swaps settle in one transaction and
have no lifecycle to poll.



## OpenAPI

````yaml /v2/combined_spec.json get /v2/tokenized_assets/order/{order_hash}
openapi: 3.1.0
info:
  title: Compass API
  description: Compass Labs DeFi API
  version: 0.0.1
servers:
  - url: https://api.compasslabs.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v2/tokenized_assets/order/{order_hash}:
    get:
      tags:
        - Tokenized Assets
      summary: Get order status
      description: >-
        Poll the lifecycle state of a submitted equity order (Ondo).


        Reports `pending`, `filled`, `expired`, or `cancelled`, with fill
        details as

        they arrive. Equity orders only — RWA yield swaps settle in one
        transaction and

        have no lifecycle to poll.
      operationId: v2_tokenized_assets_order_{order_hash}
      parameters:
        - name: order_hash
          in: path
          required: true
          schema:
            type: string
            title: Order Hash
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderStatus'
        '400':
          description: '`order_hash` is not 32 lowercase-hex bytes prefixed with 0x.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenizedAssetsErrorResponse'
        '404':
          description: '`ORDER_NOT_FOUND` — no order matches the provided hash.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenizedAssetsErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: '`ONDO_API_UNAVAILABLE` — upstream provider is unavailable.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenizedAssetsErrorResponse'
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from compass_api_sdk import CompassAPI


            with CompassAPI(
                api_key_auth="<YOUR_API_KEY_HERE>",
            ) as compass_api:

                res = compass_api.tokenized_assets.tokenized_assets_order_order_hash_(order_hash="<value>")

                # Handle response
                print(res)
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { CompassApiSDK } from "@compass-labs/api-sdk";

            const compassApiSDK = new CompassApiSDK({
              apiKeyAuth: "<YOUR_API_KEY_HERE>",
            });

            async function run() {
              const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsOrderOrderHash({
                orderHash: "<value>",
              });

              console.log(result);
            }

            run();
components:
  schemas:
    OrderStatus:
      properties:
        order_hash:
          type: string
          title: Order Hash
          description: On-chain order hash.
        status:
          type: string
          enum:
            - pending
            - filled
            - expired
            - cancelled
          title: Status
          description: >-
            Order lifecycle state. One of `pending`, `filled`, `expired`, or
            `cancelled`. Upstream protocol states beyond these four (e.g.
            `partially-filled`, `refunded`) are mapped onto this set.
        fill_tx_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Fill Tx Hash
          description: >-
            Transaction hash of the most recent fill. Populated for fully filled
            orders and for partial fills while `status` is still `pending`.
        fill_price_usd:
          anyOf:
            - type: string
            - type: 'null'
          title: Fill Price Usd
          description: >-
            Implied USD execution rate per unit of the received token, derived
            from filled amounts and the input token's USD price. For USDC →
            equity buys, this is the USD paid per equity unit. Omitted when
            token decimals or pricing are not available.
        filled_amount:
          anyOf:
            - type: string
            - type: 'null'
          title: Filled Amount
          description: >-
            Total amount filled so far, expressed as a raw integer in the input
            token's decimals. Populated for partial fills while `status` is
            still `pending`, and for fully filled orders.
        submitted_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Submitted At
          description: ISO 8601 UTC timestamp at which the order was submitted.
        updated_at:
          type: string
          title: Updated At
          description: ISO 8601 UTC timestamp at which this status was read.
      type: object
      required:
        - order_hash
        - status
        - updated_at
      title: OrderStatus
      description: Returned from `GET /order/{hash}` — current state of a relayed order.
      example:
        fill_price_usd: '354.92'
        fill_tx_hash: '0x4076aabd550ad04da515547cb108f0ad4bc84e4e26933771f578d2f41edcd614'
        filled_amount: '0.007090'
        order_hash: '0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b'
        status: filled
        submitted_at: '2026-05-04T11:42:31Z'
        updated_at: '2026-05-04T11:42:46Z'
    TokenizedAssetsErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: >-
            Short human-readable error label (e.g. `Market not found.`,
            `Insufficient liquidity`, `Order not found.`).
        message:
          type: string
          title: Message
          description: Human-readable explanation.
      type: object
      required:
        - error
        - message
      title: TokenizedAssetsErrorResponse
      description: >-
        Standard error envelope returned by every non-2xx response.


        Surfaced in OpenAPI ``responses`` declarations so SDK consumers can
        decode

        failures uniformly without inspecting per-status-code shapes.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Compass API Key. Get your key
        [here](https://www.compasslabs.ai/dashboard).

````