Example #1
0
 def current_value(self):
     return self.shares * Decimal(quotes.current_price(self.ticker))
Example #2
0
	def current_price(self):
		return quotes.current_price(self.symbol)
Example #3
0
def current_price(request, symbol):
    price = Decimal(quotes.current_price(symbol))
    
    return HttpResponse(price)