{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reservoir/json-schema/reservoir-get-stats-v2-response-schema.json",
  "title": "getStatsV2Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reservoir-stats-api-openapi.yml#/components/schemas/getStatsV2Response",
  "type": "object",
  "properties": {
    "stats": {
      "$ref": "#/$defs/Model71"
    }
  },
  "$defs": {
    "Model67": {
      "type": "object",
      "description": "Can be null if no active asks.",
      "properties": {
        "contract": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "tokenId": {
          "type": "string",
          "pattern": "^-?[0-9]+$",
          "x-convert": {
            "case": "lower"
          }
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": "string"
        }
      }
    },
    "Model68": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "price": {
          "$ref": "#/$defs/price"
        },
        "maker": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "validFrom": {
          "type": "number"
        },
        "validUntil": {
          "type": "number"
        },
        "token": {
          "$ref": "#/$defs/Model67"
        }
      }
    },
    "Model69": {
      "type": "object",
      "description": "Can be null is not active bids",
      "properties": {
        "id": {
          "type": "string"
        },
        "price": {
          "$ref": "#/$defs/price"
        },
        "maker": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "validFrom": {
          "type": "number"
        },
        "validUntil": {
          "type": "number"
        }
      }
    },
    "Model70": {
      "type": "object",
      "properties": {
        "floorAsk": {
          "$ref": "#/$defs/Model68"
        },
        "topBid": {
          "$ref": "#/$defs/Model69"
        }
      }
    },
    "Model71": {
      "type": "object",
      "properties": {
        "tokenCount": {
          "type": "number"
        },
        "onSaleCount": {
          "type": "number"
        },
        "flaggedTokenCount": {
          "type": "number"
        },
        "sampleImages": {
          "$ref": "#/$defs/sampleImages"
        },
        "market": {
          "$ref": "#/$defs/Model70"
        }
      },
      "required": [
        "tokenCount",
        "onSaleCount",
        "flaggedTokenCount"
      ]
    },
    "amount": {
      "type": "object",
      "description": "Amount with fees & royalties included.",
      "properties": {
        "raw": {
          "type": "string",
          "pattern": "^-?[0-9]+$"
        },
        "decimal": {
          "type": "number"
        },
        "usd": {
          "type": "number"
        },
        "native": {
          "type": "number"
        }
      }
    },
    "currency": {
      "type": "object",
      "properties": {
        "contract": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "name": {
          "type": "string"
        },
        "symbol": {
          "type": "string"
        },
        "decimals": {
          "type": "number"
        },
        "chainId": {
          "type": "number"
        }
      }
    },
    "netAmount": {
      "type": "object",
      "description": "Amount with fees & royalties removed.",
      "properties": {
        "raw": {
          "type": "string",
          "pattern": "^-?[0-9]+$"
        },
        "decimal": {
          "type": "number"
        },
        "usd": {
          "type": "number"
        },
        "native": {
          "type": "number"
        }
      }
    },
    "price": {
      "type": "object",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "amount": {
          "$ref": "#/$defs/amount"
        },
        "netAmount": {
          "$ref": "#/$defs/netAmount"
        }
      }
    },
    "sampleImages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}