Package org.isda.cdm

Class Position


  • @RosettaClass
    public class Position
    extends com.rosetta.model.lib.RosettaModelObject
    A Position describes how much of a given Product is being held and constitutes the atomic element of a Portfolio.
    Version:
    2.5.4
    • Method Detail

      • getCashBalance

        public final Money getCashBalance()
        The aggregate cost of proceeds
      • getContractReference

        public final ReferenceWithMetaContract getContractReference()
        Reference to the Contract, in case product is contractual and the contract has been formed
      • getPositionStatus

        public final PositionStatusEnum getPositionStatus()
        Qualifier for the state of the Position, to distinguish if just executed, formed, already settled, closed etc.
      • getProduct

        public final Product getProduct()
        The product underlying the position, which can either be a contractual product or securities.
      • getQuantity

        public final Quantity getQuantity()
        The quantity of the product, which can be a negative number in case of a short position.
      • metaData

        public com.rosetta.model.lib.meta.RosettaMetaData<? extends Position> metaData()
        Specified by:
        metaData in class com.rosetta.model.lib.RosettaModelObject
      • toBuilder

        public Position.PositionBuilder toBuilder()
        Specified by:
        toBuilder in class com.rosetta.model.lib.RosettaModelObject
      • process

        public void process​(com.rosetta.model.lib.path.RosettaPath path,
                            com.rosetta.model.lib.process.Processor processor)
        Specified by:
        process in class com.rosetta.model.lib.RosettaModelObject
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object