Skip to main content
Version: Next

Trade Details

Query the trade history of an order.

Interface Information

  • Method: GET
  • Path: /api/v1/stock/open-api/trades

Request Parameters

ParameterTypeRequiredDescription
symbolstringNoStock symbol
orderIdstringNoOrder ID
startTimeint64NoStart time
endTimeint64NoEnd time
pageintNoPage number
sizeintNoNumber per page

Request Example

GET /api/v1/stock/open-api/trades?symbol=AAPL&orderId=123456789

Response Fields

FieldTypeDescription
tradeIdstringTrade ID
orderIdstringOrder ID
symbolstringTrading pair
sidestringDirection: buy-buy, sell-sell
pricestringTrade price
quantitystringTrade quantity
amountstringTrade amount
feestringTrading fee
feeCurrencystringFee currency
rolestringRole: maker-maker, taker-taker
createdAtint64Trade time (millisecond timestamp)

Response Example

{
"code": 0,
"msg": "success",
"data": {
"trades": [
{
"tradeId": "987654321",
"orderId": "123456789",
"symbol": "AAPL",
"side": "buy",
"price": "185.50",
"quantity": "500",
"amount": "92750.00",
"fee": "9.28",
"feeCurrency": "USDT",
"role": "taker",
"createdAt": 1705737650000
}
],
"total": 1
}
}