{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-exchange-rate-response-schema.json", "title": "ExchangeRateResponse", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/revolut-foreign-exchange-api-openapi.yml#/components/schemas/ExchangeRateResponse", "type": "object", "properties": { "from": { "description": "The money to sell.", "$ref": "#/$defs/AmountWithCurrency" }, "to": { "description": "The money to receive.", "$ref": "#/$defs/AmountWithCurrency" }, "rate": { "type": "number", "format": "double", "description": "The proposed exchange rate." }, "fee": { "description": "The expected fee for the transaction.", "$ref": "#/$defs/Fee" }, "rate_date": { "type": "string", "format": "date-time", "description": "The date of the proposed exchange rate in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format." } }, "required": [ "from", "to", "rate", "fee", "rate_date" ], "$defs": { "AmountWithCurrency": { "type": "object", "description": "", "properties": { "amount": { "type": "number", "format": "double", "description": "The amount of the transaction." }, "currency": { "$ref": "#/$defs/Currency" } } }, "Currency": { "type": "string", "pattern": "^[A-Z]{3}$", "description": "[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code in upper case." }, "Fee": { "type": "object", "properties": { "amount": { "type": "number", "format": "double", "description": "The fee amount." }, "currency": { "$ref": "#/$defs/Currency" } } } } }