# Function: Display the Bitcoin price in the menu item – to assist the user when setting price levels
   def updateMenuPrice(self):
       # Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.
       tickObj = self.getBitMexPrice()
       # Update the currentPrice property with the Bitcoin price in tickObj.
       . . .
 def updateMenuPrice(self):
     # Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.
     tickObj = self.getBitMexPrice()
     # Update the currentPrice property with the Bitcoin price in tickObj.
     self.__currentPrice = tickObj
     return self.__currentPrice
Comments
Leave a comment