DeFi API

获取投资品详情#

当用户选定了某个投资品(已获得 investmentId),使用此接口获取完整的投资品信息,包括收益率明细、底层资产、是否支持申购/赎回/Claim 等。该信息用于向用户展示投资品详情,以及判断后续可执行的操作类型。

URL:GET /api/v6/defi/product/detail

请求参数#

字段类型必填说明
investmentIdString投资品ID

响应参数#

字段类型说明
investmentIdString投资品ID
investmentNameString投资品名称
platformNameString协议名称
platformLogoString协议 Logo
investTypeInteger投资类型
chainIndexString链ID字符串
networkString网络名称
rateString收益率
tvlStringTVL
feeRateString手续费率
isSupportClaimBoolean是否支持 Claim
isInvestableBoolean是否可投资
isSupportRedeemBoolean是否支持赎回
analysisPlatformIdString协议ID
subscriptionMethodInteger申购方式
redeemMethodInteger赎回方式
underlyingTokenArray底层资产代币
> tokenSymbolString代币符号
> tokenAddressString合约地址
> chainIndexString链ID
> tokenPrecisionInteger精度
> tokenLogoStringLogo
aboutTokenArray相关代币
> tokenSymbolString代币符号
> tokenAddressString合约地址
> chainIndexString链ID
> tokenPrecisionInteger精度
> tokenLogoStringLogo
> marketCapString市值
> priceString价格
rateDetailsArray收益率明细
qaListArrayQ&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
    }
}