def __init__(self, params, offset=0):
        agents.Agent.__init__(self, params, offset)
        try:
            self.maxprice = self.args[0]
        except (AttributeError, IndexError):
            raise MissingParameter, 'maxprice'
        try:
            self.maxbuy = self.args[1]
        except IndexError:
            raise MissingParameter, 'maxbuy'
        del self.args
        # {BUY: [prevprice, success], SELL: [prevprice, sucess]}
        self.prevorder = {BUY: [0.01, False], SELL: [self.maxprice, False]}
        # Reservation prices
        self.resbuy = random.randint(1, int(self.maxprice*50))/100.
        self.ressell = random.randint(int(self.maxprice*50), \
                                          self.maxprice*100)/100.
        # Successful bids
        self.successes = list()
dataset/ETHPy150Open jcbagneris/fms/fms/contrib/coleman/agents/smartprobeboundedtrader.py/SmartProbeBoundedTrader.__init__/original