# Once this method has been called, it uses a Timer to execute every 2 seconds
def monitorLevels(self):
# Create timer to call this method every 2 seconds
threading.Timer(2.0, self.monitorLevels).start()
# Since we will obtain the latest current price from the exchange,
# store the existing value of currentPrice in previousPrice
self.previousPrice = self.currentPrice
# Similar to updateMenuPrice(), call the getBitMexPrice() method to get
# a Ticker object containing the latest Bitcoin information. Then store
# the Bitcoin price in currentPrice
. . .
# replace ellipsis with applicable code
Comments
Leave a comment