{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-user-leaderboard-response-dto-schema.json",
  "title": "UserLeaderboardResponseDTO",
  "description": "Users leaderboard page info",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/debridge-com-users-api-openapi.yml#/components/schemas/UserLeaderboardResponseDTO",
  "type": "object",
  "properties": {
    "users": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/UserLeaderboardItemDTO"
      },
      "description": "Leaderboard items from requested page"
    },
    "totalCount": {
      "type": "integer",
      "description": "Total number of leaderboard items",
      "format": "int32"
    },
    "searchResult": {
      "$ref": "#/$defs/UserLeaderboardItemDTO"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddressPropertyDTO": {
      "type": "object",
      "properties": {
        "Base64Value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Binary representation of the property value",
          "format": "byte"
        },
        "bytesArrayValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Bytes array representation of the value",
          "readOnly": true
        },
        "stringValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "String representation of the property value",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "UserLeaderboardItemDTO": {
      "type": "object",
      "properties": {
        "walletAddress": {
          "$ref": "#/$defs/AddressPropertyDTO"
        },
        "userRank": {
          "type": "integer",
          "description": "Rank of the user in the leaderboard\nUsers are ranked by TotalFeesGeneratedUsd descending",
          "format": "int32"
        },
        "totalVolumeUSD": {
          "type": "number",
          "description": "Total give amount's USD equivalent of all user's orders that used the referral code",
          "format": "double"
        },
        "totalFeesUSD": {
          "type": "number",
          "description": "Total fees' USD equivalent of all user's orders that used the referral code",
          "format": "double"
        },
        "totalExecutedOrders": {
          "type": "integer",
          "description": "Total number of user's orders that used the referral code",
          "format": "int32"
        }
      },
      "additionalProperties": false
    }
  }
}