📘

Custom function for Orderbook Unit quantity is added from v1.1.0

From v1.1.0, you can adjust the quantity of Orderbook Units within the maximum provided amount (15) only for orderbook type packets.

Please input the market code and unit quantity in the codes as follows.

Format: {code}.{count}
ex) "KRW-BTC.5", "BTC-XRP.3"

Response

Field Name
Simplified Format (format: SIMPLE)
Description
TypeValue
typetyTypeStringorderbook
codecdMarket code (ex. KRW-BTC)String
total_ask_sizetasTotal remaining volume of asking ordersDouble
total_bid_sizetbsTotal remaining volume of bidding ordersDouble
orderbook_unitsobuOrder book detailsList of Objects
ask_priceapAsk priceDouble
bid_pricebpBid priceDouble
ask_sizeasRemaining volume of askingDouble
bid_sizebsRemaining volume of biddingDouble
timestamptmsTimestamp (millisecond)Long

Example

Request

[
  {
    "ticket": "test"
  },
  {
    "type": "orderbook",
    "codes": [
      "KRW-BTC",
      "KRW-ETH.3"
    ]
  },
  {
    "format": "DEFAULT"
  }
]

Response

{
  "type": "orderbook",
  "code": "KRW-BTC",
  "timestamp": 1676965698792,
  "total_ask_size": 2.0177137199999997,
  "total_bid_size": 4.04145221,
  "orderbook_units": [
    {
      "ask_price": 3.2312E7,
      "bid_price": 3.2311E7,
      "ask_size": 0.00110234,
      "bid_size": 0.00934746
    },
    {
      "ask_price": 3.2315E7,
      "bid_price": 3.231E7,
      "ask_size": 0.60658218,
      "bid_size": 0.05601728
    },
    {
      "ask_price": 3.2316E7,
      "bid_price": 3.2309E7,
      "ask_size": 0.02915422,
      "bid_size": 0.00015785
    },
    {
      "ask_price": 3.2317E7,
      "bid_price": 3.2296E7,
      "ask_size": 0.13956053,
      "bid_size": 0.38264463
    },
    {
      "ask_price": 3.2318E7,
      "bid_price": 3.2295E7,
      "ask_size": 0.01332349,
      "bid_size": 0.07026586
    },
    {
      "ask_price": 3.2319E7,
      "bid_price": 3.2294E7,
      "ask_size": 0.00478182,
      "bid_size": 0.6125
    },
    {
      "ask_price": 3.232E7,
      "bid_price": 3.2293E7,
      "ask_size": 0.95080337,
      "bid_size": 0.19193117
    },
    {
      "ask_price": 3.2321E7,
      "bid_price": 3.2292E7,
      "ask_size": 0.00886944,
      "bid_size": 0.88056326
    },
    {
      "ask_price": 3.2322E7,
      "bid_price": 3.2291E7,
      "ask_size": 0.06620151,
      "bid_size": 0.07096838
    },
    {
      "ask_price": 3.2323E7,
      "bid_price": 3.229E7,
      "ask_size": 0.04993977,
      "bid_size": 0.68036084
    },
    {
      "ask_price": 3.2324E7,
      "bid_price": 3.2289E7,
      "ask_size": 0.03910213,
      "bid_size": 0.68134141
    },
    {
      "ask_price": 3.2325E7,
      "bid_price": 3.2288E7,
      "ask_size": 0.02430250,
      "bid_size": 0.00015488
    },
    {
      "ask_price": 3.2326E7,
      "bid_price": 3.2287E7,
      "ask_size": 0.01155998,
      "bid_size": 0.10093361
    },
    {
      "ask_price": 3.2327E7,
      "bid_price": 3.2285E7,
      "ask_size": 0.03035363,
      "bid_size": 0.28905978
    },
    {
      "ask_price": 3.2328E7,
      "bid_price": 3.2283E7,
      "ask_size": 0.04207681,
      "bid_size": 0.01520580
    }
  ],
  "stream_type": "REALTIME"
}