내 주문 변동 (MYORDER)

내 주문의 생성, 체결, 취소를 모니터링

전체 거래 종목 또는 특정 거래 종목에 대해 주문, 체결, 취소가 발생할 때 해당 내용이 실시간 스트림으로 전송됩니다.

Topic

topic을 생략하면 전체 종목의 주문 변동을 구독합니다.

필드타입설명
quote_currencyString마켓 기준 통화
target_currencyString조회 요청할 종목

Stream Fields

필드축약 필드타입설명
response_typerStringDATA로 고정
channelcStringMYORDER 고정
datadObject구독 data 정보
data.quote_currencyd.qcString마켓 기준 통화 (예: KRW)
data.target_currencyd.tcString주문 종목 심볼 (예: BTC)
data.order_idd.oiString주문 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
data.typed.tString주문 방식 (Enum: "LIMIT", "MARKET")
data.statusd.stString주문 진행 상태 (아래 status 표 참고)
data.sided.sString매수/매도 여부 (Enum: "BID", "ASK")
data.order_priced.opString (Nullable)주문 가격
data.order_qtyd.oqString (Nullable)주문 수량 (지정가, 시장가매도, 예약)
data.order_amountd.oaString (Nullable)주문 금액 (시장가 매수)
data.trade_idd.tiString (Nullable)체결 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
data.is_makerd.imBoolean (Nullable)true: 메이커, false: 테이커
data.executed_priced.epString (Nullable)체결 가격
data.executed_qtyd.eqString (Nullable)체결수량 또는 취소수량
data.executed_feed.efString (Nullable)체결시 발생한 수수료
data.remain_qtyd.rqString (Nullable)체결/취소 후 잔량 (지정가, 시장가매도, 예약)
data.remain_amountd.raString (Nullable)체결/취소 후 잔량 금액 (시장가 매수)
data.user_order_idd.uiString (Nullable)사용자 정의 주문 id
data.prevented_qtyd.pqString (Nullable)SMP로 취소된 수량 (지정가, 시장가매도, 예약)
status가 prevented인 메시지에만 값이 있고, 그 외에는 null
data.prevented_amountd.paString (Nullable)SMP로 취소된 금액 (시장가 매수)
status가 prevented인 메시지에만 값이 있고, 그 외에는 null
data.executed_timestampd.etNumber (Nullable)체결/취소 시각 (Unix time, 초)
data.order_timestampd.otNumber (Nullable)주문 시각 (Unix time, 초)
data.timestampd.tsNumber메시지 생성 시각 (Unix time, 초)

주문 진행 상태

상태설명
wait체결 대기
watch예약 주문 대기
trade체결
trade_done체결 완료
cancel취소
cancel_post_onlyPost-only 주문 실패 취소
prevented자전거래 체결 방지(SMP)로 미체결 잔량 취소 (smp_type을 지정한 주문에서만 발생)

MYORDER 데이터 예시

DEFAULT Format Request

{
  "request_type":"SUBSCRIBE",
  "channel":"MYORDER",
  "topic":[{
    "quote_currency":"KRW","target_currency":"XRP"
  }]
}

DEFAULT Format Response

{
  "response_type":"SUBSCRIBED",
  "channel":"MYORDER",
  "data":[{
    "quote_currency":"KRW","target_currency":"XRP"
  }]
}

DEFAULT Format Stream

{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b023-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "wait",
    "side": "BID",
    "order_price": "6000000.0000",
    "order_qty": "1.00000000",
    "order_amount": null,
    "trade_id": null,
    "is_maker": null,
    "executed_price": null,
    "executed_qty": null,
    "executed_fee": null,
    "remain_qty": null,
    "remain_amount": null,
    "user_order_id": "74cd2974-b006-4773-a462-717b026f2778",
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": null,
    "order_timestamp": 1761017305,
    "timestamp": 1761017305
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b028-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "watch",
    "side": "BID",
    "order_price": "6234000.0000",
    "order_qty": "1.00000000",
    "order_amount": null,
    "trade_id": null,
    "is_maker": null,
    "executed_price": null,
    "executed_qty": null,
    "executed_fee": null,
    "remain_qty": null,
    "remain_amount": null,
    "user_order_id": "80744d42-6c89-4ab4-ac7a-1f46e2c7a04b",
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": 1761022828,
    "order_timestamp": null,
    "timestamp": 1761022828
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b02b-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "trade",
    "side": "BID",
    "order_price": null,
    "order_qty": null,
    "order_amount": null,
    "trade_id": "1e9c062e-1e4d-11e9-9ec7-00e04c3600d7",
    "is_maker": false,
    "executed_price": "6244000",
    "executed_qty": "0.01",
    "executed_fee": "0.00000000",
    "remain_qty": "0.00000000",
    "remain_amount": "0",
    "user_order_id": "80744d42-6c89-4ab4-ac7a-1f46e2c7a041",
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": 1761024895,
    "order_timestamp": 1761024895,
    "timestamp": 1761024907
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b02b-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "trade_done",
    "side": "BID",
    "order_price": null,
    "order_qty": null,
    "order_amount": null,
    "trade_id": "1e9c062e-1e4d-11e9-9ec7-00e04c3600d7",
    "is_maker": false,
    "executed_price": "6244000",
    "executed_qty": "0.01",
    "executed_fee": "0.00000000",
    "remain_qty": "0.00000000",
    "remain_amount": "0",
    "user_order_id": "80744d42-6c89-4ab4-ac7a-1f46e2c7a041",
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": 1761024895,
    "order_timestamp": 1761024895,
    "timestamp": 1761024907
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b029-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "cancel",
    "side": "ASK",
    "order_price": null,
    "order_qty": null,
    "order_amount": null,
    "trade_id": null,
    "is_maker": null,
    "executed_price": null,
    "executed_qty": "0.07520000",
    "executed_fee": null,
    "remain_qty": "0.00000000",
    "remain_amount": null,
    "user_order_id": null,
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": 1761023061,
    "order_timestamp": null,
    "timestamp": 1761025545
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b02c-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "cancel_post_only",
    "side": "BID",
    "order_price": null,
    "order_qty": null,
    "order_amount": null,
    "trade_id": null,
    "is_maker": null,
    "executed_price": null,
    "executed_qty": "0.01000000",
    "executed_fee": null,
    "remain_qty": null,
    "remain_amount": null,
    "user_order_id": "80744d42-6c89-4ab4-ac7a-1f46e2c7a042",
    "prevented_qty": null,
    "prevented_amount": null,
    "executed_timestamp": 0,
    "order_timestamp": null,
    "timestamp": 1761025685
  }
}
{
  "response_type": "DATA",
  "channel": "MYORDER",
  "data": {
    "quote_currency": "KRW",
    "target_currency": "ETH",
    "order_id": "1b48b02d-1e4d-11e9-9ec7-00e04c3600d7",
    "type": "LIMIT",
    "status": "prevented",
    "side": "BID",
    "order_price": null,
    "order_qty": null,
    "order_amount": null,
    "trade_id": null,
    "is_maker": null,
    "executed_price": null,
    "executed_qty": "0.50000000",
    "executed_fee": null,
    "remain_qty": "0.00000000",
    "remain_amount": null,
    "user_order_id": "80744d42-6c89-4ab4-ac7a-1f46e2c7a043",
    "prevented_qty": "0.50000000",
    "prevented_amount": null,
    "executed_timestamp": 1761025790,
    "order_timestamp": null,
    "timestamp": 1761025790
  }
}

