The stock market rallied upon opening for the second consecutive time this week as the trading session began on .