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. Auxiliary Feature

Units Usage

The Units API allows you to easily get your units balance and daily usage.

Get units balance and daily usage

Method

get

Path

/v1/account/units

Parameters

none

Returns

  • balance: integer, remaining units.

  • stats: list, daily usage stats, we return 30 days stats currently.

    • usage: integer, usage of the day.

    • remains: integer, remains of the day.

    • date: string, date.

Request

curl -X 'GET' \
  'https://pro-openapi.debank.com/v1/account/units' \
  -H 'accept: application/json' -H 'AccessKey: YOUR_ACCESSKEY'

Result

{
    "balance": 9804,
    "stats": [
        {
            "usage": 0,
            "remains": 9804,
            "date": "2022-04-07"
        },
        {
            "usage": 0,
            "remains": 9804,
            "date": "2022-04-06"
        },
        .....
    ]
}
PreviousAuxiliary FeatureNextOfficial Account

Last updated 2 years ago