DeBank Cloud
  • Open API
    • Welcome
    • API Reference
      • Chain
      • Protocol
      • Pool
      • Token
      • User
      • Collection
      • Wallet
    • API Models
      • PortfolioItemObject
      • ActionObject
      • TransactionObject
    • Error Code
      • Pre exec error code
    • ChangeLog
    • Auxiliary Feature
      • Units Usage
  • Official Account
    • Business Introduction
    • Service Operation Instructions
    • API Reference
      • Broadcast messages
      • User messages
    • Quest
      • REST API Action Integration Spec
  • DeBank Connect
    • Integration
    • ChangeLog
    • API
      • User Base Data
      • User Chain Data
      • User Social Data
  • Terms Of Service
Powered by GitBook
On this page
  1. Open API
  2. API Reference

Pool

The Pool API allows you to easily get pool information.

PreviousProtocolNextToken

Last updated 1 year ago

Get pool information

Method

get

Path

/v1/pool

Parameters

  • id : required, pool_id, eg: 0x00000000219ab540356cbb839cbe05303d7705fa

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

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

  • 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"
}
PortfolioItemObject's name
for more info