DeFi API
查询产品详情

查询产品详情#

描述:当你输入搜索条件后,该 API 将提供指定的投资品详情。

请求地址#

GET https://www.okx.com/api/v5/defi/explore/product/detail

请求参数#

参数名称相关描述参数类型必传数据类型
investmentId投资品 ID请求参数String
investmentCategory认购类型:(例如,0:默认类型;1:BRC-20)请求参数String

响应参数#

参数名称相关描述Data type
investmentId投资品 IDString
investmentName投资品名称String
chainId区块链 IDString
rate收益率String
investType投资品类型:1. 存币;2. 流动性池;3. 挖矿;4. 机枪池;5. 质押String
platformName平台名称String
platformId平台 IDString
analysisPlatformId领取奖励金用平台 IDString
rateType收益率计算类型:0:APY;1:APRString
tvlTVLString
underlyingToken质押代币Struct
>isBaseToken质押代币是否为主网基准代币Boolean
>tokenContract质押代币的智能合约地址String
>tokenSymbol质押代币标识String
isInvestable是否可投资String
utilizationRate使用的汇率String
earnedToken已获代币Struct
>isBaseToken质押代币是否为主网基准代币Boolean
>tokenContract质押代币的智能合约地址String
>tokenSymbol质押代币标识String
lpTokenLP 代币Struct
>isBaseToken质押代币是否为主网基准代币Boolean
>tokenContract质押代币的智能合约地址String
>tokenSymbol质押代币标识String

请求示例#

shell
curl --location 'https://www.okx.com/api/v5/defi/explore/product/detail?investmentId=21010' \
--header 'OK-ACCESS-KEY: 4b****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d'

响应示例#

200
{
    "code": 0,
    "msg": "",
    "data": {
        "investmentId": "120",
        "investmentName": "jEUR",
        "chainId": "137",
        "rate": "0.01129",
        "investType": "1",
        "platformName": "Aave V3",
        "platformId": "24",
        "analysisPlatformId": "10",
        "rateType": "0",
        "tvl": "51350.92499",
        "underlyingToken": [
            {
                "tokenSymbol": "jEUR",
                "tokenAddress": "0x4e3decbb3645551b8a19f0ea1678079fcb33fb4c",
                "isBaseToken": false
            }
        ],
        "isInvestable": false,
        "earnedToken": [
            {
                "tokenSymbol": "jEUR",
                "tokenAddress": "0x4e3decbb3645551b8a19f0ea1678079fcb33fb4c",
                "isBaseToken": false
            }
        ],
        "lpToken": [
            {
                "tokenSymbol": "aPolJEUR",
                "tokenAddress": "0x6533afac2e7bccb20dca161449a13a32d391fb00",
                "isBaseToken": false
            }
        ],
        "utilizationRate": "0.76862"
    }
}