{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/equity-rank-com/json-schema/equity-rank-com-holdings-replace-schema.json",
  "title": "HoldingsReplace",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/equity-rank-com-admin-owner-portfolio-api-openapi.yml#/components/schemas/HoldingsReplace",
  "properties": {
    "holdings": {
      "items": {
        "$ref": "#/$defs/Holding"
      },
      "type": "array",
      "title": "Holdings"
    }
  },
  "type": "object",
  "required": [
    "holdings"
  ],
  "$defs": {
    "Holding": {
      "properties": {
        "symbol": {
          "type": "string",
          "title": "Symbol"
        },
        "shares": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shares"
        },
        "cost_basis": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cost Basis"
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notes"
        }
      },
      "type": "object",
      "required": [
        "symbol"
      ],
      "title": "Holding"
    }
  }
}