DeFi API
查询协议列表

查询协议列表#

描述:该 API 将提供协议和投资产品的简要信息,用以进一步获取投资品详情。如果参数不存在,则会列出所有协议信息。

请求地址#

GET https://www.okx.com/api/v5/defi/explore/protocol/list

请求参数#

参数名称相关描述参数类型必传数据类型
platformId平台 ID请求参数String
platformName平台官方名称请求参数String

响应参数#

参数名称相关描述数据类型
platformId平台 IDString
platformName平台官方名称String
platformWebSite平台官网String
investmentApiUrlPattern投资品详情,非 UI 的 URL 地址String
investmentPageUrlPattern投资品详情,欧易官网 UI 的 URL 地址String
platformMinInfos平台信息Array[Struct]
>investmentId投资品 IDString
>protocolId协议 IDString
>network投资品网络String
>chainId投资品链 IDString

请求示例#

shell
curl --location 'https://www.okx.com/api/v5/defi/explore/protocol/list' \
--header 'OK-ACCESS-KEY: 4b****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d'

响应示例#

200
{
    "code": 0,
    "msg": "",
    "data": [
{
    "platformId": 149,
    "platformName": "MorphoCompound",
    "platformWebSite": "https://compound.morpho.xyz/?network=mainnet",
    "investmentApiUrlPattern": "",
    "investmentPageUrlPattern": "",
    "platformMinInfos": [
{
    "investmentId": "20926",
    "protocolId": "194",
    "network": "OP"
},
{
    "investmentId": "20949",
    "protocolId": "195",
    "network": "OP"
}
    ]
},
{
    "platformId": 144,
    "platformName": "Compound V3",
    "platformWebSite": "https://app.compound.finance",
    "investmentUrlPattern": "",
    "platformMinInfos": [
{
    "investmentId": "8973",
    "protocolId": "75",
    "network": "OP"
}
    ]
}
    ]
}