---
title: "Get Order Book Depth"
method: GET
path: "/v1/perps/depth"
tags: ["Market Data"]
---

# Get Order Book Depth

`GET /v1/perps/depth`

Returns the current order book depth snapshot for a market.

## Query parameters

- `market` string, required
- `depth` integer

## Response `200`

Order book snapshot

- object
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `error_code` string — Semantic error code. See each endpoint's error responses for the specific codes it can return.
  - `deprecated` string — Deprecation notice, if applicable
  - `result` ApiBookSnapshot
    - `market` string, required — Trading market
    - `time` string, date-time, required — Snapshot timestamp
    - `bids` BookLevel[], required — Best bid price levels, sorted descending by price
      - string[] — Price level represented as [price, quantity]
    - `asks` BookLevel[], required — Best ask price levels, sorted ascending by price
      - string[] — Price level represented as [price, quantity]

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
