class EastmoneyDAM(BaseDAM): ''' Yahoo DAM ''' def __init__(self): ''' constructor ''' super(EastmoneyDAM, self).__init__() self.__ef = EastmoneyFinance() def readAllStocks(self): ''' list all stocks in market ''' symbols = self.__ef.getAllStockSymbols() return [Stock(s, symbols[s], 0.0) for s in symbols]
def __init__(self): ''' constructor ''' super(EastmoneyDAM, self).__init__() self.__ef = EastmoneyFinance()