예제 #1
0
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]
예제 #2
0
 def __init__(self):
     ''' constructor '''
     super(EastmoneyDAM, self).__init__()
     self.__ef = EastmoneyFinance()