{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api.buywhere.ai/schema/price-history.json", "title": "BuyWhere Price History", "type": "object", "required": ["id", "currency", "points"], "properties": { "id": { "type": "string", "format": "uuid", "description": "Product ID." }, "currency": { "type": "string" }, "days": { "type": "integer", "minimum": 1, "maximum": 90 }, "points": { "type": "array", "items": { "type": "object", "required": ["date", "price", "currency"], "properties": { "date": { "type": "string", "format": "date" }, "price": { "type": "number", "minimum": 0 }, "currency": { "type": "string" } } } }, "stats": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" }, "avg": { "type": "number" }, "current": { "type": "number" } } } } }