Markets managed to end in the green amid high volatility on Friday. The BSE Sensex ended at 43,882.25, gaining 282.29 points or 0.65%. The Nifty closed at 12,859.05, adding 87.35 points or 0.68%.