특정 종목의 체결 정보 모니터링
특정 거래 종목에 체결이 발생한 시점에 체결 정보를 내려줍니다.
Topic
| 필드 | 타입 | 설명 |
|---|---|---|
| quote_currency | String | 마켓 기준 통화 |
| target_currency | String | 조회 요청할 종목 |
Stream Fields
| 필드 | 축약 필드 | 타입 | 설명 |
|---|---|---|---|
| response_type | r | String | DATA로 고정 |
| channel | c | String | TRADE로 고정 |
| data | d | Object | 구독 data 정보 |
| data.quote_currency | d.qc | String | 마켓 기준 통화 (예: KRW) |
| data.target_currency | d.tc | String | 조회한 종목의 심볼 (예: BTC) |
| data.id | d.i | String | 티커 별 ID 값으로 클수록 최신 티커 정보 |
| data.timestamp | d.t | Number | 타임스탬프 (millisecond) |
| data.price | d.p | String | 체결 가격 |
| data.qty | d.q | String | 체결 수량 |
| data.is_seller_maker | d.sm | Boolean | 매도자가 maker인지 여부 |
주문 응답 예시
DEFAULT Format Request
{
"request_type":"SUBSCRIBE",
"channel":"TRADE",
"topic":{
"quote_currency":"KRW",
"target_currency":"XRP"
}
}DEFAULT Format Response
{
"response_type":"SUBSCRIBED",
"channel":"TRADE",
"data":{
"quote_currency":"KRW",
"target_currency":"XRP"
}
}DEFAULT Format Stream
{
"response_type":"DATA",
"channel":"TRADE",
"data":{
"quote_currency":"KRW",
"target_currency":"XRP",
"id":"1693560450996001",
"timestamp":1693560450996,
"price":"688.3",
"qty":"5000",
"is_seller_maker":true
}
}SHORT Format Request
{
"request_type":"SUBSCRIBE",
"channel":"TRADE",
"topic":{
"quote_currency":"KRW",
"target_currency":"XRP"
},
"format":"SHORT"
}SHORT Format Response
{
"response_type":"SUBSCRIBED",
"channel":"TRADE",
"data":{
"quote_currency":"KRW",
"target_currency":"XRP"
}
}SHORT Format Stream
{
"r":"DATA",
"c":"TRADE",
"d":{
"qc":"KRW",
"tc":"XRP",
"i":"1693560563084003",
"t":1693560563084,
"p":"688.3",
"q":"290.745",
"sm":false
}
}