My order is getting rejected with the following error – ‘The order was rejected to avoid self trade. Try placing the order again’.

Such an error occurs when a user places an order to buy or sell, and the order matches with another order placed by the same user on the opposite side. In other words, an individual is essentially engaging in self-trading.