Class BlockTradeSubmitTranslator

java.lang.Object
com.caplin.motif.fx.trading.block.BlockTradeSubmitTranslator
All Implemented Interfaces:
Consumer<com.caplin.trading.TradeEvent>

public class BlockTradeSubmitTranslator extends Object implements Consumer<com.caplin.trading.TradeEvent>
  • Constructor Details

    • BlockTradeSubmitTranslator

      public BlockTradeSubmitTranslator(BlockTradeListener listener)
      instantiates a BlockTradeSubmitTranslator
      Parameters:
      listener - the BlockTradeListener
  • Method Details

    • accept

      public void accept(com.caplin.trading.TradeEvent event)
      Submits a BlockTradeSubmitEvent based on the side extracted from the trade event
      Specified by:
      accept in interface Consumer<com.caplin.trading.TradeEvent>
      Parameters:
      event - the TradeEvent