My order is getting rejected with the following error – ‘Order partially executed. The remaining order was cancelled by the exchange’.

This error occurs when an order is not fully executed due to insufficient buyers or sellers in the market.

Example: If you have placed a buy order for 50 shares but there are sellers in the markets for only 30 shares. In such a scenario, your order will be partially executed with 30 shares, and the remaining 20 shares will get cancelled after validity.