{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-clock-schema.json",
  "title": "Clock",
  "description": "Represents the current market time and open/close events.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-clock-api-openapi.yml#/components/schemas/Clock",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "minLength": 1,
      "format": "date-time",
      "description": "Current timestamp"
    },
    "is_open": {
      "type": "boolean",
      "description": "Whether the market is open or not"
    },
    "next_open": {
      "type": "string",
      "minLength": 1,
      "format": "date-time",
      "description": "Next market open timestamp"
    },
    "next_close": {
      "type": "string",
      "minLength": 1,
      "format": "date-time",
      "description": "Next market close timestamp"
    }
  },
  "required": [
    "timestamp",
    "is_open",
    "next_open",
    "next_close"
  ]
}