{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kalshispy-com/json-schema/kalshispy-com-stats-schema.json",
  "title": "Stats",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kalshispy-com-openapi.json#/components/schemas/Stats",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean"
    },
    "markets": {
      "type": "integer"
    },
    "net_profit_usd": {
      "type": "number"
    },
    "winners_profit_usd": {
      "type": "number"
    },
    "first_settled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_settled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "top_whales": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "nickname": {
            "type": "string"
          },
          "wins": {
            "type": "integer"
          },
          "profit_usd": {
            "type": "number"
          }
        }
      }
    },
    "weeks": {
      "type": "integer"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "Category": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "politics",
            "elections",
            "sports",
            "entertainment",
            "economics",
            "financials",
            "crypto",
            "weather",
            "world",
            "scitech",
            "companies",
            "health",
            "social",
            "transportation",
            "mentions",
            "exotics",
            "other"
          ]
        },
        "label": {
          "type": "string"
        },
        "wins": {
          "type": "integer"
        },
        "net_profit_usd": {
          "type": "number"
        },
        "last_settled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}