Skip to main content
GET
/
v1
/
perps
/
depth
Get Order Book Depth
curl --request GET \
  --url https://api.ondoperps.xyz/v1/perps/depth \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "result": {
    "market": "AAPL-USD.P",
    "time": "2025-03-05T14:30:00Z",
    "bids": [
      [
        "227.40",
        "100.0"
      ],
      [
        "227.30",
        "250.0"
      ]
    ],
    "asks": [
      [
        "227.60",
        "80.0"
      ],
      [
        "227.70",
        "150.0"
      ]
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

market
string
required

Trading market to query

Example:

"AAPL-USD.P"

depth
integer

Number of price levels to return per side. Defaults to 10. Maximum 100.

Required range: x <= 100
Example:

10

Response

Order book snapshot

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

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

Example:

""

result
object