code: def onOrderUpdated(self, order):
      if order.isBuy():
          orderType = "Buy"
      else:
          orderType = "Sell"
      self.info(
          "%s order %d updated - Status: %s"
          % (
              orderType,
              order.getId(),
              basebroker.Order.State.toString(order.getState()),
          )
      )
  
file_path: pyalgotrade/samples/bbands.py
imports: from __future__ import print_function
  from pyalgotrade import strategy
  from pyalgotrade import plotter
  from pyalgotrade.tools import quandl
  from pyalgotrade.technical import bollinger
  from pyalgotrade.stratanalyzer import sharpe
  from pyalgotrade import broker
label_desc: Use image node_id 3 for calling the BBands obj's underlying member method code with example usage: obj.onOrderUpdated(order) without return types