{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "description": "Currency code to convert from, e.g. \"USD\"."
    },
    "to": {
      "description": "Currency codes to convert to, e.g. [\"EUR\",\"JPY\"]. Default: all.",
      "maxItems": 40,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 3
      }
    },
    "amount": {
      "description": "Amount to convert. Default 1.",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000000
    },
    "date": {
      "description": "Historical date (YYYY-MM-DD). Default: latest.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "from"
  ],
  "additionalProperties": false
}