{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moment/json-schema/moment-daily-summaries-page-schema.json",
  "title": "DailySummariesPage",
  "description": "A paginated list of daily transaction summaries.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moment-transactions-api-openapi.yml#/components/schemas/DailySummariesPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DailySummary"
      },
      "description": "List of daily summaries in this page."
    },
    "count": {
      "type": "integer",
      "description": "Always -1. Retained for wire-shape compatibility; the value is no longer computed because no known consumer reads it."
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "description": "A hyperlink to the next page of results, requesting the same page size as the current request."
    },
    "prev": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null. Paginating in reverse is not supported."
    }
  },
  "required": [
    "data",
    "count",
    "next",
    "prev"
  ],
  "$defs": {
    "DailySummary": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "buy_volume": {
          "type": "integer",
          "description": "Cumulative face value of buy transactions on 'date'."
        },
        "sell_volume": {
          "type": "integer",
          "description": "Cumulative face value of sell transactions on 'date'."
        },
        "inter_dealer_volume": {
          "type": "integer",
          "description": "Cumulative face value of inter-dealer transactions on 'date'."
        },
        "high_price": {
          "type": "number",
          "description": "Highest price of any transaction on 'date'.",
          "x-go-type": "decimal.Decimal",
          "x-go-type-import": {
            "path": "github.com/shopspring/decimal"
          }
        },
        "low_price": {
          "type": "number",
          "description": "Lowest price of any transaction on 'date'.",
          "x-go-type": "decimal.Decimal",
          "x-go-type-import": {
            "path": "github.com/shopspring/decimal"
          }
        },
        "total_volume": {
          "type": "integer",
          "description": "Cumulative face value of all transactions on 'date'."
        }
      },
      "required": [
        "date",
        "buy_volume",
        "sell_volume",
        "inter_dealer_volume",
        "high_price",
        "low_price",
        "total_volume"
      ]
    }
  }
}