Bithumb API 분석 호가 화면 - donggeonoh/bithumb-techcamp-ios-1st GitHub Wiki
Bithumb public API - Orderbook
- 매수 요청 내역 :
bids
- Currency 수량 :
quantity
- Currency 거래가:
price
- Currency 수량 :
- 매도 요청 내역 :
asks
- Currency 수량 :
quantity
- Currency 거래가:
price
- Currency 수량 :
- URL:
https://api.bithumb.com/public/orderbook/{order_currency}_{payment_currency}
{
"status" : "0000",
"data" : {
"timestamp" : 1417142049868,
"order_currency" : "BTC",
"payment_currency" : "KRW",
"bids": [
{
"quantity" : "6.1189306",
"price" : "504000"
},
{
"quantity" : "10.35117828",
"price" : "503000"
}
],
"asks": [
{
"quantity" : "2.67575",
"price" : "506000"
},
{
"quantity" : "3.54343",
"price" : "507000"
}
]
}
}
WebSocket public API - orderbookdepth
-
주문 타입:
orderType
-
호가 :
price
-
잔량:
quantity
-
URL: wss://pubwss.bithumb.com/pub/ws
-
구독 요청 형식:
- type: orderbookdepth
- symbols: 심볼_통화 (BTC_KRW 등...)
{
"type" : "orderbookdepth",
"content" : {
"list" : [
{
"symbol" : "BTC_KRW",
"orderType" : "ask", // 주문타입 – bid / ask
"price" : "10593000", // 호가
"quantity" : "1.11223318", // 잔량
"total" : "3" // 건수
},
{"symbol" : "BTC_KRW", "orderType" : "ask", "price" : "10596000", "quantity" : "0.5495", "total" : "8"},
{"symbol" : "BTC_KRW", "orderType" : "ask", "price" : "10598000", "quantity" : "18.2085", "total" : "10"},
{"symbol" : "BTC_KRW", "orderType" : "bid", "price" : "10532000", "quantity" : "0", "total" : "0"},
{"symbol" : "BTC_KRW", "orderType" : "bid", "price" : "10572000", "quantity" : "2.3324", "total" : "4"},
{"symbol" : "BTC_KRW", "orderType" : "bid", "price" : "10571000", "quantity" : "1.469", "total" : "3"},
{"symbol" : "BTC_KRW", "orderType" : "bid", "price" : "10569000", "quantity" : "0.5152", "total" : "2"}
],
"datetime":1580268255864325 // 일시
}
}