{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-leaderboard-response-schema.json",
  "title": "LeaderboardResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-history-api-openapi.yml#/components/schemas/LeaderboardResponse",
  "type": "object",
  "required": [
    "ok",
    "source",
    "entries"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "source": {
      "type": "string",
      "description": "Always 'fee_events_aggregated' — aggregates only, never raw events"
    },
    "windowDays": {
      "type": [
        "integer",
        "null"
      ]
    },
    "entries": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "object",
        "required": [
          "address",
          "totalVolumeUSD",
          "totalFeeUSD",
          "swapCount"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "totalVolumeUSD": {
            "type": "number"
          },
          "totalFeeUSD": {
            "type": "number"
          },
          "swapCount": {
            "type": "integer"
          }
        }
      }
    }
  }
}