Get Latest Transaction Information of Trading Pairs
Type: GET
Description: /future/market/v1/public/q/deal
Note:
This method does not require a signature.
Limit flow rules
None
Parameters
| Name | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | N/A | Trading pair | |
| num | integer | false | 50 | Quantity |
Request Example
Request
{
curl -G "https://fapi.xt.com/future/market/v1/public/q/deal" \
-d "symbol=btc_usdt"
}
Response Example
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": [
{
"a": 0, // Volume
"m": "", // Order side
"p": 0, // Price
"s": "", // Trading pair
"t": 0 // Time
}
],
"returnCode": 0
}
Error Code
| Error Code | Desc |
|---|---|
| invalid_symbol | Symbol does not exist |
| invalid_num | The minimum value of num is 1 and must be an integer |