{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-amount-lock-schema.json",
  "title": "Amount lock",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-amount-locks-api-openapi.yml#/components/schemas/wallet_AmountLock",
  "allOf": [
    {
      "$ref": "#/$defs/wallet_Currency"
    },
    {
      "$ref": "#/$defs/wallet_CreatedAt"
    },
    {
      "type": "object",
      "required": [
        "id",
        "currency",
        "amount",
        "date_end",
        "description",
        "canceled",
        "canceled_at",
        "cancel_description",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "uint64",
          "description": "Amount lock identifier."
        },
        "amount": {
          "type": "string",
          "description": "Locked amount in USD."
        },
        "date_end": {
          "type": "string",
          "description": "The date and time of the lock expiration."
        },
        "description": {
          "type": "string",
          "description": "Text description."
        },
        "canceled": {
          "type": "boolean",
          "description": "Flag indicating whether the amount lock was canceled."
        },
        "canceled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Date and time of the lock cancellation."
        },
        "cancel_description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Text description on cancellation."
        }
      }
    }
  ],
  "$defs": {
    "wallet_CreatedAt": {
      "title": "Created at",
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time of the creation."
        }
      }
    },
    "wallet_Currency": {
      "title": "Currency",
      "properties": {
        "currency": {
          "$ref": "#/$defs/wallet_CurrencyCommon"
        }
      }
    },
    "wallet_CurrencyCommon": {
      "title": "Cryptocurrency",
      "type": "string",
      "description": "Cryptocurrency code."
    }
  }
}