Skip to main content

Query trade

GET

/az/spot/trade

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringfalseTrading pair, if not filled in, represents all
bizTypestringfalseSPOT, PREDICTION
orderSidestringfalseBUY,SELL
orderTypestringfalseLIMIT, MARKET
orderIdnumberfalse
fromIdnumberfalsestart id
directionstringfalsequery direction:PREV, NEXT
limitnumberfalse20Limit number, max 100
startTimenumberfalsestart time eg:1657682804112
endTimenumberfalse

Response

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"hasPrev": true,
"hasNext": true,
"items": [
{
"symbol": "BTC_USDT",
"tradeId": "6316559590087222001",
"orderId": "6216559590087220004",
"orderSide": "BUY",
"orderType": "LIMIT",
"bizType": "SPOT",
"time": 1655958915583,
"price": "40000",
"quantity": "1.2",
"quoteQty": "48000", //amount
"baseCurrency": "BTC",
"quoteCurrency": "USDT",
"fee": "0.5",
"feeCurrency": "USDT",
"takerMaker": "taker", //takerMaker
"symbolType": "normal", //symbol type
"rfq": false, //whether it is an RFQ trade
"deductType": "COUPON", //fee deduction type: COUPON, PLATFORM_CURRENCY, null
"deductFee": "0.1", //deducted fee
"couponAmount": "0.1", //coupon amount used
"couponCurrency": "USDT" //coupon currency
}
]
}
}