Query Trade
Type: GET
Description: /spot/v4/trade
Parameters
Name | Type | Mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
symbol | string | No | Trading pair, if not filled in, represents all | ||
bizType | string | No | SPOT, LEVER | ||
orderSide | string | No | BUY, SELL | ||
orderType | string | No | LIMIT, MARKET | ||
orderId | number | No | |||
fromId | number | No | Start ID | ||
direction | string | No | Query direction: PREV, NEXT | ||
limit | number | No | 20 | Limit number, max 100 | |
startTime | number | No | Start time e.g. 1657682804112 | ||
endTime | number | No |
Response Example
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" // taker or maker
}
]
}
}