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