Balance Custody API
Balance CustodyAbout
  • Introduction
  • Authentication
  • V1
    • Wallets
    • Assets
    • Transaction fees
    • Stats
    • External accounts
    • Transactions
  • V2
    • Staking
    • Transactions
    • Assets
  • Regulatory Compliance
  • Webhooks
Powered by GitBook
On this page
  • API URL
  • Authentication
  • API Endpoints
  1. V1

Stats

This document details the Balance Custody v1 Stats API, providing an endpoint to retrieve general statistical data related to the custody platform.

PreviousTransaction feesNextExternal accounts

Last updated 1 year ago

API URL

You will receive your integration URL from your point of contact at Balance, and will look like:

YOUR_CUSTOM_SUBDOMAIN.balancecustody.ca

Authentication

Due to the nature of the information exposed, every endpoint in this API requires authentication.

For more information on authentication go to the doc.


API Endpoints

GET /api/v1/stats

List all available account-level statistics.

Request

curl https://your_custom_subdomain.balancecustody.ca/api/v1/stats

Response

Returns a JSON struct for all available statistics.

Status: 200

Data:

{
  "total_assets_in_custody": {
    "btc": {
      "offline": 0.78182549,
      "unit": "btc",
      "warm": 367.80627061
    },
    "bch": {
      "offline": 0.78182549,
      "unit": "bch",
      "warm": 367.80627061
    }
 }
}
Authentication
API URL
Authentication
API Endpoints
GET /api/v1/stats