Skip to main content
GET
/
v1
/
polymarket
/
orderbooks
Get Orderbooks
curl --request GET \
  --url https://api.predexon.com/v1/polymarket/orderbooks \
  --header 'x-api-key: <api-key>'
{
  "snapshots": [
    {
      "asks": [
        {
          "size": "<string>",
          "price": "<string>"
        }
      ],
      "bids": [
        {
          "size": "<string>",
          "price": "<string>"
        }
      ],
      "hash": "<string>",
      "assetId": "<string>",
      "timestamp": 123,
      "tickSize": "<string>",
      "indexedAt": 123,
      "market": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at https://dashboard.predexon.com

Query Parameters

token_id
string
required

The token ID (asset) for the Polymarket market

start_time
integer
required

Start time in Unix timestamp (milliseconds)

end_time
integer
required

End time in Unix timestamp (milliseconds)

limit
integer
default:100

Maximum number of snapshots to return

Required range: 1 <= x <= 200
pagination_key
string | null

Pagination key to get the next chunk of data

Response

Successful Response

Orderbooks endpoint response.

snapshots
OrderbookSnapshot · object[]
required
pagination
CursorPagination · object
required

Cursor-based pagination for endpoints that don't support offset.