{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apibara-tech/json-schema/apibara-tech-market-sold-price-stats-response-schema.json",
  "title": "MarketSoldPriceStatsResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apibara-tech-market-api-openapi.yml#/components/schemas/MarketSoldPriceStatsResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "make": {
          "type": "string"
        },
        "model": {
          "type": [
            "string",
            "null"
          ]
        },
        "year": {
          "type": [
            "integer",
            "null"
          ]
        },
        "damage": {
          "type": [
            "string",
            "null"
          ]
        },
        "auction": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "copart",
            "iaai",
            null
          ]
        },
        "records_count": {
          "type": "integer",
          "minimum": 0
        },
        "average_sold_price": {
          "type": [
            "number",
            "null"
          ]
        },
        "min_sold_price": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_sold_price": {
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "ok",
    "data"
  ]
}