{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whitebit/json-schema/whitebit-sub-account-schema.json",
  "title": "SubAccount",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whitebit-sub-account-api-openapi.yml#/components/schemas/SubAccount",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Sub-account identifier"
    },
    "alias": {
      "type": "string",
      "description": "Sub-account alias/name"
    },
    "userId": {
      "type": "string",
      "description": "User identifier associated with account"
    },
    "email": {
      "type": "string",
      "description": "Sub-account email (masked)"
    },
    "status": {
      "type": "string",
      "description": "Sub-account status"
    },
    "color": {
      "type": "string",
      "description": "Sub-account color"
    },
    "kyc": {
      "type": "object",
      "description": "KYC information",
      "properties": {
        "shareKyc": {
          "type": "boolean",
          "description": "Whether KYC is shared with main account"
        },
        "kycStatus": {
          "type": "string",
          "description": "KYC status"
        }
      }
    },
    "permissions": {
      "type": "object",
      "description": "Sub-account permissions",
      "properties": {
        "spotEnabled": {
          "type": "boolean",
          "description": "Spot trading enabled"
        },
        "collateralEnabled": {
          "type": "boolean",
          "description": "Collateral trading enabled"
        }
      }
    }
  }
}