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

# Get Spot order book

> Book snapshot with levels serialized as [price, size] decimal-string arrays. Use depthBooksSpot for ongoing updates instead of polling.

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



## OpenAPI

````yaml /api-reference/rest-spec.json get /v1/spot/depth
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/depth:
    get:
      tags:
        - Spot market data
      summary: Get Spot order book
      description: >-
        Book snapshot with levels serialized as [price, size] decimal-string
        arrays. Use depthBooksSpot for ongoing updates instead of polling.


        See the [Spot API guide](/api-reference/spot-api-guide).
      operationId: getSpotDepth
      parameters:
        - name: market
          in: query
          required: true
          description: Exact Spot identifier.
          schema:
            type: string
            example: NVDA-USDC
        - name: depth
          in: query
          required: false
          description: ''
          schema:
            type: integer
            default: 10
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Success. Inspect item-level outcomes for batch operations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    $ref: '#/components/schemas/SpotBookSnapshot'
                required:
                  - success
        '400':
          description: Validation error; inspect error_code and error.
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security: []
components:
  schemas:
    SpotBookSnapshot:
      type: object
      required:
        - market
        - time
        - bids
        - asks
      properties:
        market:
          type: string
          description: Trading market
          example: SPY-USDC
        time:
          type: string
          format: date-time
          description: Snapshot timestamp
          example: '2022-06-16T12:35:11.123456Z'
        bids:
          type: array
          description: Best bid price levels, sorted descending by price
          items:
            $ref: '#/components/schemas/BookLevel'
          nullable: true
        asks:
          type: array
          description: Best ask price levels, sorted ascending by price
          items:
            $ref: '#/components/schemas/BookLevel'
          nullable: true
        depthLevels:
          type: string
          description: Optional price grouping increment.
    BookLevel:
      type: array
      description: Price level represented as [price, quantity]
      items:
        type: string
      minItems: 2
      maxItems: 2
      example:
        - '1.55'
        - '100.0'
  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.