Class BlockTradeSubmitTranslator

  • All Implemented Interfaces:
    Consumer<com.caplin.trading.TradeEvent>

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

      • BlockTradeSubmitTranslator

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

      • 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