跳到主要内容

获取用户持仓 (分页)

类型: GET

描述: /v4/finance/position

分页查询用户的理财持仓。

请求参数

名称类型必填描述
categorystring产品大类
productTypestring产品类型
currencystring币种
statusstring持仓状态:RUNNING、SETTLED
pageinteger页码
sizeinteger每页数量

请求示例

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
{
"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"
}
]
}
}

响应字段

字段类型描述
positionIdstring持仓ID
productIdlong产品ID
currencystring币种
apyarray年化收益率列表
amountstring持仓金额
availableAmountstring可用金额
yesterdayProfitstring昨日收益
totalProfitstring累计收益
statusstring持仓状态
startTimelong开始时间
endTimelong结束时间
productTypestring产品类型