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

# Get Orders

> Retrieve all orders associated with your API key. Returns a list of all orders with their current status and execution details. Optionally filter by wallet address.



## OpenAPI

````yaml openapi.json get /v1/order
openapi: 3.0.0
info:
  title: Swaps API
  description: The Swaps API documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://swap-api.flux.fun
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags: []
paths:
  /v1/order:
    get:
      tags:
        - Orders
      summary: Get Orders
      description: >-
        Retrieve all orders associated with your API key. Returns a list of all
        orders with their current status and execution details. Optionally
        filter by wallet address.
      operationId: OrdersController_getOrders
      parameters:
        - name: walletAddress
          required: false
          in: query
          description: >-
            Filter orders by wallet address. If not provided, returns all orders
            associated with your API key (up to 100 most recent).
          schema:
            type: string
      responses:
        '200':
          description: List of orders
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrdersResponseDto'
      security:
        - api-key: []
components:
  schemas:
    GetOrdersResponseDto:
      type: object
      properties:
        orders:
          type: array
          items:
            $ref: '#/components/schemas/IntentFullResponseDto'
      required:
        - orders
    IntentFullResponseDto:
      type: object
      properties:
        id:
          type: string
          example: intent_abc123xyz
          description: Unique order intent ID
        clientId:
          type: string
          example: client-order-123
          description: Client-provided order ID
          nullable: true
        action:
          type: object
          description: Order action details
          example:
            orderType: MarketOrder
            order:
              quoteToken:
                type: chain
                data:
                  tokenId: USDC
                  chainId: 8453
                  contractAddress: 0x...
              baseToken:
                type: kalshi
                data:
                  marketId: BTC-100K-2024
                  side: 'yes'
              orderType: BUY
              baseQuantity: '100'
              maxQuoteQuantityIn: '50.00'
            chainId: 8453
        createdAt:
          type: string
          example: '2024-01-12T10:00:00.000Z'
          description: When the order was created
        status:
          type: string
          enum:
            - pending
            - executing
            - validated
            - completed
            - failed
          example: validated
        balanceValidatedAt:
          type: string
          example: '2024-01-12T10:00:05.000Z'
          description: When balance was validated
          nullable: true
        txnFilledAt:
          type: string
          example: '2024-01-12T10:00:10.000Z'
          description: When transaction was filled
          nullable: true
        transactionHash:
          type: string
          example: 0xabc123...
          description: Blockchain transaction hash
          nullable: true
        isComplete:
          type: boolean
          example: false
          description: Whether the order is complete
        terminationReason:
          type: string
          example: null
          description: Reason for termination if failed
          nullable: true
      required:
        - id
        - clientId
        - action
        - createdAt
        - status
        - balanceValidatedAt
        - txnFilledAt
        - transactionHash
        - isComplete
        - terminationReason
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key

````