{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-corporate-actions-resp-schema.json",
  "title": "corporate_actions_resp",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-eu-market-data-api-openapi.yml#/components/schemas/corporate_actions_resp",
  "properties": {
    "corporate_actions": {
      "$ref": "#/$defs/corporate_actions"
    },
    "next_page_token": {
      "$ref": "#/$defs/next_page_token"
    }
  },
  "required": [
    "corporate_actions",
    "next_page_token"
  ],
  "type": "object",
  "$defs": {
    "ca_id": {
      "description": "The internal Alpaca identifier of the corporate action.",
      "format": "uuid",
      "type": "string"
    },
    "capital_gains_distribution": {
      "description": "Capital gains distribution paid by a fund. A single event may carry a long-term\nleg (`long_term_rate`), a short-term leg (`short_term_rate`), or both when\ncombined. At least one of the two rates is always present.\n",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "long_term_rate": {
          "description": "Long-term capital-gain payment per share.",
          "format": "double",
          "type": "number"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "short_term_rate": {
          "description": "Short-term capital-gain payment per share.",
          "format": "double",
          "type": "number"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "cash_dividend": {
      "description": "Cash dividend.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "due_bill_off_date": {
          "format": "date",
          "type": "string"
        },
        "due_bill_on_date": {
          "format": "date",
          "type": "string"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "foreign": {
          "type": "boolean"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "rate": {
          "format": "double",
          "type": "number"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "special": {
          "type": "boolean"
        },
        "sub_type": {
          "description": "Sub-type of the cash dividend.",
          "enum": [
            "interest",
            "return_of_capital"
          ],
          "type": "string"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "rate",
        "special",
        "foreign",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "cash_merger": {
      "description": "Cash merger.",
      "properties": {
        "acquiree_cusip": {
          "type": "string"
        },
        "acquiree_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquiree_symbol": {
          "type": "string"
        },
        "acquirer_cusip": {
          "type": "string"
        },
        "acquirer_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquirer_symbol": {
          "type": "string"
        },
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "effective_date": {
          "$ref": "#/$defs/effective_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "rate": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "id",
        "acquiree_symbol",
        "acquiree_cusip",
        "rate",
        "process_date",
        "effective_date"
      ],
      "type": "object"
    },
    "corporate_actions": {
      "properties": {
        "capital_gains_distributions": {
          "items": {
            "$ref": "#/$defs/capital_gains_distribution"
          },
          "type": "array"
        },
        "cash_dividends": {
          "items": {
            "$ref": "#/$defs/cash_dividend"
          },
          "type": "array"
        },
        "cash_mergers": {
          "items": {
            "$ref": "#/$defs/cash_merger"
          },
          "type": "array"
        },
        "forward_splits": {
          "items": {
            "$ref": "#/$defs/forward_split"
          },
          "type": "array"
        },
        "name_changes": {
          "items": {
            "$ref": "#/$defs/name_change"
          },
          "type": "array"
        },
        "partial_calls": {
          "items": {
            "$ref": "#/$defs/partial_call"
          },
          "type": "array"
        },
        "redemptions": {
          "items": {
            "$ref": "#/$defs/redemption"
          },
          "type": "array"
        },
        "reorganizations": {
          "items": {
            "$ref": "#/$defs/reorganization"
          },
          "type": "array"
        },
        "reverse_splits": {
          "items": {
            "$ref": "#/$defs/reverse_split"
          },
          "type": "array"
        },
        "rights_distributions": {
          "items": {
            "$ref": "#/$defs/rights_distribution"
          },
          "type": "array"
        },
        "spin_offs": {
          "items": {
            "$ref": "#/$defs/spin_off"
          },
          "type": "array"
        },
        "stock_and_cash_mergers": {
          "items": {
            "$ref": "#/$defs/stock_and_cash_merger"
          },
          "type": "array"
        },
        "stock_dividends": {
          "items": {
            "$ref": "#/$defs/stock_dividend"
          },
          "type": "array"
        },
        "stock_mergers": {
          "items": {
            "$ref": "#/$defs/stock_merger"
          },
          "type": "array"
        },
        "unit_splits": {
          "items": {
            "$ref": "#/$defs/unit_split"
          },
          "type": "array"
        },
        "worthless_removals": {
          "items": {
            "$ref": "#/$defs/worthless_removal"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "currency": {
      "description": "The ISO 4217 currency code associated with the corporate action.\nEmpty value can mean USD, non-applicable (e.g. for name changes) or unknown\n(can change later to a valid currency).\n",
      "type": "string"
    },
    "due_bill_redemption_date": {
      "description": "The date when due bill obligations are redeemed.",
      "format": "date",
      "type": "string"
    },
    "effective_date": {
      "description": "The effective date marks the cutoff point for shareholders to be credited.",
      "format": "date",
      "type": "string"
    },
    "ex_date": {
      "description": "The ex-date marks the cutoff point for shareholders to be credited.",
      "format": "date",
      "type": "string"
    },
    "expiration_date": {
      "format": "date",
      "type": "string"
    },
    "forward_split": {
      "description": "Forward split.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "due_bill_redemption_date": {
          "$ref": "#/$defs/due_bill_redemption_date"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "new_rate": {
          "format": "double",
          "type": "number"
        },
        "old_rate": {
          "format": "double",
          "type": "number"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "new_rate",
        "old_rate",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "isin": {
      "description": "International Securities Identification Number (ISIN) as defined by ISO 6166.\nMay be empty for US corporate actions.\n",
      "type": "string"
    },
    "name_change": {
      "description": "Name change.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "new_cusip": {
          "type": "string"
        },
        "new_isin": {
          "$ref": "#/$defs/isin"
        },
        "new_symbol": {
          "type": "string"
        },
        "old_cusip": {
          "type": "string"
        },
        "old_isin": {
          "$ref": "#/$defs/isin"
        },
        "old_symbol": {
          "type": "string"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        }
      },
      "required": [
        "id",
        "old_symbol",
        "old_cusip",
        "new_symbol",
        "new_cusip",
        "process_date"
      ],
      "type": "object"
    },
    "next_page_token": {
      "description": "Pagination token for the next page.",
      "type": [
        "string",
        "null"
      ]
    },
    "partial_call": {
      "description": "Partial call.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "dividend_rate": {
          "format": "double",
          "type": "number"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "lottery_date": {
          "format": "date",
          "type": "string"
        },
        "lottery_type": {
          "description": "The type of lottery for the partial call.",
          "enum": [
            "original",
            "supplemental"
          ],
          "type": "string"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "price": {
          "format": "double",
          "type": "number"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "results_publication_date": {
          "format": "date",
          "type": "string"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "process_date"
      ],
      "type": "object"
    },
    "payable_date": {
      "description": "The date when the corporate action benefit is paid or distributed.",
      "format": "date",
      "type": "string"
    },
    "process_date": {
      "description": "The date when the corporate action is processed by Alpaca.",
      "format": "date",
      "type": "string"
    },
    "record_date": {
      "description": "The date shareholders must own shares to receive the benefit.",
      "format": "date",
      "type": "string"
    },
    "redemption": {
      "description": "Redemption.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "rate": {
          "format": "double",
          "type": "number"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "rate",
        "process_date"
      ],
      "type": "object"
    },
    "reorganization": {
      "description": "Reorganization (cash and/or multiple stock allocations).",
      "properties": {
        "cash_rate": {
          "format": "double",
          "type": "number"
        },
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "effective_date": {
          "$ref": "#/$defs/effective_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "type": "string"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "stock_movements": {
          "items": {
            "$ref": "#/$defs/reorganization_stock_movement"
          },
          "type": "array"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "process_date",
        "effective_date"
      ],
      "type": "object"
    },
    "reorganization_stock_movement": {
      "description": "A stock allocation leg in a reorganization.",
      "properties": {
        "cusip": {
          "type": "string"
        },
        "isin": {
          "type": "string"
        },
        "new_rate": {
          "format": "double",
          "type": "number"
        },
        "source_rate": {
          "format": "double",
          "type": "number"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "symbol",
        "cusip",
        "new_rate",
        "source_rate"
      ],
      "type": "object"
    },
    "reverse_split": {
      "description": "Reverse split.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "new_cusip": {
          "type": "string"
        },
        "new_isin": {
          "$ref": "#/$defs/isin"
        },
        "new_rate": {
          "format": "double",
          "type": "number"
        },
        "new_symbol": {
          "description": "The post-split ticker. Empty when the reverse split does not change the\nticker (the most common case); only populated when the issuer assigns a\ndifferent symbol after the split.\n",
          "type": "string"
        },
        "old_cusip": {
          "type": "string"
        },
        "old_isin": {
          "$ref": "#/$defs/isin"
        },
        "old_rate": {
          "format": "double",
          "type": "number"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "old_cusip",
        "new_cusip",
        "new_rate",
        "old_rate",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "rights_distribution": {
      "description": "Rights distribution.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "expiration_date": {
          "$ref": "#/$defs/expiration_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "new_cusip": {
          "type": "string"
        },
        "new_isin": {
          "$ref": "#/$defs/isin"
        },
        "new_symbol": {
          "type": "string"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "rate": {
          "format": "double",
          "type": "number"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "source_cusip": {
          "type": "string"
        },
        "source_isin": {
          "$ref": "#/$defs/isin"
        },
        "source_symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "source_symbol",
        "source_cusip",
        "new_symbol",
        "new_cusip",
        "rate",
        "process_date",
        "ex_date",
        "payable_date"
      ],
      "type": "object"
    },
    "spin_off": {
      "description": "Spin-off.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "due_bill_redemption_date": {
          "$ref": "#/$defs/due_bill_redemption_date"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "new_cusip": {
          "type": "string"
        },
        "new_isin": {
          "$ref": "#/$defs/isin"
        },
        "new_rate": {
          "format": "double",
          "type": "number"
        },
        "new_symbol": {
          "type": "string"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "source_cusip": {
          "type": "string"
        },
        "source_isin": {
          "$ref": "#/$defs/isin"
        },
        "source_rate": {
          "format": "double",
          "type": "number"
        },
        "source_symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "source_symbol",
        "source_cusip",
        "source_rate",
        "new_symbol",
        "new_cusip",
        "new_rate",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "stock_and_cash_merger": {
      "description": "Stock and cash merger.",
      "properties": {
        "acquiree_cusip": {
          "type": "string"
        },
        "acquiree_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquiree_rate": {
          "format": "double",
          "type": "number"
        },
        "acquiree_symbol": {
          "type": "string"
        },
        "acquirer_cusip": {
          "type": "string"
        },
        "acquirer_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquirer_rate": {
          "format": "double",
          "type": "number"
        },
        "acquirer_symbol": {
          "type": "string"
        },
        "cash_rate": {
          "format": "double",
          "type": "number"
        },
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "effective_date": {
          "$ref": "#/$defs/effective_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        }
      },
      "required": [
        "id",
        "acquirer_symbol",
        "acquirer_cusip",
        "acquirer_rate",
        "acquiree_symbol",
        "acquiree_cusip",
        "acquiree_rate",
        "cash_rate",
        "process_date",
        "effective_date"
      ],
      "type": "object"
    },
    "stock_dividend": {
      "description": "Stock dividend.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "ex_date": {
          "$ref": "#/$defs/ex_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "rate": {
          "format": "double",
          "type": "number"
        },
        "record_date": {
          "$ref": "#/$defs/record_date"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "rate",
        "process_date",
        "ex_date"
      ],
      "type": "object"
    },
    "stock_merger": {
      "description": "Stock merger.",
      "properties": {
        "acquiree_cusip": {
          "type": "string"
        },
        "acquiree_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquiree_rate": {
          "format": "double",
          "type": "number"
        },
        "acquiree_symbol": {
          "type": "string"
        },
        "acquirer_cusip": {
          "type": "string"
        },
        "acquirer_isin": {
          "$ref": "#/$defs/isin"
        },
        "acquirer_rate": {
          "format": "double",
          "type": "number"
        },
        "acquirer_symbol": {
          "type": "string"
        },
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "effective_date": {
          "$ref": "#/$defs/effective_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        }
      },
      "required": [
        "id",
        "acquirer_symbol",
        "acquirer_cusip",
        "acquirer_rate",
        "acquiree_symbol",
        "acquiree_cusip",
        "acquiree_rate",
        "process_date",
        "effective_date"
      ],
      "type": "object"
    },
    "unit_split": {
      "description": "Unit split.",
      "properties": {
        "alternate_cusip": {
          "type": "string"
        },
        "alternate_isin": {
          "$ref": "#/$defs/isin"
        },
        "alternate_rate": {
          "format": "double",
          "type": "number"
        },
        "alternate_symbol": {
          "type": "string"
        },
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "effective_date": {
          "$ref": "#/$defs/effective_date"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "new_cusip": {
          "type": "string"
        },
        "new_isin": {
          "$ref": "#/$defs/isin"
        },
        "new_rate": {
          "format": "double",
          "type": "number"
        },
        "new_symbol": {
          "type": "string"
        },
        "old_cusip": {
          "type": "string"
        },
        "old_isin": {
          "$ref": "#/$defs/isin"
        },
        "old_rate": {
          "format": "double",
          "type": "number"
        },
        "old_symbol": {
          "type": "string"
        },
        "payable_date": {
          "$ref": "#/$defs/payable_date"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        }
      },
      "required": [
        "id",
        "old_symbol",
        "old_cusip",
        "old_rate",
        "new_symbol",
        "new_cusip",
        "new_rate",
        "alternate_symbol",
        "alternate_cusip",
        "alternate_rate",
        "process_date",
        "effective_date"
      ],
      "type": "object"
    },
    "worthless_removal": {
      "description": "Worthless removal.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "cusip": {
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/ca_id"
        },
        "isin": {
          "$ref": "#/$defs/isin"
        },
        "process_date": {
          "$ref": "#/$defs/process_date"
        },
        "symbol": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "symbol",
        "cusip",
        "process_date"
      ],
      "type": "object"
    }
  }
}