The Indian stock market recovered most of its losses by the closing bell, with the key Sensex index ending only 2.21 points or 0.02% lower than the previous day's close. While the markets opened lower, broader indices such as the BSE midcap ended up 0.24% as trading volumes increased ahead of futures and options contracts expiring later in the week. Foreign investors sold $40.7 million worth of shares during the day's trading.