Page cover

Get Order Book

requires auth

Getting Order Book

Endpoint to get the L2 order book data for a specific asset pair.

GET /api/v1/routing/account/{accountId}/book

Path Parameters:

Path
Type
Description

accountId*

string

your account ID

Query Parameters:

Name
Type
Description

assetPair*

string

Symbol for pair asset. (USDT/USD)

levels

integer (int32)

how many levels to show bids and asks. Default: 25

Example

GET api/v1/routing/account/NNCV3kWoo0Se_bUUl_8yRg/book?assetPair=USDT/USD&levels=2
{
  "nbbo": {
    "spread": 0.0005003950125,
    "ask": [1.0008502000125,1.0],
    "bid": [1.000349805,100.0]
  },
  "asks": [
    [1.0008502000125,99940.0309844],
    [1.0009127556475,399735.14018032]
  ],
  "bids": [
    [1.000349805,9993499.653],
    [1.000299780012,9993499.653]
  ],
  "status": "ok",
  "httpStatusCode": 200
}

Last updated