Client position could have been squared off for a number of reasons such as :
1) Intraday trades will auto squared off at 3:15 pm for the Cash segment & 3:20 for the F&O segment.
2) Intraday trades will be squared off if you lose 80% of your Available Margin.
3) When client don't maintain the minimum required Margin in account shares will be squared off 4 days after the shortfall occurs.
4) When client shares bought using Margin are down by more than 50% of your Funds balance, square off will be done on the next trading day.
5) Shares bought under Margin Product need to be fully paid or pledged, failing which the shares willl be sqaured off after 7 days.
6) If client account goes under debit/negative balance, then shares will be squared off after 7 days.