获取用户持仓明细 (指定ID)
类型: GET
描述: /v4/finance/position-detail
根据持仓ID查询用户的理财持仓明细。
请求参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| positionId | string | 是 | 持仓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
}
}
响应字段
| 字段 | 类型 | 描述 |
|---|---|---|
| positionId | string | 持仓ID |
| productId | long | 产品ID |
| currency | string | 币种 |
| amount | string | 持仓金额 |
| totalProfit | string | 累计收益 |
| redeemable | string | 可赎回金额 |
| productType | string | 产品类型 |
| endTime | long | 到期时间 |
| reInvest | boolean | 是否开启自动续投 |