Class PostTradeAllocation
- java.lang.Object
-
- com.caplin.motif.fx.trading.allocation.PostTradeAllocation
-
public class PostTradeAllocation extends java.lang.Object
Represents a single allocation within a Post Allocation request.- See Also:
PostTradeAllocationList
-
-
Constructor Summary
Constructors Constructor Description PostTradeAllocation(Account account, BuySell buySell, java.lang.String amount, LegType swapLeg, java.lang.String legId)
-
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).
-
-
-
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
-
-