The Indian stock market closed in green on Tuesday as investors set their eyes on the closely-contested US presidential election.