내 주문 및 체결(MyOrder) v1

내 주문 및 체결 v1 응답 스펙(Deprecated). v2와 동시 운영 후 종료 예정.

Deprecated — Private WebSocket v1 응답 스펙

v1은 v2와 한시적으로 동시 제공되며 2026년 9월 30일 종료 예정입니다.

v1에 최근 추가된 응답 값

  • order_type: best(최유리 지정가)
  • cancel_type: tif_cancel(주문 조건에 의한 취소), stp_cancel(자전거래 감지에 의한 취소)
  • canceling_uuid: STP 취소 시 충돌을 일으킨 상대 주문 ID

v2 신규 필드 time_in_force는 v1에 추가되지 않습니다. 주문 처리 조건이 필요하면 v2로 마이그레이션하세요.

Request

요청은 ticket, type, format 필드로 구성됩니다. 자세한 사항은 요청 방법 및 포맷을 참고하세요.

Type Field

수신하고 싶은 시세 정보를 나열하는 필드입니다.

필드명타입내용필수 여부기본 값
typeString데이터 타입
myOrder: 내 주문
O
codesList마켓 코드 리스트
• 대문자로 요청해야 합니다.
X생략하거나 빈 배열로 요청할 경우 모든 마켓에 대한 정보를 수신합니다.

Response

필드명축약형(format: SIMPLE)내용타입
typety타입StringmyOrder: 내 주문
codecd마켓 코드(예: KRW-BTC)String
uuiduid주문 고유 아이디String
client_order_idcoid사용자 정의 식별 IDString
ask_bidab매수/매도 구분StringASK: 매도
BID: 매수
order_typeot주문 타입Stringlimit: 지정가 주문
price: 시장가 주문(매수)
market: 시장가 주문(매도)
best: 최유리 지정가
states주문 상태Stringwait: 체결 대기
trade: 체결 발생
done: 전체 체결 완료
cancel: 주문 취소
trade_uuidtuid체결의 고유 아이디String
pricep주문 가격,
체결 가격(state: trade일 때)
Double
volumev주문량,
체결량(state: trade일 때)
Double
remaining_volumerv체결 후 남은 주문 양Double
executed_volumeev체결된 양Double
trades_counttc해당 주문에 걸린 체결 수Double
reserved_feersf수수료로 예약된 비용Double
remaining_feermf남은 수수료Double
paid_feepf사용된 수수료Double
executed_fundsef체결된 금액Double
trade_timestampttms체결 타임스탬프(milliseconds)Long
order_timestampotms주문 타임스탬프(milliseconds)Long
timestamptms타임스탬프(milliseconds)Long
canceling_uuidcuid자전거래 취소인 경우, 해당 주문을 취소시킨 반대 주문 고유 아이디String
cancel_typect취소 유형Stringstp_cancel: 자전거래 감지에 의한 취소
user_cancel: 사용자 취소
admin_cancel: 관리자 취소
tif_cancel: 주문 조건에 의한 취소
stream_typest스트림 타입StringREALTIME: 실시간

Example

Request

  • 모든 마켓 정보 수신
[
  {
    "ticket": "test example"
  },
  {
    "type": "myOrder",
    "codes": []
  }
]
  • 특정 마켓 정보 수신
[
  {
    "ticket": "test example"
  },
  {
    "type": "myOrder",
    "codes": ["KRW-BTC"]
  }
]

Response

{
    "type": "myOrder",
    "code": "KRW-BTC",
    "client_order_id": "my-client-order-id-1",
    "uuid": "C0101000000001818113",
    "ask_bid": "BID",
    "order_type": "limit",
    "state": "trade",
    "trade_uuid": "C0101000000001744207",
    "price": 1927000,
    "volume": 0.4697,
    "remaining_volume": 0.0803,
    "executed_volume": 0.4697,
    "trades_count": 1,
    "reserved_fee": 0,
    "remaining_fee": 0,
    "paid_fee": 0,
    "executed_funds": 905111.9000,
    "trade_timestamp": 1727052318148,
    "order_timestamp": 1727052318074,
    "timestamp": 1727052318369,
    "canceling_uuid": "",
    "cancel_type": "stp_cancel",
    "stream_type": "REALTIME"
}