사용자의 최근 거래 100개를 보내주는 채널
1. Request
param | type | description |
---|---|---|
type | string | 'subscribe' 또는 'unsubscribe' |
channel | string | 'trade_history' |
// request
{
"type": "subscribe",
"channel": 'trade_history'
}
2. Responses
param | type | description |
---|---|---|
channel | string | 'trade_history' |
data | TRADE[] | TRADE 타입은 아래 참조 |
reset | boolean | true: 기존 데이터를 포함하여 재발송하는경우 |
field | type | description |
---|---|---|
id | text | 거래 ID |
order_id | text | 거래를 체결 시킨 주문 ID |
market_id | text | 마켓 ID |
side | text | "buy" 또는 "sell" |
fee_amount | text | 정산 된 거래 수수료 (아직 정산 되지 않은 거래는 빈 문자열 '') |
fee_currency_id | text | 거래 수수료 지불 화폐 (아직 정산 되지 않은 거래는 빈 문자열 '') |
status | string | 현재 거래 진행 상태 'executed': 체결되었으나 아직 수수료가 정산 되지 않음. |
price | string | 거래 가격 |
quantity | string | 거래 수량 |
cost | string | 거래 가격 * 수량 |
time | string | 거래 시간 |