The sentiment was boosted by positive Asian cues on Chinese assurance of no further devaluation of its currency.
Also helped was encouraging CPI Inflation and Industrial Output data
However, the index pared early gains as the government failed to pass GST bill during the Monsoon Session of Parliament, which concluded today.
Trading in wide-range, the index touched intra-day high of 8,429.50-level, before finishing with small gains.
Yesterday, the Consumer Price Index (CPI) for July fell to an all time low under the current series of 3.78 per cent from its previous level of 5.40 per cent helped by slump in food prices. While the industrial output for the month of June grew to four months high at 3.8 per cent amid growth in manufacturing sector.
Also Read
While, the second line small-cap and mid-cap shares also witnessed selling.
Elsewhere, Asian stocks ended higher following late recovery of the US stocks overnight on efforts by China's central bank to slow the descent of yuan, while European equities also trading higher.
The broader 50-share Nifty opened higher at 8,384.45 and fluctuated between between 8,429.50 and 8,339.75 before ending at 8,355.85, showing a marginal gain of 6.40 points or 0.08 per cent.
Stockwise, major gainers were M&M (3.09 per cent), Cipla (2.52 per cent), Tata Power (2.37 per cent), Lupin (2.09 per cent), BPCL (1.75 per cent), Axis Bank ( 1.74 per cent) and Coal India (1.52 per cent).
Turnover in the cash segment declined to Rs 18,193.88 crore compared with Rs 19,361.00 crore yesterday.
A total of 9,533.58 lakh shares changed hands in 82,43,142 trades and the total market capitalisation of NSE stood at Rs 99,53,317 crore.