{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-account-balance-schema.json",
  "title": "AccountBalance",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revolut-balance-api-openapi.yml#/components/schemas/AccountBalance",
  "type": "array",
  "items": {
    "$ref": "#/$defs/AccountBalanceEntry"
  },
  "$defs": {
    "AccountBalanceEntry": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "description": "Currency."
        },
        "available": {
          "type": "string",
          "format": "decimal",
          "description": "Available (free) funds amount. Returned as a string to prevent rounding errors."
        },
        "staked": {
          "type": "string",
          "format": "decimal",
          "description": "Staked funds currently earning rewards. \nReturned as a string to prevent floating-point rounding errors."
        },
        "reserved": {
          "type": "string",
          "format": "decimal",
          "description": "Reserved (locked) funds amount. Returned as a string to prevent rounding errors."
        },
        "total": {
          "type": "string",
          "format": "decimal",
          "description": "Sum of available, reserved, and staked funds. Returned as a string to avoid floating-point rounding errors."
        }
      },
      "required": [
        "currency",
        "available",
        "reserved",
        "total"
      ]
    }
  }
}