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"
        },
        .....
    ]
}

Last updated