code: def __init__(self, dateTime, trade):
      self.__dateTime = dateTime
      self.__tradeId = trade.getId()
      self.__price = trade.getPrice()
      self.__amount = trade.getAmount()
      self.__buy = trade.isBuy()
  
imports: import datetime
  import time
  from six.moves import queue
  from pyalgotrade import bar
  from pyalgotrade import barfeed
  from pyalgotrade import observer
  from pyalgotrade.bitstamp import common
  from pyalgotrade.bitstamp import wsclient
label_desc: Use image node_id 1 to create a new TradeBar object from inherited base classes: bar with example: obj = TradeBar(dateTime, trade)