Skip to main content
GET
/
v2
/
opinion
/
orderbooks
Get Opinion Orderbooks
curl --request GET \
  --url https://api.predexon.com/v2/opinion/orderbooks \
  --header 'x-api-key: <api-key>'
{
  "snapshots": [
    {
      "market_id": 123,
      "token_id": "<string>",
      "timestamp": 123,
      "bids": [
        {
          "size": 123,
          "price": 123
        }
      ],
      "asks": [
        {
          "size": 123,
          "price": 123
        }
      ],
      "best_bid": 123,
      "best_ask": 123,
      "bid_depth": 123,
      "ask_depth": 123
    }
  ],
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}
Fetch historical orderbook snapshots for an Opinion market. Data starts from March 10th, 2026. YES-side orderbook only.
Free & Unlimited. This endpoint does not count toward your monthly usage limits on any plan.
ConstraintValue
limit1–200 (default 100)
Timestamps are in milliseconds for this endpoint.

Authorizations

x-api-key
string
header
required

Query Parameters

market_id
integer
required

The Opinion market ID

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

Opinion orderbooks endpoint response.

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

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