{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-btc-price-history-response-schema.json",
  "title": "BtcPriceHistoryResponse",
  "description": "BTC price history with 200D MA.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-market-data-api-openapi.yml#/components/schemas/BtcPriceHistoryResponse",
  "properties": {
    "history": {
      "items": {
        "$ref": "#/$defs/BtcPriceHistoryEntry"
      },
      "type": "array",
      "title": "History"
    }
  },
  "type": "object",
  "required": [
    "history"
  ],
  "$defs": {
    "BtcPriceHistoryEntry": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "price": {
          "type": "number",
          "title": "Price"
        },
        "ma200": {
          "title": "Ma200",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object",
      "required": [
        "date",
        "price"
      ],
      "title": "BtcPriceHistoryEntry",
      "description": "Single entry in BTC price history."
    }
  }
}