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

내 자산 변동 (MYASSET)

내 잔고변동을 모니터링

전체 종목의 잔고 변경이 발생할 때 변동 후 잔고 내역이 실시간 스트림으로 전송됩니다.


Stream Fields

FieldsShort fieldTypeDescription
response_typerstringDATA로 고정
channelcstringMYASSET 고정
datadobject구독 data 정보
- order_idoistring | null주문 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
- user_order_iduistring | null사용자 정의 주문 id
- trade_idtistring | null체결 식별 ID (예: "0e30219d-1e4d-11e9-9ec7-00e04c3600d7")
- assetsasArray[Object]변동 자산 목록
-- currencycstring코인 심볼 (예: "BTC")
-- availableastring주문가능 수량
-- limitlstring가용 잔고 ('available’과 ‘limit’의 합이 전체 잔고)
-- typetstring잔고 변경 사유 (아래 type 표 참고)
-- timestamptslong타임스탬프

잔고 변경 사유

Type설명
deposit입금
withdrawal출금
cancel_withdrawal출금 취소
order주문
trade체결
cancel주문 취소
cancel_post_onlyPost-only 주문 실패로 인한 취소

MYORDER 데이터 예시

DEFAULT Format Request

{
  "request_type":"SUBSCRIBE",
  "channel":"MYASSET"
}

DEFAULT Format Response

{
  "response_type":"SUBSCRIBED",
  "channel":"MYASSET"
}

DEFAULT Format Stream

{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "KRW",
        "available": "205620364.5029",
        "limit": "8400.0000"
      }
    ],
    "type": "deposit",
    "timestamp": 1760939843
  }
}
{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "KRW",
        "available": "205619364.5029",
        "limit": "8400.0000"
      }
    ],
    "type": "withdrawal",
    "timestamp": 1760940999
  }
}
{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "KRW",
        "available": "205611364.5029",
        "limit": "8400.0000"
      }
    ],
    "type": "cancel_withdrawal",
    "timestamp": 1760941808
  }
}
{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "ETH",
        "available": "55.64169518",
        "limit": "1.00000000"
      }
    ],
    "type": "order",
    "timestamp": 1760937483
  }
}
{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "KRW",
        "available": "154902734.0029",
        "limit": "8400.0000"
      },
      {
        "currency": "ETH",
        "available": "55.64169518",
        "limit": "0.09890000"
      }
    ],
    "type": "trade",
    "timestamp": 1760937483
  }
}
{
  "response_type": "DATA",
  "channel": "MYASSET",
  "data": {
    "assets": [
      {
        "currency": "KRW",
        "available": "155520364.5029",
        "limit": "8400.0000"
      }
    ],
    "type": "cancel",
    "timestamp": 1760938364
  }
}

SHORT Format Request

{
  "request_type":"SUBSCRIBE",
  "channel":"MYASSET",
  "format":"SHORT"
}

SHORT Format Response

{
  "response_type":"SUBSCRIBED",
  "channel":"MYASSET"
}

SHORT Format Stream

{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "KRW",
        "a": "205620364.5029",
        "l": "8400.0000"
      }
    ],
    "t": "deposit",
    "ts": 1760939843
  }
}
{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "KRW",
        "a": "205619364.5029",
        "l": "8400.0000"
      }
    ],
    "t": "withdrawal",
    "ts": 1760940999
  }
}
{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "KRW",
        "a": "205611364.5029",
        "l": "8400.0000"
      }
    ],
    "t": "cancel_withdrawal",
    "ts": 1760941808
  }
}
{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "ETH",
        "a": "55.64169518",
        "l": "1.00000000"
      }
    ],
    "t": "order",
    "ts": 1760937483
  }
}
{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "KRW",
        "a": "154902734.0029",
        "l": "8400.0000"
      },
      {
        "c": "ETH",
        "a": "55.64169518",
        "l": "0.09890000"
      }
    ],
    "t": "trade",
    "ts": 1760937483
  }
}
{
  "r": "DATA",
  "c": "MYASSET",
  "d": {
    "as": [
      {
        "c": "KRW",
        "a": "155520364.5029",
        "l": "8400.0000"
      }
    ],
    "t": "cancel",
    "ts": 1760938364
  }
}