def place_market_order(self, qty, is_buy):
        side = "buy" if is_buy else "sell"
        response = self.oanda.create_order(
            account_id,
            instrument=self.instrument,
            units=qty,
            side=side,
            type='market')

        if response is not None:
            self.executed_price = float(response["price"])
            print (side, qty, self.instrument) % "Placed order %s %s %s at market."
            return True  # Order is successful

        return False  # Order is unsuccessful
dataset/ETHPy150Open jamesmawm/Mastering-Python-for-Finance-source-codes/B03898_08_codes/ForexSystem.py/ForexSystem.place_market_order/swapped operands of `%`