查询指数关连计划详情(USER_DATA)
接口描述
查询指数关连计划详情
HTTP请求
GET /sapi/v1/lending/auto-invest/index/user-summary
请求权重(IP)
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
indexId | LONG | YES | |
recvWindow | LONG | NO | 不超过 60000 |
timestamp | LONG | YES |
响应示例
{
"indexId": 1, // 指数id
"totalInvestedInUSD":"114.555", // 总投资额USD单位
"currentInvestedInUSD": "101.2", // 当前投资额USD单位
"pnlInUSD": "101.2", // PNL(USD)单位
"roi": "1.023", // ROI数值
"assetAllocation": [
{
"targetAsset": "ADA", // 申购币种,饼状图显示可使用
"allocation":"10" // 资产占比
},
{
"targetAsset": "BTC",
"allocation":"10"
}
]
"details": [
{
"targetAsset": "ADA", //申购币种
"averagePriceInUSD": "3.4", //平均投资价格USD单位
"totalInvestedInUSD": "222.21", //总投资额USD单位
"currentInvestedInUSD": "101.2", //当前投资USD单位
"purchasedAmount": "122.12345678", //购买的资产
"pnlInUSD": "109.2", //以USD计量的PNL
"roi": "0.1", //ROI以小数位计算
"percentage": "10", //币种的占比,如果是单币计划, 占比为100%
"availableAmount": "122.12345678", //资产数额
"redeemedAmount": "122.12345678", //赎回数额
"assetValueInUSD": "101.2" //资产价值USD价值
},
{
"targetAsset": "MATIC",
"averagePriceInUSD": "3.4",
"totalInvestedInUSD": "222.21",
"currentInvestedInUSD": "101.2",
"purchasedAmount": "122.12345678",
"pnlInUSD": "109.2",
"roi": "0.1",
"percentage": "10",
"availableAmount": "122.12345678",
"redeemedAmount": "122.12345678",
"assetValueInUSD": "101.2"
}
]
}