def current_value(self): return self.shares * Decimal(quotes.current_price(self.ticker))
def current_price(self): return quotes.current_price(self.symbol)
def current_price(request, symbol): price = Decimal(quotes.current_price(symbol)) return HttpResponse(price)