获取投资品详情#
当用户选定了某个投资品(已获得 investmentId),使用此接口获取完整的投资品信息,包括收益率明细、底层资产、是否支持申购/赎回/Claim 等。该信息用于向用户展示投资品详情,以及判断后续可执行的操作类型。
URL:GET /api/v6/defi/product/detail
请求参数#
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| investmentId | String | 是 | 投资品ID |
响应参数#
| 字段 | 类型 | 说明 |
|---|---|---|
| investmentId | String | 投资品ID |
| investmentName | String | 投资品名称 |
| platformName | String | 协议名称 |
| platformLogo | String | 协议 Logo |
| investType | Integer | 投资类型 |
| chainIndex | String | 链ID字符串 |
| network | String | 网络名称 |
| rate | String | 收益率 |
| tvl | String | TVL |
| feeRate | String | 手续费率 |
| isSupportClaim | Boolean | 是否支持 Claim |
| isInvestable | Boolean | 是否可投资 |
| isSupportRedeem | Boolean | 是否支持赎回 |
| analysisPlatformId | String | 协议ID |
| subscriptionMethod | Integer | 申购方式 |
| redeemMethod | Integer | 赎回方式 |
| underlyingToken | Array | 底层资产代币 |
| > tokenSymbol | String | 代币符号 |
| > tokenAddress | String | 合约地址 |
| > chainIndex | String | 链ID |
| > tokenPrecision | Integer | 精度 |
| > tokenLogo | String | Logo |
| aboutToken | Array | 相关代币 |
| > tokenSymbol | String | 代币符号 |
| > tokenAddress | String | 合约地址 |
| > chainIndex | String | 链ID |
| > tokenPrecision | Integer | 精度 |
| > tokenLogo | String | Logo |
| > marketCap | String | 市值 |
| > price | String | 价格 |
| rateDetails | Array | 收益率明细 |
| qaList | Array | Q&A 列表 |
响应示例#
Aave V3 USDC(Ethereum, investmentId=9502)
Json
{
"code": 0,
"msg": "",
"data": {
"investmentId": 9502,
"investmentName": "USDC",
"platformName": "Aave V3",
"platformLogo": "https://static.coinall.ltd/cdn/web3/protocol/logo/aave-v3.png/type=png_350_0?v=1774409445039",
"investType": 1,
"tvl": "3423591587.48413",
"rate": "0.02140",
"rateType": 0,
"rateTypeDesc": "APY",
"network": "Ethereum",
"networkLogo": "https://static.coinall.ltd/cdn/wallet/logo/ETH-20220328.png",
"underlyingToken": [
{
"tokenSymbol": "USDC",
"tokenLogo": "https://static.coinall.ltd/cdn/wallet/logo/USDC.png",
"tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"isBaseToken": false
}
],
"rateDetails": [
{
"tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"tokenSymbol": "USDC",
"rate": "0.0214",
"title": "Supply APY",
"type": 1
}
],
"aboutToken": [
{
"tokenSymbol": "USDC",
"tokenLogo": "https://static.coinall.ltd/cdn/wallet/logo/USDC.png",
"tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"isBaseToken": false,
"marketCap": "55468602892.82830569743700036",
"price": "0.99988"
}
],
"isSupportClaim": false,
"isInvestable": true,
"isSupportRedeem": true,
"analysisPlatformId": "10",
"chainIndex": "1",
"detailPath": "aave-v3-ethereum-usdc-9502",
"platformUrl": "https://app.aave.com",
"utilizationRate": "0.755200",
"hasRateChart": true,
"hasTvlChart": false
}
}