> ## 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.

# List Spot trades

> Market-wide executions, not your private fills. aggressor_side identifies the taker side.

See the [Spot API guide](/api-reference/spot-api-guide).



## OpenAPI

````yaml /api-reference/rest-spec.json get /v1/spot/trades
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/trades:
    get:
      tags:
        - Spot market data
      summary: List Spot trades
      description: >-
        Market-wide executions, not your private fills. aggressor_side
        identifies the taker side.


        See the [Spot API guide](/api-reference/spot-api-guide).
      operationId: getSpotTrades
      parameters:
        - name: market
          in: query
          required: true
          description: Exact Spot identifier.
          schema:
            type: string
            example: NVDA-USDC
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque nextCursor from the preceding response; keep filters
            unchanged.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Page-size request; the service can apply a lower historical cap.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 1000
      responses:
        '200':
          description: Success. Inspect item-level outcomes for batch operations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/SpotTrade'
                    nullable: true
                  pageInfo:
                    type: object
                    properties:
                      prevCursor:
                        type: string
                        description: ''
                      nextCursor:
                        type: string
                        description: ''
                required:
                  - success
        '400':
          description: Validation error; inspect error_code and error.
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security: []
components:
  schemas:
    SpotTrade:
      type: object
      required:
        - market
        - price
        - size
        - cost
        - aggressor_side
        - time
        - id
      properties:
        market:
          type: string
          description: Trading market
          example: SPY-USDC
        price:
          type: string
          description: Trade price
          example: '1.55'
        size:
          type: string
          description: Trade size in base currency
          example: '5.403'
        cost:
          type: string
          description: Trade cost in quote currency
          example: '8.37465'
        aggressor_side:
          type: string
          description: Side of the aggressing (taker) order
          enum:
            - buy
            - sell
          example: buy
        time:
          type: string
          format: date-time
          description: Time the trade occurred
          example: '2022-06-16T12:35:11.123456Z'
        id:
          type: string
          description: Trade/fill ID
          example: 70a37d8f972f2494837f9dba8364cbb4
  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

````

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