Skip to main content
GET
/
v1
/
orderbook
/
fetch_orderbooks_batch
Fetch orderbooks batch
curl --request GET \
  --url https://github.com/openpx-trade/openpx/v1/orderbook/fetch_orderbooks_batch
[
  {
    "asks": [
      {
        "price": 123,
        "size": 123
      }
    ],
    "asset_id": "<string>",
    "bids": [
      {
        "price": 123,
        "size": 123
      }
    ],
    "hash": "<string>",
    "last_update_id": 1,
    "timestamp": "2023-11-07T05:31:56Z"
  }
]
Fetch full-depth L2 orderbooks for multiple assets in one round-trip.

Query Parameters

asset_ids
string[]
required

Response

Success.

asks
object[]
required

Ask levels, sorted ascending by price.

asset_id
string
required

The orderable asset — Kalshi market ticker or Polymarket CTF token id (e.g. "KXBTCD-25APR1517").

bids
object[]
required

Bid levels, sorted descending by price.

hash
string | null

Polymarket book-state hash for replay integrity; null on Kalshi.

last_update_id
integer<uint64> | null

Monotonic sequence id from upstream; null when not provided.

Required range: x >= 0
timestamp
string<date-time> | null

Upstream snapshot time in UTC (e.g. "2026-04-25T12:00:00Z").