Exemple #1
0
def book_value_per_share(ticker, date, object):
    totalAssets = RatiosFunctions.get_total_asset(ticker, date)
    totalLiab = RatiosFunctions.get_total_liabilities(ticker, date)
    shares = RatiosFunctions.get_outstanding_shares(ticker, object)

    try:
        bookValuePerShare = (float(totalAssets) -
                             float(totalLiab)) / float(shares)
    except:
        print("################## Function book_value_per_share: " + ticker +
              " Datum: " + date + " Total Assets: " + str(totalAssets) +
              " Total Liabilities: " + str(totalLiab))

    return bookValuePerShare
 def __init__(self, symbole, quarterly):
     self.symbole = symbole
     self.quarterly = quarterly
     self.total_liabilities = f.get_total_liabilities(symbole, quarterly)