Spot market data

Get Spot order book

Changed on

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

See the Spot API guide.

get/v1/spot/depth

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/spot/depth
  • Auth
    none required

Query parameters

marketstring required
Example:NVDA-USDC

Exact Spot identifier.

depthinteger

Response

Success. Inspect item-level outcomes for batch operations.

successboolean required

Example response

{
  "result": {
    "market": "SPY-USDC",
    "time": "2022-06-16T12:35:11.123456Z",
    "bids": [
      [
        "1.55",
        "100.0"
      ]
    ],
    "asks": [
      [
        "1.55",
        "100.0"
      ]
    ]
  }
}

Changes