{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/factiq-com/json-schema/factiq-com-watchlist-schema.json",
  "title": "Watchlist",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/factiq-com-equities-api-openapi.yml#/components/schemas/Watchlist",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "position": {
      "type": "integer",
      "title": "Position"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/WatchlistItem"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "position",
    "created_at",
    "updated_at",
    "items"
  ],
  "$defs": {
    "WatchlistItem": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "symbol": {
          "type": "string",
          "title": "Symbol"
        },
        "company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Name"
        },
        "position": {
          "type": "integer",
          "title": "Position"
        },
        "added_at": {
          "type": "string",
          "format": "date-time",
          "title": "Added At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "symbol",
        "position",
        "added_at"
      ],
      "title": "WatchlistItem"
    }
  }
}