Stocks added to Tuesday's rally on Wednesday as crude oil moved toward $50 a barrel.
The S&P 500 added 0.7%, the Dow Jones Industrial Average rose 0.86%, and the Nasdaq gained 0.64%. The Dow returned to positive territory for the month.
Crude oil prices held onto gains after an official weekly read on inventories confirmed an expected decrease. U.S. crude stocks fell by 4.2 million barrels in the past week, according to the Energy Information Administration, backing up an American Petroleum Institute which found that inventories fell by 5.1 million.
West Texas Intermediate crude oil surged 1.1% to $49.15 a barrel early Wednesday, trading at a seven-month high.
U.S. stocks enjoyed a big rally on Tuesday as Wall Street finally came to grips with the potential for an interest rate hike in June following a week of worry.
Current labor data suggests it is time for the central bank to implement another rate hike, St. Louis Federal Reserve President James Bullard told CNBC, adding to the chorus of Fed members who support a hike sooner than later. Bullard noted that June nor July were sure deals and that the Fed would continue to analyze incoming data.
The U.S. trade balance in goods deficit in April widened to $57.5 billion from $55.6 billion. Analysts had expected the deficit to widen further to $60.2 billion. Non-automotive consumer goods imports rose 0.8% month on month after a 9.9% decline in March.
"While the narrower-than-expected trade deficit spells stronger real GDP growth in [the second quarter], the underlying sluggishness in consumer goods imports warrants attention," Barclays' Jesse Hurwitz wrote in a note. "Some domestic retail sectors, particularly clothing and apparel stores, have reported rising inventory levels in recent months that could be responsible for the near-term slowdown in import demand."
Alibaba (BABA - Get Report) tumbled on news of an investigation from the Securities and Exchange Commission. The SEC plans to investigate data reported from Singles Day, a massive online-sales holiday akin to Cyber Monday. The China-based e-commerce site said it didn't know when the investigation would conclude.
Hewlett Packard Enterprise (HPE - Get Report) surged 10% after announcing plans to spin off its enterprise services unit which will then merge with Computer Sciences (CSC) . HPE shareholders will hold 50% of the newly formed company. Computer Sciences rocketed 34% higher.
Microsoft (MSFT - Get Report) announced plans to lay off 1,850 workers, another step in its moves to streamline its cellphone hardware business acquired from Nokia. The tech giant will take a restructuring charge of roughly $950 million in the current quarter.
Tiffany & Co. (TIF - Get Report) fell after issuing a soft forecast for the full year. The jeweler expects full-year earnings to fall by mid-single-digit percentages, above consensus for a 1.8% drop. The company blamed lower foreign tourist spending in Europe, the U.S. and Asia.
Wells Fargo (WFC - Get Report) shares were on watch after the bank lowered profit targets for the next two years. The company is targeting return on equity between 11% to 14%, down from a previous range of 12% to 15%.
Best Buy (BBY - Get Report) was downgraded to hold from buy with a $32 price target at Deutsche Bank. Analysts noted that the electronics retailer is investing more in future growth and a second-half recovery may not materialize.