Skip to main content
GET
/
exchange
/
orderbook
L2 orderbook
curl --request GET \
  --url https://hyper.polynode.dev/exchange/orderbook
{
  "coin": "<string>",
  "time": 123,
  "levels": [
    [
      {
        "px": "<string>",
        "sz": "<string>",
        "n": 123
      }
    ]
  ]
}

Documentation Index

Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt

Use this file to discover all available pages before exploring further.

Returns the L2 orderbook for a single asset. Each level has px (price), sz (aggregate size), and n (number of resting orders at that level). levels[0] = bids (descending), levels[1] = asks (ascending).

Example

curl -H "x-api-key: YOUR_KEY" "https://hyper.polynode.dev/v2/orderbook?coin=BTC"
{
  "coin": "BTC",
  "time": 1776093910691,
  "levels": [
    [
      {"px": "71843.0", "sz": "16.5998", "n": 51},
      {"px": "71842.0", "sz": "1.16671", "n": 6}
    ],
    [
      {"px": "71844.0", "sz": "12.3456", "n": 38},
      {"px": "71845.0", "sz": "0.98765", "n": 4}
    ]
  ]
}
FieldDescription
coinAsset name
timeTimestamp (Unix ms)
levels[0]Bids (descending by price)
levels[1]Asks (ascending by price)
pxPrice level
szTotal size at this level
nNumber of orders at this level

Query Parameters

coin
string
required
network
string
default:mainnet

Response

200 - application/json

Orderbook snapshot

coin
string
time
integer
levels
object[][]

Index 0 = bids (descending), index 1 = asks (ascending)