Class BlockTradeQuoteResponder

java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<BlockTrade>
com.caplin.motif.fx.trading.block.responder.BlockTradeQuoteResponder
Direct Known Subclasses:
BlockTradeExecutableResponder, BlockTradePickedUpResponder

public class BlockTradeQuoteResponder extends FXResponder<BlockTrade>

Base class for responding to quotes from block trade states that send quotes

  • Constructor Details

    • BlockTradeQuoteResponder

      public BlockTradeQuoteResponder(BlockTrade trade)
      Constructs a Responder that can respond from states that send block trade quotes.
      Parameters:
      trade - The trade this responder will send messages for
  • Method Details

    • sendPriceUpdate

      public void sendPriceUpdate(BlockTradePriceUpdateEvent quoteEvent) throws com.caplin.trading.TradeException
      Sends a block trade trade quote event.
      Parameters:
      quoteEvent - The block trade quote to send to the client.
      Throws:
      com.caplin.trading.TradeException - if there was a problem sending the quote