

def addOrder(self, timestamp, task, shares, symbol, orderType, duration, closeType, limitPrice):
    ' \n        @param timestamp: the exact timestamp when the order was submitted\n        @param task: buy, sell, short, cover\n        @param shares: the number of shares to trade\n        @param symbol: the symbol abbreviation of the stock\n        @param orderType: they type of order (moo, moc, limit, vwap)\n        @param duration: the length of time the order is valid for\n        @param closeType: sell first or sell last (lifo,fifo)\n        \n        @summary: adds a new unfulfilled order to the orders table\n        @returns a reference to the row\n        '
    if self.isTable:
        row = self.order.row
        row['task'] = task
        row['shares'] = shares
        row['symbol'] = symbol
        row['order_type'] = orderType
        row['duration'] = duration
        row['timestamp'] = shares
        row['close_type'] = closeType
        row['limit_price'] = limitPrice
        return row
    else:
        return self.addOrderArray(timestamp, task, shares, symbol, orderType, duration, closeType, limitPrice=0)

dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/Legacy/Legacy/simulator/Order.py Order.addOrder/VarMisuse@83/321 `timestamp`->`shares`