{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinmate/json-schema/coinmate-withdraw-virtual-currency-request-schema.json",
  "title": "WithdrawVirtualCurrencyRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinmate-trading.yaml#/components/schemas/WithdrawVirtualCurrencyRequest",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "Destination address"
    },
    "amount": {
      "type": "number",
      "description": "Amount to withdraw"
    },
    "amountType": {
      "type": "string",
      "default": "GROSS",
      "enum": [
        "NET",
        "GROSS"
      ]
    },
    "clientId": {
      "type": "integer",
      "format": "int64",
      "description": "Client ID (account number)"
    },
    "currencyName": {
      "type": "string",
      "description": "Currency code: ADA, BTC, ETH, LTC, SOL, USDT, XRP"
    },
    "destinationTag": {
      "type": "string",
      "description": "Destination tag (XRP only)"
    },
    "feePriority": {
      "type": "string",
      "description": "Fee priority (BTC only), default HIGH",
      "enum": [
        "HIGH",
        "LOW"
      ]
    },
    "nonce": {
      "type": "integer",
      "format": "int64",
      "description": "Unique incrementing nonce"
    },
    "publicKey": {
      "type": "string",
      "description": "API public key"
    },
    "signature": {
      "type": "string",
      "description": "HMAC-SHA256 signature"
    }
  },
  "required": [
    "address",
    "amount",
    "clientId",
    "currencyName",
    "nonce",
    "signature"
  ]
}