{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-movers-resp-schema.json",
  "title": "movers_resp",
  "description": "Contains list of market movers.",
  "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/movers_resp",
  "properties": {
    "gainers": {
      "description": "List of top N gainers.",
      "items": {
        "$ref": "#/$defs/mover"
      },
      "type": "array"
    },
    "last_updated": {
      "description": "Time when the movers were last computed. Formatted as a RFC-3339 date-time with nanosecond precision.\n",
      "type": "string"
    },
    "losers": {
      "description": "List of top N losers.",
      "items": {
        "$ref": "#/$defs/mover"
      },
      "type": "array"
    },
    "market_type": {
      "$ref": "#/$defs/market_type"
    }
  },
  "required": [
    "gainers",
    "losers",
    "market_type",
    "last_updated"
  ],
  "type": "object",
  "$defs": {
    "market_type": {
      "description": "Market type (stocks or crypto).",
      "enum": [
        "stocks",
        "crypto"
      ],
      "type": "string"
    },
    "mover": {
      "description": "A symbol whose price moved significantly.",
      "properties": {
        "change": {
          "description": "Difference in change for the day.",
          "format": "double",
          "type": "number"
        },
        "percent_change": {
          "description": "Percentage difference change for the day.",
          "format": "double",
          "type": "number"
        },
        "price": {
          "description": "Current price of market moving asset.",
          "format": "double",
          "type": "number"
        },
        "symbol": {
          "description": "Symbol of market moving asset.",
          "type": "string"
        }
      },
      "required": [
        "symbol",
        "percent_change",
        "change",
        "price"
      ],
      "title": "Mover",
      "type": "object"
    }
  }
}