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

# Export Spot orders

> CSV export, not the JSON envelope. Only orders with fills are exported; this is not an open-order snapshot.

See the [Spot API guide](/api-reference/spot-api-guide). Requires authentication; API-key scope: `view`.



## OpenAPI

````yaml /api-reference/rest-spec.json get /v1/spot/orders/csv
openapi: 3.0.3
info:
  title: Ondo Perps REST API
  version: '1.0'
  description: >-
    REST API for Ondo Perps: account, wallet, deposits/withdrawals, API keys,
    Spot trading, internal transfers, and perpetual futures trading.
servers:
  - url: https://api.ondoperps.xyz
security:
  - BearerAuth: []
paths:
  /v1/spot/orders/csv:
    get:
      tags:
        - Spot trading
      summary: Export Spot orders
      description: >-
        CSV export, not the JSON envelope. Only orders with fills are exported;
        this is not an open-order snapshot.


        See the [Spot API guide](/api-reference/spot-api-guide). Requires
        authentication; API-key scope: `view`.
      operationId: getSpotOrdersCsv
      parameters:
        - name: market
          in: query
          required: false
          description: Exact Spot identifier.
          schema:
            type: string
            example: NVDA-USDC
        - name: startTime
          in: query
          required: false
          description: Unix milliseconds.
          schema:
            type: integer
        - name: endTime
          in: query
          required: false
          description: Unix milliseconds.
          schema:
            type: integer
        - name: status
          in: query
          required: false
          description: ''
          schema:
            type: string
        - name: orderType
          in: query
          required: false
          description: ''
          schema:
            type: string
      responses:
        '200':
          description: CSV file.
          content:
            text/csv:
              schema:
                type: string
        '400':
          description: Validation error; inspect error_code and error.
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  responses:
    TooManyRequests:
      description: Rate limit exceeded. Slow down request frequency.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                description: Human-readable error message
              error_code:
                type: string
                enum:
                  - too_many_requests
          example:
            success: false
            error: Description of the error
            error_code: too_many_requests
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: ONDO-KEY-ID
      description: >-
        Also send ONDO-TIMESTAMP and ONDO-SIGN. See
        /api-reference/api_key_authentication for exact HMAC signing; the key ID
        alone is insufficient.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.