class_docstr: Represents the status and update event for each update a Trade has
  
  This object is a dictionary which allows '.' notation
  
  Attributes:
    - ``status`` (``dict`` with '.' notation): Holds the resulting status of
      an update event and has the following sub-attributes
  
      - ``status`` (``int``): Trade status
      - ``dt`` (``float``): float coded datetime
      - ``barlen`` (``int``): number of bars the trade has been active
      - ``size`` (``int``): current size of the Trade
      - ``price`` (``float``): current price of the Trade
      - ``value`` (``float``): current monetary value of the Trade
      - ``pnl`` (``float``): current profit and loss of the Trade
      - ``pnlcomm`` (``float``): current profit and loss minus commission
  
    - ``event`` (``dict`` with '.' notation): Holds the event update
      - parameters
  
      - ``order`` (``object``): the order which initiated the``update``
      - ``size`` (``int``): size of the update
      - ``price`` (``float``):price of the update
      - ``commission`` (``float``): price of the update
class_docstr_tok: ["Represents","the","status","and","update","event","for","each","update","a","Trade","has","This","object","is","a","dictionary","which","allows","'",".","'","notation","Attributes",":","-","``","status","``","(","``","dict","``","with","'",".","'","notation",")",":","Holds","the","resulting","status","of","an","update","event","and","has","the","following","sub-attributes","-","``","status","``","(","``","int","``",")",":","Trade","status","-","``","dt","``","(","``","float","``",")",":","float","coded","datetime","-","``","barlen","``","(","``","int","``",")",":","number","of","bars","the","trade","has","been","active","-","``","size","``","(","``","int","``",")",":","current","size","of","the","Trade","-","``","price","``","(","``","float","``",")",":","current","price","of","the","Trade","-","``","value","``","(","``","float","``",")",":","current","monetary","value","of","the","Trade","-","``","pnl","``","(","``","float","``",")",":","current","profit","and","loss","of","the","Trade","-","``","pnlcomm","``","(","``","float","``",")",":","current","profit","and","loss","minus","commission","-","``","event","``","(","``","dict","``","with","'",".","'","notation",")",":","Holds","the","event","update","-","parameters","-","``","order","``","(","``","object","``",")",":","the","order","which","initiated","the","``","update","``","-","``","size","``","(","``","int","``",")",":","size","of","the","update","-","``","price","``","(","``","float","``",")",":","price","of","the","update","-","``","commission","``","(","``","float","``",")",":","price","of","the","update"]
docstr: Used to fill the ``update`` part of the history entry
docstr_tok: ["Used","to","fill","the","``","update","``","part","of","the","history","entry"]
code: def doupdate(self, order, size, price, commission):
      """Used to fill the ``update`` part of the history entry"""
      self.event.order = order
      self.event.size = size
      self.event.price = price
      self.event.commission = commission
  
      # Do not allow updates (avoids typing errors)
      self._close()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  from .utils import AutoOrderedDict
  from .utils.date import num2date
  from .utils.py3 import range
label_desc: Use image node_id 3 for calling the TradeHistory obj's underlying member method code with example usage: obj.doupdate(order, size, price, commission) without return types