'Get the latest data and updates the states.'

def update(self):

    self.stock.refresh()
    self.state = self.stock.get_price()
    self.price_change = self.stock.get_change()
    self.price_open = self.stock.get_open()
    self.prev_close = self.stock.get_prev_close()
