def getorder(self, time, countdown, lob):
                if 1 < len(self.orders):
                        self.active = False
                        order = None
                else:
                        self.active = True
                        self.limit = self.orders[0].price
                        self.job = self.orders[0].otype
                        if self.job == 'Bid':
                                # currently a buyer (working a bid order)
                                self.margin = self.margin_buy
                        else:
                                # currently a seller (working a sell order)
                                self.margin = self.margin_sell
                        quoteprice = int(self.limit * (1 + self.margin))
                        self.price = quoteprice

                        order = Order(self.tid, self.job, quoteprice, self.orders[0].qty, time)

                return order


        # update margin on basis of what happened in market
dataset/ETHPy150Open davecliff/BristolStockExchange/BSE.py/Trader_ZIP.getorder/swapped operands of `<`