{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-stock-auctions-resp-schema.json",
  "title": "stock_auctions_resp",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-us-market-data-api-openapi.yml#/components/schemas/stock_auctions_resp",
  "properties": {
    "auctions": {
      "additionalProperties": {
        "items": {
          "$ref": "#/$defs/stock_daily_auctions"
        },
        "type": "array"
      },
      "type": "object"
    },
    "currency": {
      "type": "string"
    },
    "next_page_token": {
      "$ref": "#/$defs/next_page_token"
    }
  },
  "required": [
    "auctions",
    "next_page_token"
  ],
  "type": "object",
  "$defs": {
    "date": {
      "description": "Date in RFC-3339.",
      "format": "date",
      "type": "string"
    },
    "next_page_token": {
      "description": "Pagination token for the next page.",
      "type": [
        "string",
        "null"
      ]
    },
    "stock_auction": {
      "description": "An auction\n",
      "properties": {
        "c": {
          "description": "The condition flag indicating that this is an auction. See `v2/stocks/meta/conditions/trade` for more details.\n",
          "type": "string"
        },
        "p": {
          "description": "Auction price.",
          "format": "double",
          "type": "number"
        },
        "s": {
          "description": "Auction trade size.",
          "format": "int64",
          "type": "integer"
        },
        "t": {
          "$ref": "#/$defs/timestamp"
        },
        "x": {
          "description": "Exchange code. See `v2/stocks/meta/exchanges` for more details.",
          "type": "string"
        }
      },
      "required": [
        "t",
        "x",
        "p",
        "c"
      ],
      "type": "object"
    },
    "stock_daily_auctions": {
      "description": "Opening and closing auction prices for a given day.\n",
      "properties": {
        "c": {
          "description": "Closing auctions. Every price / exchange / condition triplet is only shown once, with its earliest timestamp.",
          "items": {
            "$ref": "#/$defs/stock_auction"
          },
          "type": "array"
        },
        "d": {
          "$ref": "#/$defs/date"
        },
        "o": {
          "description": "Opening auctions.",
          "items": {
            "$ref": "#/$defs/stock_auction"
          },
          "type": "array"
        }
      },
      "required": [
        "d",
        "o",
        "c"
      ],
      "type": "object"
    },
    "timestamp": {
      "description": "Timestamp in RFC-3339 format with nanosecond precision.",
      "format": "date-time",
      "type": "string"
    }
  }
}