Class BlockTradePriceUpdateEvent
java.lang.Object
com.caplin.motif.fx.trading.ResponderEvent<BlockTrade>
com.caplin.motif.fx.trading.block.event.BlockTradePriceUpdateEvent
Represents a Block Quote which is generally comprised of many legs.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the field for net dealt amountstatic final String
The name of the field for net contra amountstatic final String
Fields inherited from class com.caplin.motif.fx.trading.ResponderEvent
fields
-
Constructor Summary
ConstructorDescriptionBlockTradePriceUpdateEvent
(BlockTradeNetInfo netInfo, Message quote) Constructs a BlockQuote with the specified quotes, and adds netted legs to the original onesBlockTradePriceUpdateEvent
(BlockTradeNetInfo netInfo, Message quote, int timeout) Constructs a BlockQuote with the specified quotes, and adds netted legs to the original ones -
Method Summary
Methods inherited from class com.caplin.motif.fx.trading.ResponderEvent
addField, addFields, equals, getEventName, getField, getFields, hashCode, toString
-
Field Details
-
NET_DEALT_AMOUNT
The name of the field for net dealt amount- See Also:
-
OVERALL_TIME_OUT
The name of the field for net contra amount- See Also:
-
PRICE_UPDATE
- See Also:
-
-
Constructor Details
-
BlockTradePriceUpdateEvent
public BlockTradePriceUpdateEvent(BlockTradeNetInfo netInfo, Message quote) throws BlockQuoteException Constructs a BlockQuote with the specified quotes, and adds netted legs to the original ones- Parameters:
quote
- The list of quotes of all the legs.netInfo
- the BlockTradeNetInfo- Throws:
BlockQuoteException
- if a corresponding netted leg cannot be found
-
BlockTradePriceUpdateEvent
public BlockTradePriceUpdateEvent(BlockTradeNetInfo netInfo, Message quote, int timeout) throws BlockQuoteException Constructs a BlockQuote with the specified quotes, and adds netted legs to the original ones- Parameters:
quote
- The list of quotes of all the legs.netInfo
- the BlockTradeNetInfo- Throws:
BlockQuoteException
- if a corresponding netted leg cannot be found
-
-
Method Details
-
getQuoteFields
Returns the quote fields- Returns:
- the map of quote fields
-