Skip to main content
GET
Get market order book history

Authorizations

X-API-Key
string
header
required

Path Parameters

id_or_slug
string
required

Market ID or market slug.

Required string length: 1 - 200
Example:

"618831"

Query Parameters

start_ts
string
required

Inclusive range start. Accepts ISO 8601 timestamp or Unix seconds.

Examples:

"2025-09-04T00:00:00Z"

"1756944000"

end_ts
string
required

Exclusive range end. Accepts ISO 8601 timestamp or Unix seconds.

Examples:

"2025-09-05T00:00:00Z"

"1757030400"

resolution
enum<string>
required

Aggregation bucket size.

Available options:
1s,
1m,
5m,
10m,
15m,
1h,
6h,
1d
limit
integer
default:100

Maximum number of points to return in this page. Default: 100, max: 200.

Required range: x >= 1
Example:

100

cursor
string | null

Opaque cursor from a previous response metadata.next_cursor.

Response

Historical order book snapshots for all market tokens.

Response for GET /markets/{id_or_slug}/books.

market_id
string

Canonical market ID.

Example:

"618831"

resolution
string

Applied resolution.

Example:

"1h"

tokens
Tokens · object

Mapping of token label to token ID.

Example:
data
Data · object

Order book snapshots grouped by token label.

metadata
HistoryPageMetadata · object

Pagination metadata for this history page.