コード例 #1
0
 def __get_sell_value(self, stock_set_id):
     # current price * number of shares
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.get_value()
コード例 #2
0
 def __get_buying_value(self, stock_set_id):
     # price paid * number of shares
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.get_buying_value()
コード例 #3
0
 def __get_buying_price(self, stock_set_id):
     '''
     Returns the price the that the stock was bought bought-at
     '''
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.purchase_price
コード例 #4
0
 def __get_sell_value(self, stock_set_id):
     # current price * number of shares
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.get_value()
コード例 #5
0
 def __get_buying_value(self, stock_set_id):
     # price paid * number of shares
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.get_buying_value()
コード例 #6
0
 def __get_buying_price(self, stock_set_id):
     """
     Returns the price the that the stock was bought bought-at
     """
     stk = Stock_Owned.get_stock(stock_set_id)
     return stk.purchase_price