获取支持的协议#
查询当前 DeFi 投资品覆盖的所有协议及其统计信息。返回结果包含协议名称、协议 ID 以及该协议下的投资品数量,可用于前端展示协议筛选器或协议概览页。
URL:GET /api/v6/defi/product/supported-platforms
请求参数#
无请求参数。
请求示例#
GET /api/v6/defi/product/supported-platforms响应参数#
data 数组元素
| 字段 | 类型 | 说明 |
|---|---|---|
| analysisPlatformId | String | 协议 ID |
| platformName | String | 协议名称(如 "Aave V3", "Lido", "PancakeSwap V3") |
| investmentCount | Long | 该协议下的投资品数量 |
响应示例#
Json
{
"code": 0,
"data": [
{
"analysisPlatformId": "10",
"platformName": "Aave V3",
"investmentCount": 68
},
{
"analysisPlatformId": "20",
"platformName": "Lido",
"investmentCount": 1
},
{
"analysisPlatformId": "30",
"platformName": "PancakeSwap V3",
"investmentCount": 120
}
]
}
实际返回的协议数量和投资品数量取决于当前上线的投资品。