The Indian stock market ended the trading session on Thursday with marginal gains, following a volatile day that saw record highs. The Sensex closed up by 33.40 points at 74,119.39, while the Nifty gained 19.50 points, reaching 22,493.50. Among the top losers on the Nifty were M&M, BPCL, Reliance Industries, Axis Bank, and ICICI Bank.