Class BlockSubmitWrapper
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.submission.block.BlockSubmitWrapper
A wrapper for a
SubmitTradeEvent
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
ConstructorDescriptionBlockSubmitWrapper
(com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent submitTradeEvent, boolean isV1Message, int numberOfV1NonNettedV1Legs, int totalV1Legs) -
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent
int
int
getSettlementDateForNettedLegNo
(int legNo) getStringLegIdForLegQuote
(com.caplin.ret.trapi.fx.execution.LegQuote legQuote) int
boolean
isEven()
boolean
isSales()
boolean
-
Constructor Details
-
BlockSubmitWrapper
public BlockSubmitWrapper(com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent submitTradeEvent, boolean isV1Message, int numberOfV1NonNettedV1Legs, int totalV1Legs)
-
-
Method Details
-
getStringLegIdForLegQuote
-
getNumberOfNettedLegs
public int getNumberOfNettedLegs() -
getNetBuySell
-
getBackingTradeEvent
public com.caplin.generated.motif.fx.trading.rfs.events.client.SubmitTradeEvent getBackingTradeEvent()- Returns:
- Get the
SubmitTradeEvent
backing this wrapper.
-
getSettlementDateForNettedLegNo
-
isSales
public boolean isSales() -
isV1Message
public boolean isV1Message() -
isEven
public boolean isEven() -
getTotalV1Legs
public int getTotalV1Legs() -
getNumberOfV1NonNettedV1Legs
public int getNumberOfV1NonNettedV1Legs()
-