Skip to main content

Query Position

Type: GET

Description: /v4/finance/position

Query user's earn positions with pagination.

Parameters

NameTypeMandatoryDescription
categorystringfalseProduct category
productTypestringfalseProduct type
currencystringfalseCurrency
statusstringfalsePosition status: RUNNING, SETTLED
pageintegerfalsePage number
sizeintegerfalsePage size

Request Example

Request
curl -G "https://sapi.xt.com/v4/finance/position" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d "page=1" \
-d "size=10"

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"result": {
"hasPrev": false,
"hasNext": true,
"items": [
{
"positionId": "123456789",
"productId": 1001,
"currency": "USDT",
"apy": [{"apy": "0.12"}],
"amount": "1000.00",
"availableAmount": "800.00",
"yesterdayProfit": "1.23",
"totalProfit": "12.34",
"status": "RUNNING",
"startTime": 1700000000000,
"endTime": 1702592000000,
"productType": "TIME_SAVING"
}
]
}
}

Response Fields

FieldTypeDescription
positionIdstringPosition ID
productIdlongProduct ID
currencystringCurrency
apyarrayAPY list
amountstringPosition amount
availableAmountstringAvailable amount
yesterdayProfitstringYesterday's profit
totalProfitstringTotal profit
statusstringPosition status
startTimelongStart time
endTimelongEnd time
productTypestringProduct type