{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$anchor": "cdm.event.position",
  "type": "object",
  "title": "PositionBase",
  "description": "Base class to describe a Position, which could be a group of products (e.g. trade portfolio) or a group of assets (e.g. collateral portfolio).",
  "properties": {
    "priceQuantity": {
      "description": "Position with many price quantities.",
      "type": "array",
      "items": {
        "$ref": "cdm-observable-asset-PriceQuantity.schema.json"
      },
      "minItems": 1
    },
    "product": {
      "description": "The product underlying the position.",
      "$ref": "cdm-product-template-Product.schema.json"
    },
    "asset": {
      "description": "The asset that underlies the position.",
      "$ref": "cdm-base-staticdata-asset-common-Asset.schema.json"
    },
    "cashBalance": {
      "description": "The aggregate cost of proceeds.",
      "$ref": "cdm-observable-asset-Money.schema.json"
    },
    "tradeReference": {
      "description": "Reference to the Contract, in case product is contractual and the contract has been formed.",
      "$ref": "cdm-event-common-metafields-ReferenceWithMetaTradeState.schema.json"
    }
  }
}
