{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-convert-request-schema.json",
  "title": "Conversion request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-conversions-api-openapi.yml#/components/schemas/wallet_ConvertRequest",
  "allOf": [
    {
      "$ref": "#/$defs/wallet_Amount"
    },
    {
      "type": "object",
      "required": [
        "amount",
        "from_currency",
        "to_currency"
      ],
      "properties": {
        "from_currency": {
          "$ref": "#/$defs/wallet_CurrencyCommon",
          "description": "Source currency code."
        },
        "to_currency": {
          "type": "string",
          "description": "Target currency code."
        }
      }
    }
  ],
  "$defs": {
    "wallet_Amount": {
      "title": "Amount",
      "type": "object",
      "properties": {
        "amount": {
          "$ref": "#/$defs/wallet_AmountCommon"
        }
      }
    },
    "wallet_AmountCommon": {
      "title": "Amount",
      "type": "string",
      "description": "The amount of the operation.\n\nFormat: currency precision\n\nValues: > 0\n\nℹ️ Call `GET /public/currency/{currency}` to get the currency precision.\n"
    },
    "wallet_CurrencyCommon": {
      "title": "Cryptocurrency",
      "type": "string",
      "description": "Cryptocurrency code."
    }
  }
}