❗️

Deprecated (2024.05~)

myTrade is included in myOrder. The specific removal date will be announced through an announcement. Please use myOrder.

Request

The requests is consisted of JSON Object and the response is also JSON Object. Requests are divided into ticket field, type field, and format field, and multiple type fields can be specified in one request. Please refer to Request method and format for ticket field and format field.

📘

Request format

[{Ticket Field},{Type Field},....,{Type Field},{Format Field}]

Type Field

In this field, you have to list the market data you want to receive.

Field Name
Type
Description
Required
Default
typeStringdata type
myOrder: My Orders
O
codesListMarket code list
*Must be requested in capital letters.
XIf you omit it or request an empty array, you will receive data for all markets.

Response

Field Name
Simplified Format (format: SIMPLE)
Description
TypeValue
typetyTypeStringmyTrade
codecdMarket code (ex. KRW-BTC)String
ask_bidabOrder typeStringASK

BID
pricepTraded priceDouble
volumevTraded volumeDouble
order_uuidouidUnique ID of the orderString
order_typeotType of the orderStringlimit: Limit order
price: Market buy order
market: Market sell price
trade_uuidtuidUnique ID of the transactionString
trade_timestampttmsTransaction timestamp (millisecond)Long
stream_typestStream StringREALTIME

Example

Request

ex 1. To get all market information (not specify codes field)

[
  {
    "ticket": "test"
  },
  {
    "type": "myTrade"
  }
]

ex 2. To get all market information (empty array in codes)

[
  {
    "ticket": "test"
  },
  {
    "type": "myTrade",
    "codes": []
  }
]

ex 3. To get specific market information

[
  {
    "ticket": "test"
  },
  {
    "type": "myTrade",
    "codes": ["KRW-BTC"]
  }
]

Response

{
  "type": "myTrade",
  "code": "KRW-BTC",
  "ask_bid": "BID",
  "price": 55660000,
  "volume": 0.5389867,
  "order_uuid": "e5cec6f9-6a15-4c95-ae76-6d7dcb3a00e0",
  "order_type": "price",
  "trade_uuid": "cd955522-c9d8-4f06-b86d-54a09a25e707",
  "trade_timestamp": 1677487182655,
  "stream_type": "REALTIME"
}