{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.cryptocompare.com/schemas/cryptocompare/exchange.json",
  "title": "CryptoCompare Exchange",
  "description": "Exchange record emitted by min-api /exchanges/general. Includes CCData ranking grade and operational metadata.",
  "type": "object",
  "required": ["Id", "Name"],
  "properties": {
    "Id": {"type": "string"},
    "Name": {"type": "string"},
    "Url": {"type": "string"},
    "LogoUrl": {"type": "string"},
    "ItemType": {"type": "array", "items": {"type": "string"}},
    "CentralizationType": {"type": "string", "enum": ["Centralized", "Decentralized", "Hybrid"]},
    "InternalName": {"type": "string"},
    "GradePoints": {"type": "number"},
    "Grade": {"type": "string", "enum": ["AA", "A", "B", "C", "D", "E", "F"]},
    "GradePointsSplit": {
      "type": "object",
      "properties": {
        "Legal": {"type": "string"},
        "KYCAndTransactionRisk": {"type": "string"},
        "Team": {"type": "string"},
        "DataProvision": {"type": "string"},
        "AssetQualityAndDiversity": {"type": "string"},
        "MarketQuality": {"type": "string"},
        "Security": {"type": "string"},
        "NegativeReportsPenalty": {"type": "string"}
      }
    },
    "AffiliateURL": {"type": "string"},
    "Country": {"type": "string"},
    "OrderBook": {"type": "boolean"},
    "Trades": {"type": "boolean"},
    "Description": {"type": "string"}
  }
}
