{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/currencycloud/main/json-schema/currencycloud-rates-basic-schema.json",
  "title": "RatesBasic",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currencycloud-rates-api-openapi.yml#/components/schemas/RatesBasic",
  "properties": {
    "rates": {
      "type": "object",
      "description": "Maps currency pairs (eg. \"EURUSD\", \"GBPZAR\") to rates. The first number is the bid SPOT rate and the second is the ask SPOT rate. For example, in the EURUSD example response, the first number (1.3803) is the EUR->USD rate and the second number (1.3809) is the USD->EUR rate.",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string",
          "description": "A pair of rates for the currency pair. The first number is the bid SPOT rate and the second is the ask SPOT rate."
        }
      }
    },
    "unavailable": {
      "type": "array",
      "description": "A list of valid currency pairs that are not currently available."
    }
  }
}