{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-crypto-price-response-schema.json",
  "title": "CryptoPriceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-crypto-price-api-openapi.yml#/components/schemas/CryptoPriceResponse",
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string"
    },
    "price": {
      "type": "string",
      "description": "The price of the trading pair. Live on paid plans; on the free plan it is the close of the last completed hour."
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Unix timestamp (seconds) of the moment the data was measured. On paid plans this is the moment the price was read. On the free plan it is the top of the current hour: the free tier updates once per hour, so every request within the same hour returns the same values and the same timestamp."
    },
    "exchange_rate_timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Fiat quotes only (e.g. BTCEUR). Unix timestamp (seconds) of the exchange rate used to convert the US-dollar price. Can be older than timestamp, e.g. at weekends when currency markets are closed."
    }
  }
}