Sectorally, realty, financial and banking stocks led the gains, while all sectoral indices except pharma and healthcare traded in positive territory