Protocol
The Protocol API allows you to easily get protocol information.
Get protocol information
Method
get
Path
/v1/protocol
Parameters
id
: required, eg:bsc_pancakeswap
,curve
,uniswap
, for more info.
Returns
Object
- An object with following fields:
id
:string
- The protocol's id.chain
:string
- The chain's id.name
:string
- The protocol's name.null
if not defined in the contract and not available from other sources.logo_url
:string
- URL of the protocol's logo image.null
if not available.site_url
:string
- prioritize websites that can be interacted with, not official websites.has_supported_portfolio
:boolean
- Is the portfolio already supported.tvl
:integer
- User deposit value in this protocol.
Request
curl -X 'GET' \
'https://pro-openapi.debank.com/v1/protocol?id=compound' \
-H 'accept: application/json' -H 'AccessKey: YOUR_ACCESSKEY'
Result
{
"id": "compound",
"chain": "eth",
"name": "Compound",
"site_url": "https://app.compound.finance",
"logo_url": "https://static.debank.com/image/project/logo_url/compound/0b792243f1f68e9ed082f5a49ee6f21d.png",
"has_supported_portfolio": true,
"tvl": 12763095483.420198
}
Get the list of the protocol information
Method
get
Path
/v1/protocol/list
Parameters
chain_id
: required, chain id, eg:eth
,bsc
,xdai
, for more info.
Returns
Array
of Object
- An object with following fields:
id
:string
- The protocol's id.chain
:string
- The chain's id.name
:string
- The protocol's name.null
if not defined in the contract and not available from other sources.logo_url
:string
- URL of the protocol's logo image.null
if not available.site_url
:string
- prioritize websites that can be interacted with, not official websites.has_supported_portfolio
:boolean
- Is the portfolio already supported.tvl
:integer
- User deposit value in this protocol.
Request
curl -X GET "https://pro-openapi.debank.com/v1/protocol/list?chain_id=eth" \
-H "accept: application/json" -H 'AccessKey: YOUR_ACCESSKEY'
Result
[
{
"id": "0x",
"chain": "eth",
"name": "0x",
"site_url": "https://0x.org",
"logo_url": "https://static.debank.com/image/project/logo_url/0x/140b607264f4741133c35eb32c6bc314.png",
"has_supported_portfolio": true,
"tvl": 76569161.44038972
},
{
"id": "1inch",
"chain": "eth",
"name": "1inch V1",
"site_url": "https://1inch.exchange",
"logo_url": "https://static.debank.com/image/project/logo_url/1inch/ac1216f33116fd76db915cb0b0f5c666.png",
"has_supported_portfolio": false,
"tvl": 0
}
// more...
]
Get all protocols of supported chains
Method
get
Path
/v1/protocol/all_list
Parameters
chain_ids
: optional, list of chain id, eg: eth, bsc, xdai, for more info.
Returns
Array
of Object
- An object with following fields:
id
:string
- The protocol's id.chain
:string
- The chain's id.name
:string
- The protocol's name.null
if not defined in the contract and not available from other sources.logo_url
:string
- URL of the protocol's logo image.null
if not available.site_url
:string
- prioritize websites that can be interacted with, not official websites.has_supported_portfolio
:boolean
- Is the portfolio already supported.tvl
:integer
- User deposit value in this protocol.
Request
curl -X GET "https://pro-openapi.debank.com/v1/protocol/all_list?chain_ids=eth,bsc" \
-H "accept: application/json" -H 'AccessKey: YOUR_ACCESSKEY'
Result
[
{
"id": "0x",
"chain": "eth",
"name": "0x",
"site_url": "https://0x.org",
"logo_url": "https://static.debank.com/image/project/logo_url/0x/140b607264f4741133c35eb32c6bc314.png",
"has_supported_portfolio": true,
"tvl": 76569161.44038972
},
{
"id": "1inch",
"chain": "eth",
"name": "1inch V1",
"site_url": "https://1inch.exchange",
"logo_url": "https://static.debank.com/image/project/logo_url/1inch/ac1216f33116fd76db915cb0b0f5c666.png",
"has_supported_portfolio": false,
"tvl": 0
}
// more...
]
Last updated