跳到主要内容

获取用户持仓明细 (指定ID)

类型: GET

描述: /v4/finance/position-detail

根据持仓ID查询用户的理财持仓明细。

请求参数

名称类型必填描述
positionIdstring持仓ID

请求示例

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

响应示例

Response
{
"rc": 0,
"mc": "SUCCESS",
"result": {
"positionId": "123456789",
"productId": 1001,
"currency": "USDT",
"amount": "1000.00",
"totalProfit": "12.34",
"redeemable": "800.00",
"productType": "TIME_SAVING",
"endTime": 1702592000000,
"reInvest": true
}
}

响应字段

字段类型描述
positionIdstring持仓ID
productIdlong产品ID
currencystring币种
amountstring持仓金额
totalProfitstring累计收益
redeemablestring可赎回金额
productTypestring产品类型
endTimelong到期时间
reInvestboolean是否开启自动续投