Skip to main content

Get Profit List History

Type: GET
Description: /future/trade/v1/entrust/profit-list-history


Rate Limit
200/s/apikey


Request Parameters

NameTypeRequiredDefaultDescriptionRange
idintegerFALSE1Page number-
limitintegerFALSE10Page size-
startTimeintegerFALSEN/AStart time (Default query 90 days ago)-
endTimeintegerFALSEN/AEnd time-
symbolstringFALSEN/ATrading pair-
directionstringFALSENEXTNEXT; PREVIOUS

Request Example

curl -G "https://fapi.xt.com/future/trade/v1/entrust/profit-list-history" \
-H "validate-appkey: $APPKEY" \ # Required
-H "validate-timestamp: $TIMESTAMP" \ # Required
-H "validate-singature: $SIGNATURE" \ # Required
-H "Content-Type: application/x-www-form-urlencoded" \ # Required
-d "symbol=btc_usdt" \
-d "page=1" \
-d "size=10" \
-d "startTime=1762074200000" \
-d "endTime=1762074242467" \

Response Example

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"hasNext": false, // Whether there is a next page
"hasPrev": false, // Whether there is a previous page
"items": [ // Data list
{
"profitId": "" // string(Long to string), Entrust ID
}
]
},
"returnCode": 0
}

Error Codes

Error codeDescription
invalid_directiondirection incorrect
invalid_limitlimit parameter incorrect
invalid_symbolSymbol does not exist