Pool

The Pool API allows you to easily get pool information.

Get pool information

Method

get

Path

/v1/pool

Parameters

  • id : required, pool_id, eg: 0x00000000219ab540356cbb839cbe05303d7705fa

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

Returns

Object - An object with following fields:

  • pool_id : string - The pool's id.

  • chain : string - The chain's id.

  • protocol_id : protocol_id associated with pool.

  • contract_ids: list contract_ids associated with pool.

  • name : string - The pool's name, it is the same as PortfolioItemObject's name

  • stats: Object

    • deposit_usd_value: Assets stored in this pool.

    • deposit_user_count: The total number of users stored in this pool.

    • deposit_valuable_user_count: The number of users (with usd_value greater than $100) stored in this pool.

Request

curl -X 'GET' \
  'https://pro-openapi.debank.com/v1/pool?id=0x00000000219ab540356cbb839cbe05303d7705fa&chain_id=eth \
  -H 'accept: application/json' -H 'AccessKey: YOUR_ACCESSKEY'

Result

{
    "chain": "eth",
    "contract_ids": [
        "0x00000000219ab540356cbb839cbe05303d7705fa"
    ],
    "stats": {
        "deposit_usd_value": 44750590901.06054,
        "deposit_user_count": 48791,
        "deposit_valuable_user_count": 48510
    },
    "name": "Staked",
    "pool_id": "0x00000000219ab540356cbb839cbe05303d7705fa",
    "protocol_id": "eth2"
}

Last updated