Mumbai, July 4 -- The domestic equity benchmarks ended with moderate gains after a volatile session today, snapping a two-day losing streak, as investors turned their focus to the upcoming earnings season. Nifty settled above the 25,450 mark after hitting the day's low of 25,331.65 in early-afternoon trade.

Oil & gas, realty and pharma shares advanced, while metal and auto shares corrected.

As per provisional closing data, the barometer index, the S&P BSE Sensex advanced 193.42 points or 0.23% to 83,432.89. The Nifty 50 index gained 55.70 points or 0.22% to 25,461.

In the broader market, the S&P BSE Mid-Cap index rose 0.23% and the S&P BSE Small-Cap index added 0.17%.

The market breadth was positive. On the BSE, 2,275 shares rose and...