Answer to Question #234927 in Python for Philip

Question #234927

class PriceChecker():

def __init__(self):

  self.levelsList = []

  self.currentPrice  = 0.0

  self.BitmexClient = bitmex.bitmex(test=False)

@property

 def levelsList(self):

 return self.__levelsList

@levelsList.setter

def levelsList(self, newValue):

self.__levelsList = newValue

@property

def currentPrice(self):

 ...        

@currentPrice.setter

 def currentPrice(self, newValue):

 ...


1
Expert's answer
2021-09-08T15:49:20-0400
class PriceChecker():
    def __init__(self):
        self.levelsList = []
        self.currentPrice  = 0.0
        self.BitmexClient = bitmex.bitmex(test=False)
    @property
    def levelsList(self):
        return self.__levelsList
    @levelsList.setter
    def levelsList(self, newValue):
        self.__levelsList = newValue
    @property
    #Answering the question by completing a part of the class marked by Ellipsis
    def currentPrice(self):
        return self.__currentPrice
    #Answering the question by completing a part of the class marked by Ellipsis
    @currentPrice.setter
    def currentPrice(self, newValue):
        self.__currentPrice = newValue

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS