{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptoetf-today/json-schema/cryptoetf-today-prices-dto-schema.json",
  "title": "PricesDto",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/cryptoetf-today-v1-openapi.json#/components/schemas/PricesDto",
  "type": "object",
  "properties": {
    "prices": {
      "description": "One entry per tracked asset. An asset the exchange did not return is left out.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PriceDto"
      }
    },
    "updatedAt": {
      "type": "string",
      "description": "When the prices were fetched from the exchange (UTC, ISO 8601). Cached for 60 s; can be up to 5 minutes old."
    }
  },
  "required": [
    "prices",
    "updatedAt"
  ],
  "$defs": {
    "PriceDto": {
      "type": "object",
      "properties": {
        "symbol": {
          "type": "string",
          "description": "Ticker symbol."
        },
        "priceUsd": {
          "type": "number",
          "description": "Last price of the coin against USDT on the exchange (≈ USD)."
        },
        "change24hPct": {
          "type": "number",
          "description": "Rolling 24-hour price change on the exchange, percent, rounded to 0.01."
        }
      },
      "required": [
        "symbol",
        "priceUsd",
        "change24hPct"
      ]
    }
  }
}