Class BlockSubmitWrapper
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.submission.block.BlockSubmitWrapper
-
public class BlockSubmitWrapper extends java.lang.Object
A wrapper for aSubmitTradeEvent
for use in Block Quotes. The netted legs in this class are NOT sent to RET. They are set up to match the netted legs that RET will be sending on the block quote.Provides access to all netted legs of the trade event, sorted by settlement date. Calculates netBuySell of the block quote from the netted legs.
-
-
Constructor Summary
Constructors Constructor Description BlockSubmitWrapper(com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent submitTradeEvent, boolean isV1Message, int numberOfV1NonNettedV1Legs, int totalV1Legs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent
getBackingTradeEvent()
java.lang.String
getNetBuySell()
int
getNumberOfNettedLegs()
int
getNumberOfV1NonNettedV1Legs()
java.lang.String
getSettlementDateForNettedLegNo(int legNo)
java.lang.String
getStringLegIdForLegQuote(com.caplin.ret.trapi.fx.execution.LegQuote legQuote)
int
getTotalV1Legs()
boolean
isEven()
boolean
isSales()
boolean
isV1Message()
-
-
-
Method Detail
-
getStringLegIdForLegQuote
public java.lang.String getStringLegIdForLegQuote(com.caplin.ret.trapi.fx.execution.LegQuote legQuote)
-
getNumberOfNettedLegs
public int getNumberOfNettedLegs()
-
getNetBuySell
public java.lang.String getNetBuySell()
-
getBackingTradeEvent
public com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent getBackingTradeEvent()
- Returns:
- Get the
SubmitTradeEvent
backing this wrapper.
-
getSettlementDateForNettedLegNo
public java.lang.String getSettlementDateForNettedLegNo(int legNo)
-
isSales
public boolean isSales()
-
isV1Message
public boolean isV1Message()
-
isEven
public boolean isEven()
-
getTotalV1Legs
public int getTotalV1Legs()
-
getNumberOfV1NonNettedV1Legs
public int getNumberOfV1NonNettedV1Legs()
-
-