Example #1
0
 def getMorningQFin(self, ticker, datacode):
     fin_type = 'qtr'
     try:
         x = float(
             morningstar.fetch_financials(self, fin_type, ticker, datacode))
     except:
         x = morningstar.fetch_financials(self, fin_type, ticker, datacode)
     return x
Example #2
0
 def getMorningQFin( self, ticker, datacode):
     """Return Quarterly data. Mapped to PyUNO through the Xsmf.rdb file"""
     fin_type = 'qtr'
     try:
         x = float(morningstar.fetch_financials(self, fin_type,  ticker,
                                                 datacode))
     except:
         x = morningstar.fetch_financials(self, fin_type, ticker, datacode)
     return x
Example #3
0
 def getMorningQFin(self, ticker, datacode):
     """Return Quarterly data. Mapped to PyUNO through the Xsmf.rdb file"""
     fin_type = 'qtr'
     try:
         x = float(
             morningstar.fetch_financials(self, fin_type, ticker, datacode))
     except:
         x = morningstar.fetch_financials(self, fin_type, ticker, datacode)
     return x
Example #4
0
 def getMorningQFin(self, ticker, datacode):
     fin_type = 'qtr'
     try:
         s = morningstar.fetch_financials(self, fin_type, ticker, datacode)
     except Exception as ex:
         return str(ex)
     try:
         x = float(s)
     except:
         x = s
     return x
Example #5
0
 def getMorningFin( self, ticker, datacode):
     return morningstar.fetch_financials(self, ticker, datacode)
Example #6
0
 def getMorningFin(self, ticker, datacode):
     return morningstar.fetch_financials(self, ticker, datacode)