{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flipzi-io/json-schema/flipzi-io-sold-price-object-schema.json",
  "title": "SoldPriceObject",
  "description": "A blended sold-comp price for one grade. Unlike `PriceObject`, this IS an\naverage — a confidence-weighted mean across the marketplaces that sold\nthe card — and `valuation_type` says so.\n",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flipzi-io-openapi.yml#/components/schemas/SoldPriceObject",
  "type": "object",
  "properties": {
    "grade": {
      "type": "string"
    },
    "price_cents": {
      "type": "integer"
    },
    "price_formatted": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "ebay_sold"
      ],
      "description": "Names the dataset. Unlike `PriceObject.source`, this is meaningful."
    },
    "valuation_type": {
      "type": "string",
      "enum": [
        "blended_comps",
        "pooled_comps"
      ],
      "description": "`blended_comps`: a confidence-weighted mean across the contributing\nmarketplaces. Genuinely blended, unlike `PriceObject.valuation_type`.\n`pooled_comps` (1.23.0, languages `DE`, `ES`, `IT`): one median of the\nsales of that language on every site together, in EUR before any\n`?currency=` conversion.\n"
    },
    "primary_marketplace": {
      "type": "string",
      "description": "The deepest contributing marketplace; on `blended_comps` also the one `last_sold` came from. On `pooled_comps`, the site with the most sales; `last_sold.marketplace` names the site of the latest sale."
    },
    "marketplace_count": {
      "type": "integer",
      "description": "How many marketplaces contributed to the blend (on `pooled_comps`, how many sites sold the card in that language)."
    },
    "comps_7d": {
      "type": "integer"
    },
    "comps_30d": {
      "type": "integer"
    },
    "sample_size": {
      "type": "integer",
      "description": "Total completed sales behind this figure, summed across contributing\nmarketplaces. Read it with `confidence` — a comp resting on two sales\nand one resting on two hundred both publish.\n"
    },
    "best_offer_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Of `sample_size`, the best-offer sales counted at the listed price,\nthe most the buyer could have paid, because their accepted amount is\nunknown. Best-offer sales with their accepted amount (1.30.0) are\nconfirmed prices and not in this count.\n`sample_size - best_offer_count` is the number of confirmed prices.\n`null` until the row is next recomputed (daily). 1.29.0.\n"
    },
    "last_sold": {
      "type": [
        "object",
        "null"
      ],
      "description": "The most recent qualifying sale. Names its marketplace, because a\nblended price cannot honestly own a single transaction.\n",
      "properties": {
        "price_cents": {
          "type": "integer"
        },
        "date": {
          "type": "string",
          "format": "date"
        },
        "marketplace": {
          "type": "string"
        }
      }
    },
    "range_30d": {
      "type": [
        "object",
        "null"
      ],
      "description": "Lowest and highest 30-day bound across contributing marketplaces.",
      "properties": {
        "low_cents": {
          "type": "integer"
        },
        "high_cents": {
          "type": "integer"
        }
      }
    },
    "methodology_version": {
      "type": "string",
      "description": "Version of the UPSTREAM per-marketplace computation (the 60-day\nrecency-weighted median). Reported as the weakest contributing\nversion: a blend is only as sound as its worst input.\n"
    },
    "blend_version": {
      "type": "string",
      "description": "Version of the cross-marketplace blending step applied on top. A\nseparate pipeline from `methodology_version` and versioned\nseparately; the two will drift apart.\n"
    },
    "confidence": {
      "allOf": [
        {
          "$ref": "#/$defs/Confidence"
        },
        {
          "description": "Scored on the SOLD scale, which publishes from 50 — not the\nasking-price scale, which serves from 70. `is_reliable` is\nrelative to the gate this dataset is actually published at.\n"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "hours_ago": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "$defs": {
    "Confidence": {
      "type": "object",
      "properties": {
        "score": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "level": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "is_reliable": {
          "type": "boolean"
        }
      }
    }
  }
}