Skip to main content
GET
/
v1
/
orderbook
/
fetch_orderbook
Fetch orderbook
curl --request GET \
  --url https://github.com/openpx-trade/openpx/v1/orderbook/fetch_orderbook
{
  "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 the full-depth L2 orderbook (bids + asks) for one asset_id.

Query Parameters

asset_id
string
required

Response

Success.

Full-depth L2 orderbook for one asset.

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").