Skip to main content

Get Market Trades

Frequency limit: 10 times/1s (IP)

Description

Get Market Trades

HTTP Request

  • GET /api/v2/spot/market/fills-history
Request Example
curl "https://api.cointr.com/api/v2/spot/market/fills-history?symbol=BTCUSDT&limit=20&startTime=1678965010861&endTime=1678965910861"

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pair name, e.g. BTCUSDT
limitStringNonumber of data returned. Default: 500, maximum: 1000
idLessThanStringNoOrder ID, returns records less than the specified 'tradeId'.
startTimeStringNostartTime, Unix millisecond timestamp e.g. 1690196141868
startTime and endTime should be within 7days.
endTimeStringNoendTime, Unix millisecond timestamp e.g. 1690196141868
startTime and endTime should be within 7days.
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1695808949356,
"data": [
{
"symbol": "BTCUSDT",
"tradeId": "1",
"side": "buy",
"price": "2.38735",
"size": "2470.6224",
"ts": "1622097282536"
},
{
"symbol": "PLATSKFTUSDT",
"tradeId": "2",
"side": "sell",
"price": "2.38649",
"size": "3239.7976",
"ts": "1622097280642"
}
]
}

Response Parameters

ParameterTypeDescription
symbolStringTrading pair
tradeIdStringOrder ID
Descending
sideStringDirection
Buy
Sell
priceStringOrder price
sizeStringFilled quantity
tsStringTransaction time, Unix millisecond timestamp, e.g. 1690196141868