My suggestion is mainly to prevent fat finger trades. Let users set “maximum order value” in settings. After that, If a user places an order, it goes through the risk management layer, and is approved/rejected.
For example: If I set 10 lakh as maximum order value. And I place an order to buy 20 MRF quantity, the order gets rejected completely. Since the order value is 20*68000, which is more than 10 lakh.
The risk management layer can have more features (please suggest below).