Erasing a huge chunk of its gains through the day, the market ended the session on a flat note, with the indices ending above key milestones of 30K and 9400.

The Sensex closed up 2.81 points at 30250.98, while the Nifty ended higher by 15.10 points at 9422.40. The market breadth favoured the declines as 1,246 shares advanced against a fall of 1,588 shares, while 169 shares were unchanged.

Two-wheeler stocks gained throughout the day, followed by Zee Entertainment, while oil and gas stocks and Bharti Airtel were a drag.

The midcap index ended flat, while auto, IT and metals ended on a positive note. Meanwhile, banks closed lower.