{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/btse/main/json-schema/btse-asset-exchange-rate-response-schema.json",
  "title": "AssetExchangeRateResponse",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/btse-wallet-openapi.yml#/components/schemas/AssetExchangeRateResponse",
  "allOf": [
    {
      "$ref": "#/$defs/CommonResponse"
    }
  ],
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rate": {
            "type": "string",
            "description": "The rate of base-currency to quote-currency"
          }
        }
      }
    }
  },
  "$defs": {
    "CommonResponse": {
      "type": "object",
      "required": [
        "success",
        "code",
        "msg",
        "time"
      ],
      "properties": {
        "success": {
          "description": "Request validation is successful or not. It will be set to `true` when the HTTP status is `200`.",
          "type": "boolean"
        },
        "code": {
          "description": "Request status code. It will be set to `1` when the request is processed successfully. When unsuccessful, there will be an error code.",
          "type": "integer"
        },
        "msg": {
          "description": "Request status message. It will be set to `Success` when the request is processed successfully. When unsuccessful, there will be an error message.",
          "type": "string"
        },
        "time": {
          "description": "Current unix timestamp.",
          "type": "number"
        }
      }
    }
  }
}