def __init__(self, id, symbol, primaryExchange): Contract.__init__(self) self._id = id self.symbol = symbol self.secType = 'STK' self.exchange = 'SMART' self.primaryExchange = primaryExchange
def __init__(self): Contract.__init__(self) self.secType = 'STK' self.exchange = 'SMART' self.currency = 'USD' self.primaryExchange = 'ARCA'
def __init__(self,contractID,contractBuyTarget,contractTotalInvestment,contractSellTarget,contractNumToBuy): IBcontract.__init__(self) self.contractID = contractID self.contractBuyTarget = contractBuyTarget self.contractTotalInvestment = contractTotalInvestment self.contractSellTarget = contractSellTarget self.contractNumToBuy = contractNumToBuy
def __init__(self, **kwargs): """ make Contract accept fields at init :param kwargs: fields of Contract """ Contract.__init__(self) self.__dict__.update(**kwargs)
def __init__(self): Contract.__init__(self) DBObject.__init__(self, self.__module__, type(self).__name__)