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

# Get Orders

> Retrieve your recent orders.



## OpenAPI

````yaml GET /account/orders
openapi: 3.1.0
info:
  title: Options API
  version: 1.0.0
  description: >-
    REST endpoints for Rails Options. Base URLs vary by environment — see the
    Environments page. Authorize with the access token obtained from the Auth
    API.
servers:
  - url: https://api-options.sandbox.rails.xyz
security:
  - bearerAuth: []
paths:
  /account/orders:
    get:
      summary: Get Orders
      description: Returns your recent options orders, most recent first.
      operationId: getOptionsOrders
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum number of orders to return. Defaults to `50`.
          schema:
            type: integer
      responses:
        '200':
          description: Recent orders
          content:
            application/json:
              schema:
                type: object
                properties:
                  orders:
                    type: array
                    items:
                      type: object
                      properties:
                        orderId:
                          type: string
                          description: Order identifier.
                        market:
                          type: string
                          description: Contract name.
                        side:
                          type: string
                          description: '`buy` or `sell`.'
                        type:
                          type: string
                          description: 'Option type: `C` or `P`.'
                        status:
                          type: string
                          description: >-
                            Final order status, e.g. `filled`, `cancelled`,
                            `rejected`.
                        price:
                          type: string
                          description: Order price.
                        quantity:
                          type: string
                          description: Order quantity.
                        filledQuantity:
                          type: string
                          description: Quantity filled.
                        leverage:
                          type: string
                          description: Leverage (always `1` for options).
                        createdAt:
                          type: integer
                          description: Creation time (ms since epoch).
                        updatedAt:
                          type: integer
                          description: Last update time (ms since epoch).
              example:
                orders:
                  - orderId: 01J9G4K19776J1CTA8YXA8AA5H
                    market: BTC-3JUL26-62000-C
                    side: buy
                    type: C
                    status: filled
                    price: '120.00'
                    quantity: '2'
                    filledQuantity: '2'
                    leverage: '1'
                    createdAt: 1751284800000
                    updatedAt: 1751284803120
                  - orderId: 01J9G51ABC7QK2DTB9ZYC9BB6J
                    market: BTC-3JUL26-60000-P
                    side: sell
                    type: P
                    status: cancelled
                    price: '15.00'
                    quantity: '3'
                    filledQuantity: '0'
                    leverage: '1'
                    createdAt: 1751288400000
                    updatedAt: 1751288460500
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````