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

Result

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

Result

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

Result

Last updated