{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.cryptocompare.com/schemas/cryptocompare/fullticker.json",
  "title": "CryptoCompare Full Ticker",
  "description": "Full ticker payload emitted by min-api /pricemultifull and the CCCAGG WebSocket index (TYPE 5).",
  "type": "object",
  "required": ["TYPE", "MARKET", "FROMSYMBOL", "TOSYMBOL", "PRICE"],
  "properties": {
    "TYPE": {"type": "string", "description": "Numeric message type (2 ticker, 5 CCCAGG)."},
    "MARKET": {"type": "string", "description": "Source market or CCCAGG."},
    "FROMSYMBOL": {"type": "string", "description": "Base asset symbol."},
    "TOSYMBOL": {"type": "string", "description": "Quote asset symbol."},
    "FLAGS": {"type": ["integer", "string"], "description": "Bitmask describing which component moved."},
    "PRICE": {"type": "number"},
    "LASTUPDATE": {"type": "integer", "description": "Unix timestamp of the last update."},
    "MEDIAN": {"type": "number", "description": "Cross-exchange median (CCCAGG only)."},
    "LASTVOLUME": {"type": "number"},
    "LASTVOLUMETO": {"type": "number"},
    "LASTTRADEID": {"type": "string"},
    "VOLUMEHOUR": {"type": "number"},
    "VOLUMEHOURTO": {"type": "number"},
    "OPENHOUR": {"type": "number"},
    "HIGHHOUR": {"type": "number"},
    "LOWHOUR": {"type": "number"},
    "VOLUMEDAY": {"type": "number"},
    "VOLUMEDAYTO": {"type": "number"},
    "OPENDAY": {"type": "number"},
    "HIGHDAY": {"type": "number"},
    "LOWDAY": {"type": "number"},
    "VOLUME24HOUR": {"type": "number"},
    "VOLUME24HOURTO": {"type": "number"},
    "OPEN24HOUR": {"type": "number"},
    "HIGH24HOUR": {"type": "number"},
    "LOW24HOUR": {"type": "number"},
    "CHANGE24HOUR": {"type": "number"},
    "CHANGEPCT24HOUR": {"type": "number"},
    "CHANGEDAY": {"type": "number"},
    "CHANGEPCTDAY": {"type": "number"},
    "CHANGEHOUR": {"type": "number"},
    "CHANGEPCTHOUR": {"type": "number"},
    "TOPTIERVOLUME24HOUR": {"type": "number"},
    "TOPTIERVOLUME24HOURTO": {"type": "number"},
    "MKTCAP": {"type": "number"},
    "CIRCULATINGSUPPLY": {"type": "number"},
    "SUPPLY": {"type": "number"},
    "TOTALVOLUME24H": {"type": "number"},
    "TOTALVOLUME24HTO": {"type": "number"},
    "LASTMARKET": {"type": "string"},
    "CONVERSIONTYPE": {"type": "string", "enum": ["direct", "multiply", "invert_multiply", "force_direct"]},
    "CONVERSIONSYMBOL": {"type": "string"}
  }
}
