def __init__(self, stock, price, share, handler): Command.__init__(self, handler) self._api = TradeApi.Instance() self._stock = stock self._price = price self._share = share self._handler = handler
def __init__(self, stock, orderId, handler): Command.__init__(self, handler) self._api = TradeApi.Instance() self._marketId = str(getMarketID(stock)) self._stock = stock self._orderId = orderId self._handler = handler
def __init__(self, handler): Command.__init__(self, handler) self._api = TradeApi.Instance() self._handler = handler