Skip to main content

Trade History

Query current user's historical trade records using cursor-based pagination, supports filtering by trading pair, side, and time range.

API Information

Request Parameters

ParameterLocationTypeRequiredDescription
symbolquerystringNoTrading pair, e.g. BTC_USDT
sidequeryintegerNoSide: 1=buy, 2=sell, 0=all
start_timequeryintegerNoStart time (milliseconds timestamp)
end_timequeryintegerNoEnd time (milliseconds timestamp)
cursorqueryintegerNoCursor, do not pass for first query
limitqueryintegerNoReturn quantity, default 500, max 1000

Request Example

GET /api/v1/myTrades?symbol=BTC_USDT&side=1&limit=100

Response Fields

FieldTypeDescription
codeintegerStatus code
messagestringResponse message
data.has_morebooleanHas more data
data.next_cursorintegerNext page cursor
data.tradesarrayTrade list
data.trades[].idstringTrade ID
data.trades[].order_idstringOrder ID
data.trades[].symbolstringTrading pair
data.trades[].pricestringTrade price
data.trades[].qtystringTrade quantity
data.trades[].quote_qtystringTrade amount
data.trades[].feestringFee
data.trades[].fee_assetstringFee asset
data.trades[].is_buyerbooleanIs buyer
data.trades[].is_makerbooleanIs maker
data.trades[].timeintegerTrade time (milliseconds)

Response Example

{
"code": 0,
"message": "success",
"data": {
"has_more": false,
"next_cursor": 100,
"trades": [
{
"id": "9876543210123456789",
"order_id": "1234567890123456789",
"symbol": "BTC_USDT",
"price": "30000.00",
"qty": "0.1",
"quote_qty": "3000.00",
"fee": "0.0001",
"fee_asset": "BTC",
"is_buyer": true,
"is_maker": false,
"time": 1704067200000
}
]
}
}