{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-balance-history-range-response-schema.json",
  "title": "BalanceHistoryRangeResponse",
  "description": "JSON response body for `GET /api/wallet/balance-history`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-wallet-api-openapi.yml#/components/schemas/BalanceHistoryRangeResponse",
  "type": "object",
  "required": [
    "points"
  ],
  "properties": {
    "points": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BalanceHistoryRangePoint"
      },
      "description": "The available balance series, oldest first."
    }
  },
  "$defs": {
    "BalanceHistoryRangePoint": {
      "type": "object",
      "description": "A single point in the range-selectable balance-history response body.",
      "required": [
        "date",
        "balance"
      ],
      "properties": {
        "balance": {
          "type": "integer",
          "format": "int32",
          "description": "Available token balance at the end of the bucket.",
          "minimum": 0
        },
        "date": {
          "type": "string",
          "description": "Start of the bucket, as an RFC 3339 timestamp, which keeps the hour for the `\"hour\"` granularity."
        }
      }
    }
  }
}