code: def tickUpdate(self, tick_dict):
          ''' consume ticks '''
          assert self.symbols
          assert self.symbols[0] in tick_dict.keys()
          symbol=self.symbols[0]
          tick=tick_dict[symbol]
  
          if self.increase_and_check_counter():
              self.place_order(Order(account=self.account,
                                    action=Action.BUY,
                                    is_market=True,
                                    symbol=symbol,
                                    price=tick.close,
                                    share=self.per_amount / float(tick.close))f tickUpdate(self, tick_dict):
          ''' consume ticks '''
          assert self.symbols
          assert self.symbols[0] in tick_dict.keys()
          symbol=self.symbols[0]
          tick=tick_dict[symbol]
  
          if self.increase_and_check_counter():
              self.place_order(Order(account=self.account,
                                    action=Action.BUY,
                                    is_market=True,
                                    symbol=symbol,
                                    price=tick.close,
                                    share=self.per_amount / float(tick.close)))
docs: consume ticks