SHORT Format Request

{
  "request_type":"SUBSCRIBE",
  "channel":"MYORDER",
  "topic":[{
    "quote_currency":"KRW",
    "target_currency":"XRP"
  }],
  "format":"SHORT"
}

SHORT Format Response

{
  "response_type":"SUBSCRIBED",
  "channel":"MYORDER",
  "data":[{
    "quote_currency":"KRW",
    "target_currency":"XRP"
  }]
}

SHORT Format Stream

{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b023-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "wait",
    "s": "BID",
    "op": "6000000.0000",
    "oq": "1.00000000",
    "oa": null,
    "ti": null,
    "im": null,
    "ep": null,
    "eq": null,
    "ef": null,
    "rq": null,
    "ra": null,
    "ui": "74cd2974-b006-4773-a462-717b026f2778",
    "pq": null,
    "pa": null,
    "et": null,
    "ot": 1761017305,
    "ts": 1761017305
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b028-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "watch",
    "s": "BID",
    "op": "6234000.0000",
    "oq": "1.00000000",
    "oa": null,
    "ti": null,
    "im": null,
    "ep": null,
    "eq": null,
    "ef": null,
    "rq": null,
    "ra": null,
    "ui": "80744d42-6c89-4ab4-ac7a-1f46e2c7a04b",
    "pq": null,
    "pa": null,
    "et": 1761022828,
    "ot": null,
    "ts": 1761022828
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b02b-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "trade",
    "s": "BID",
    "op": null,
    "oq": null,
    "oa": null,
    "ti": "1e9c062e-1e4d-11e9-9ec7-00e04c3600d7",
    "im": false,
    "ep": "6244000",
    "eq": "0.01",
    "ef": "0.00000000",
    "rq": "0.00000000",
    "ra": "0",
    "ui": "80744d42-6c89-4ab4-ac7a-1f46e2c7a041",
    "pq": null,
    "pa": null,
    "et": 1761024895,
    "ot": 1761024895,
    "ts": 1761024907
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b02b-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "trade_done",
    "s": "BID",
    "op": null,
    "oq": null,
    "oa": null,
    "ti": "1e9c062e-1e4d-11e9-9ec7-00e04c3600d7",
    "im": false,
    "ep": "6244000",
    "eq": "0.01",
    "ef": "0.00000000",
    "rq": "0.00000000",
    "ra": "0",
    "ui": "80744d42-6c89-4ab4-ac7a-1f46e2c7a041",
    "pq": null,
    "pa": null,
    "et": 1761024895,
    "ot": 1761024895,
    "ts": 1761024907
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b029-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "cancel",
    "s": "ASK",
    "op": null,
    "oq": null,
    "oa": null,
    "ti": null,
    "im": null,
    "ep": null,
    "eq": "0.07520000",
    "ef": null,
    "rq": "0.00000000",
    "ra": null,
    "ui": null,
    "pq": null,
    "pa": null,
    "et": 1761023061,
    "ot": null,
    "ts": 1761025545
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b02c-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "cancel_post_only",
    "s": "BID",
    "op": null,
    "oq": null,
    "oa": null,
    "ti": null,
    "im": null,
    "ep": null,
    "eq": "0.01000000",
    "ef": null,
    "rq": null,
    "ra": null,
    "ui": "80744d42-6c89-4ab4-ac7a-1f46e2c7a042",
    "pq": null,
    "pa": null,
    "et": 0,
    "ot": null,
    "ts": 1761025685
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b02d-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "prevented",
    "s": "BID",
    "op": null,
    "oq": null,
    "oa": null,
    "ti": null,
    "im": null,
    "ep": null,
    "eq": "0.50000000",
    "ef": null,
    "rq": "0.00000000",
    "ra": null,
    "ui": "80744d42-6c89-4ab4-ac7a-1f46e2c7a043",
    "pq": "0.50000000",
    "pa": null,
    "et": 1761025790,
    "ot": null,
    "ts": 1761025790
  }
}