docstr: @dt - datetime.datetime that the order was placed
  @asset - asset for the order.
  @amount - the number of shares to buy/sell
            a positive sign indicates a buy
            a negative sign indicates a sell
  @filled - how many shares of the order have been filled so far
docstr_tok: ["@","dt","-","datetime.datetime","that","the","order","was","placed","@","asset","-","asset","for","the","order",".","@","amount","-","the","number","of","shares","to","buy\/sell","a","positive","sign","indicates","a","buy","a","negative","sign","indicates","a","sell","@","filled","-","how","many","shares","of","the","order","have","been","filled","so","far"]
code: def __init__(
      self,
      dt,
      asset,
      amount,
      stop=None,
      limit=None,
      filled=0,
      commission=0,
      id=None,
  ):
      """
      @dt - datetime.datetime that the order was placed
      @asset - asset for the order.
      @amount - the number of shares to buy/sell
                a positive sign indicates a buy
                a negative sign indicates a sell
      @filled - how many shares of the order have been filled so far
      """
  
      # get a string representation of the uuid.
      self.id = self.make_id() if id is None else id
      self.dt = dt
      self.reason = None
      self.created = dt
      self.asset = asset
      self.amount = amount
      self.filled = filled
      self.commission = commission
      self._status = ORDER_STATUS.OPEN
      self.stop = stop
      self.limit = limit
      self.stop_reached = False
      self.limit_reached = False
      self.direction = math.copysign(1, self.amount)
      self.type = zp.DATASOURCE_TYPE.ORDER
      self.broker_order_id = None
  
imports: import math
  import uuid
  from six import text_type
  import catalyst.protocol
  from catalyst.assets import Asset
  from catalyst.utils.enum import enum
  from catalyst.utils.input_validation import expect_types
label_desc: Use image node_id 1 to create a new Order object from inherited base classes: object with example: obj = Order(dt, asset, amount, stop, limit, filled, commission, id)