跳到主要内容

获取用户持仓 (产品维度)

类型: GET

描述: /v4/finance/position-product

按产品维度查询用户的理财持仓。

请求参数

名称类型必填描述
categorystring产品大类筛选

请求示例

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

响应示例

Response
{
"rc": 0,
"mc": "SUCCESS",
"result": [
{
"category": "SAVING",
"amount": "2000.00",
"runningOrderCount": 1,
"positionList": [
{
"productId": 1001,
"productType": "TIME_SAVING",
"amount": "2000.00"
}
]
}
]
}

响应字段

字段类型描述
categorystring产品大类
amountstring该大类总金额
runningOrderCountinteger运行中订单数量
positionListarray持仓列表
positionList[].productIdlong产品ID
positionList[].productTypestring产品类型
positionList[].amountstring持仓金额