Class BlockTradePriceUpdateEvent
- java.lang.Object
-
- com.caplin.motif.fx.trading.ResponderEvent<BlockTrade>
-
- com.caplin.motif.fx.trading.block.event.BlockTradePriceUpdateEvent
-
public class BlockTradePriceUpdateEvent extends ResponderEvent<BlockTrade>
Represents a Block Quote which is generally comprised of many legs.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NET_DEALT_AMOUNT
The name of the field for net dealt amountstatic String
OVERALL_TIME_OUT
The name of the field for net contra amountstatic String
PRICE_UPDATE
-
Fields inherited from class com.caplin.motif.fx.trading.ResponderEvent
fields
-
-
Constructor Summary
Constructors Constructor Description BlockTradePriceUpdateEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getQuoteFields()
Returns the quote fields-
Methods inherited from class com.caplin.motif.fx.trading.ResponderEvent
addField, addFields, equals, getEventName, getField, getFields, hashCode, toString
-
-
-
-
Field Detail
-
NET_DEALT_AMOUNT
public static final String NET_DEALT_AMOUNT
The name of the field for net dealt amount- See Also:
- Constant Field Values
-
OVERALL_TIME_OUT
public static final String OVERALL_TIME_OUT
The name of the field for net contra amount- See Also:
- Constant Field Values
-
PRICE_UPDATE
public static final String PRICE_UPDATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
-
-