v1

latestOpenAPI 3.0.32026-07-1492428.9 KB
Exchange

/exchange/depth

Returns the current state of the orderbook.

get/v1/exchange/depth

Query parameters

symbolstring required

Market symbol to get the orderbook depth for.

limitinteger

Maximum number of bids and asks to return. Default 500; max 1000.

Response

Orderbook depth

symbolstring required

Market symbol.

lastUpdateIdinteger required

Count indicating the number of changes in orderbook state.

updatedAtMillisinteger required

Timestamp at which the last change in orderbook state took place, in milliseconds.

responseSentAtMillisinteger required

The time at which the orderbook server sent the response, in milliseconds.

bestBidPriceE9string required

The best bid price on orderbook at the moment (e9 format).

bestBidQuantityE9string required

The best bid quantity on orderbook at the moment (e9 format).

bestAskPriceE9string required

The best ask price on orderbook at the moment (e9 format).

bestAskQuantityE9string required

The best ask quantity on orderbook at the moment (e9 format).

Example response

{
  "symbol": "0x123",
  "updatedAtMillis": 1628078846123,
  "lastUpdateId": 56789,
  "responseSentAtMillis": 1628078846133,
  "bestBidPriceE9": "4000000000",
  "bestBidQuantityE9": "431000000000",
  "bestAskPriceE9": "4000002000",
  "bestAskQuantityE9": "12000000000",
  "bidsE9": [
    [
      "4000000000",
      "431000000000"
    ]
  ],
  "asksE9": [
    [
      "4000002000",
      "12000000000"
    ]
  ]
}