v1.1.0 Orderbook Unit ๊ฐฏ์ ์ปค์คํ ์์ ๊ธฐ๋ฅ ์ถ๊ฐ
v1.1.0 ๋ถํฐ orderbook ํ์ ์ ํจํท์ ํํ์ฌ Orderbook Unit์ ๊ฐฏ์๋ฅผ ์ต๋ ์ ๊ณต ๊ฐฏ์ (15๊ฐ) ์์์ ์ํ๋ ๋งํผ ์กฐ์ ํ์ฌ ํธ์ถ ๊ฐ๋ฅํฉ๋๋ค. ๊ธฐ์กด์
codes
ํญ๋ชฉ์ ์์ธ ์ข ๋ชฉ๊ณผ ์ํ๋ Unit ๊ฐฏ์๋ฅผ ๋ฃ์ด์ฃผ์๋ฉด ๋ฉ๋๋ค.ํ์:
{code}.{count}
ex) "KRW-BTC.5", "BTC-XRP.3"
Response
ํ๋๋ช | ์ถ์ฝํ (format: SIMPLE) | ๋ด์ฉ | ํ์ | ๊ฐ |
---|---|---|---|---|
type | ty | ํ์ | String | orderbook : ํธ๊ฐ |
code | cd | ๋ง์ผ ์ฝ๋ (ex. KRW-BTC) | String | |
total_ask_size | tas | ํธ๊ฐ ๋งค๋ ์ด ์๋ | Double | |
total_bid_size | tbs | ํธ๊ฐ ๋งค์ ์ด ์๋ | Double | |
orderbook_units | obu | ํธ๊ฐ | List of Objects | |
ask_price | ap | ๋งค๋ ํธ๊ฐ | Double | |
bid_price | bp | ๋งค์ ํธ๊ฐ | Double | |
ask_size | as | ๋งค๋ ์๋ | Double | |
bid_size | bs | ๋งค์ ์๋ | Double | |
timestamp | tms | ํ์์คํฌํ (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"
}