Bithumb API 분석 체결 내역 화면 - donggeonoh/bithumb-techcamp-ios-1st GitHub Wiki

Bithumb Public API - Transaction history

  • 체결 종류 : type
  • 체결 가격 : price
  • 체결 수량 : units_traded
  • 체결 시각 : transaction_date
  • URL: https://api.bithumb.com/public/transaction_history/{symbol}_KRW?count=1
{
    "status": "0000",
    "data": [
        {
            "transaction_date": "2022-02-23 14:17:52",
            "type": "bid",
            "units_traded": "0.0117",
            "price": "45941000",
            "total": "537509"
        }
    ]
}

Bithumb WebSocket public API - Transaction history

  • 체결 종류 : buySellGb
  • 체결 가격 : contPrice
  • 체결 수량 : contQty
  • 체결 시각 : contDtm
  • URL : wss://pubwss.bithumb.com/pub/ws
  • {"type":"transaction", "symbols":["BTC_KRW" , "ETH_KRW", ...]}
{
    "type" : "transaction",
    "content" : {
        "list" : [
            {
                "symbol" : "BTC_KRW",                    // 통화코드
                "buySellGb" : "1",                            // 체결종류(1:매도체결, 2:매수체결)
                "contPrice" : "10579000",                    // 체결가격
                "contQty" : "0.01",                            // 체결수량
                "contAmt" : "105790.00",                    // 체결금액
                "contDtm" : "2020-01-29 12:24:18.830039",    // 체결시각
                "updn" : "dn"                                // 직전 시세와 비교 : up-상승, dn-하락
            }
        ]
    }
}