Skip to main content

Get Trades

Retrieve the recent transactions for a specific instrument.

Rate Limit: 1 request per 1 second

Rate Limit Rule: IP

Request URL

GET /deepcoin/market/trades

Request Parameters

ParameterTypeRequiredDescriptionExample
instIdStringYesInstrument IDBTC-USDT
productGroupStringYesProduct group Spot:Spot trading Swap:Coin-margined SwapU:USDT-marginedSpot
limitStringNoNumber of results per request, maximum 500, default 100100

Response Parameters

ParameterTypeDescriptionExample
instIdStringInstrument IDBTC-USDT
tradeIdStringTrade IDT1234567890
pxStringPrice38715.7
szStringSize For spot trading, the unit is base currency; For futures, swap and options, the unit is contract0.1
sideStringTaker side buy:buy sell:sellbuy
tsStringTrade time, Unix timestamp format in milliseconds1597026383085

Response Example

{
"code": 0,
"msg": "success",
"data": [
{
"instId": "BTC-USDT",
"tradeId": "T1234567890",
"px": "38715.7",
"sz": "0.1",
"side": "buy",
"ts": "1597026383085"
},
{
"instId": "BTC-USDT",
"tradeId": "T1234567891",
"px": "38710.2",
"sz": "0.5",
"side": "sell",
"ts": "1597026383086"
}
]
}