US stocks extended gains for a second day on Tuesday as optimism grew that a solution to the Greek debt problem was near, boosting investor appetite for risky assets. Buyers snapped up shares that had fallen sharply in the past week, mostly in commodities and technology.
The S&P energy index surged nearly 2.2 percent, the biggest gainer among S&P sectors. Halliburton Co gained 5.3 percent to $48.66, while Chevron Corp was up 1.2 percent at $100.09. The Dow Jones industrial average was up 118.64 points, or 0.99 percent, at 12,162.20. The Standard & Poor's 500 Index was up 13.05 points, or 1.02 percent, at 1,293.15. The Nasdaq Composite Index was up 31.99 points, or 1.19 percent, at 2,720.27.