Home이용 안내API 레퍼런스변경 내역
API 레퍼런스

내 주문 변동 (MYORDER)

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

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

Topic

FieldsTypeDescription
quote_currencystring마켓 기준 통화
target_currencystring조회 요청할 종목

Stream Fields

FieldsShort fieldTypeDescription
response_typerstringDATA로 고정
channelcstringMYORDER 고정
datadobject구독 data 정보
- quote_currencyqcstring마켓 기준 통화 (예: KRW)
- target_currencytcstring주문 종목 심볼 (예: BTC)
- order_idoistring주문 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
- typetstring주문 방식 (Enum: "LIMIT", "MARKET")
- statusststring주문 진행 상태 (아래 status 표 참고)
- sidesstring매수/매도 여부 (Enum: "BID", "ASK")
- order_priceopstring | null주문 가격
- order_qtyoqstring | null주문 수량 (지정가, 시장가매도, 예약)
- order_amountoastring | null주문 금액 (시장가 매수)
- trade_idtistring | null체결 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
- is_makerimstring | nulltrue: 메이커, false: 테이커
- executed_priceepstring | null체결 가격
- executed_qtyeqstring | null체결수량 또는 취소수량
- executed_feeefstring | null체결시 발생한 수수료
- remain_qtyrqstring | null체결/취소 후 잔량 (지정가, 시장가매도, 예약)
- remain_amountrastring | null체결/취소 후 잔량 금액 (시장가 매수)
- user_order_iduistring | null사용자 정의 주문 id
- executed_timestampetlong | null체결/취소 타임스탬프
- order_timestampotlong | null주문 타임스탬프
- timestamptslong타임스탬프

주문 진행 상태

Status설명
wait체결 대기
watch or not_triggered예약 주문 대기
trade체결
trade_done체결 완료
cancel취소
cancel_post_onlyPost-only 주문 실패 취소

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,
    "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,
    "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": "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,
    "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,
    "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,
    "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,
    "executed_timestamp": 0,
    "order_timestamp": null,
    "timestamp": 1761025685
  }
}

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,
    "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,
    "et": 1761022828,
    "ot": null,
    "ts": 1761022828
  }
}
{
  "r": "DATA",
  "c": "MYORDER",
  "d": {
    "qc": "KRW",
    "tc": "ETH",
    "oi": "1b48b02b-1e4d-11e9-9ec7-00e04c3600d7",
    "t": "LIMIT",
    "st": "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,
    "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,
    "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,
    "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,
    "et": 0,
    "ot": null,
    "ts": 1761025685
  }
}