{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bare-bitcoin/json-schema/bare-bitcoin-volume-response-schema.json",
  "title": "VolumeResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/bare-bitcoin-developers-openapi.json#/components/schemas/VolumeResponse",
  "type": "object",
  "properties": {
    "daily": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the requested date, in Oslo time."
    },
    "monthly": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the calendar month containing the requested date."
    },
    "yearly": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the calendar year containing the requested date."
    },
    "last24h": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the last 24 hours, regardless of the requested date."
    },
    "last7d": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the last 7 days, regardless of the requested date."
    },
    "last30d": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the last 30 days, regardless of the requested date."
    },
    "last365d": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for the last 365 days, regardless of the requested date."
    },
    "allTime": {
      "allOf": [
        {
          "$ref": "#/$defs/VolumeStats"
        }
      ],
      "description": "Volume for all trades at Bare Bitcoin."
    }
  },
  "$defs": {
    "VolumeStats": {
      "type": "object",
      "properties": {
        "amountNok": {
          "type": "number",
          "format": "double"
        },
        "amountBtc": {
          "type": "number",
          "format": "double"
        },
        "buyPercentage": {
          "type": "number",
          "format": "double"
        },
        "numberOfTrades": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}