Class PostTradeAllocation


  • public class PostTradeAllocation
    extends java.lang.Object
    Represents a single allocation within a Post Allocation request.
    See Also:
    PostTradeAllocationList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Account getAccount()
      Returns the account that the amount should be allocated to.
      java.lang.String getAmount()
      The amount that should be added or removed from the account.
      BuySell getBuySell()
      Returns whether or not this is a buy or a sell.
      LegType getSwapLeg()
      Returns the leg for swap allocation (this value is optional and can be null).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PostTradeAllocation

        public PostTradeAllocation​(Account account,
                                   BuySell buySell,
                                   java.lang.String amount,
                                   LegType swapLeg,
                                   java.lang.String legId)
    • Method Detail

      • getAccount

        public Account getAccount()
        Returns the account that the amount should be allocated to.
        Returns:
        The account.
      • getBuySell

        public BuySell getBuySell()
        Returns whether or not this is a buy or a sell.

        This implies whether or not the amount will be removed from the account or added to the account.

        Returns:
        either buy or sell.
      • getAmount

        public java.lang.String getAmount()
        The amount that should be added or removed from the account.
        Returns:
        The amount.
      • getSwapLeg

        public LegType getSwapLeg()
        Returns the leg for swap allocation (this value is optional and can be null).
        Returns:
        allocation swap leg