{
  "type": "object",
  "properties": {
    "pool": {
      "description": "Filter by contract address",
      "type": "string",
      "pattern": "^(0[xX])?[0-9a-fA-F]{40}$",
      "example": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"
    },
    "network_id": {
      "description": "The Graph Network ID https://thegraph.com/networks",
      "type": "string",
      "enum": [
        "mainnet",
        "bsc",
        "base",
        "arbitrum-one",
        "optimism",
        "matic",
        "unichain"
      ],
      "example": "mainnet"
    },
    "interval": {
      "description": "The interval for which to aggregate price data (hourly, 4-hours, daily or weekly).",
      "type": "string",
      "enum": [
        "1h",
        "4h",
        "1d",
        "1w"
      ],
      "default": "1h"
    },
    "startTime": {
      "description": "UNIX timestamp in seconds.",
      "type": "number",
      "minimum": 0
    },
    "endTime": {
      "description": "UNIX timestamp in seconds.",
      "type": "number",
      "minimum": 0
    },
    "limit": {
      "description": "The maximum number of items returned in a single request.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 10
    },
    "page": {
      "description": "The page number of the results to return.",
      "type": "integer",
      "minimum": 1,
      "default": 1
    }
  },
  "required": [
    "pool"
  ]
}