Oil could stay in driver's seat Wednesday

Stock traders will be looking over their shoulders at energy markets Wednesday, after two days of whiplash from falling oil prices.

Oil could again be volatile, particularly with 10:30 a.m. ET release of petroleum inventory data expected from the Energy Information Administration. American Petroleum Institute data, released after Tuesday's market close, showed a surprise drawdown in supply, driving oil futures slightly higher in late trading.

The Dow fell 162 points Tuesday to 17,568, and the S&P 500 was 13 points lower Tuesday, at 2,063.

Read More Consumers do have more money so do this: Parker

The Dow has had a triple-digit move every day in December, and it has lost 280 points, or 1.6 percent since this week began. U.S. crude futures, as of Tuesday's settle, lost 11 percent since OPEC Friday raised its output quota and left its market-based pricing policy in place. The sell-off in crude has weighed on other commodities as well as stocks.

Since Dec. 1, oil is down about 10.4 percent, while the S&P is off 1.9 percent, but without energy stocks it would be down 1.2 percent, according to S&P/Capital IQ.

Analysts had expected this week to be relatively quiet with traders awaiting the Fed's rate decision next week. The Fed is expected to raise its fed funds target rate by 0.25 percent, in the first rate hike in nine years.

Read More More shoppers waiting until Christmas Eve: Study

"I wouldn't have thought we'd have seen much directionally in advance of the Fed meeting. It's all but certain the Fed is going to move off the zero bound. Just what is going to accompany that announcement, we don't know. That much uncertainty I would have thought would have been enough to keep investors sitting on their hands," said Mark Luschini, chief investment strategist at Janney Montgomery.

Already, traders have moved past speculating about the Fed's first rate hike, and are gaming when the next one will be. The Fed's economic and interest rate forecasts should provide some clues when they are released with the Fed decision Dec. 16.

"I think the waiting for Fed game is clearly an overarching theme for the next week and between now and then, it's oil and some mid-level data points that will be interesting but not going to do anything to dissuade what the Fed policy will be," Luschini said.

Read More US job openings total 5.4 million in October

Data expected Wednesday includes wholesale trade at 10 a.m. The Treasury auctions $21 billion in reopened 10-year notes at 1 p.m. ET.

But traders in all markets will be watching the reaction to the oil inventory data. West Texas Intermediate futures for January settled slightly lower Tuesday at $37.51 after dipping to $36.64 earlier. Brent, the international bench mark fell to $40.26 per barrel.

Read More Banks and the Fed: Why this time is different

"There was some suspicion — not necessarily one we shared — that the oil market was trying to hammer out a rough bottom around $40 a barrel. Obviously with the meeting in Vienna, we found that wasn't the case," said Luschini.

John Kilduff of Again Capital said that after the API data, he now expects a build of 300,000 or 400,000 barrels. The API reported that supplies fell by 1.9 million barrels for the week ending Dec. 4, while analysts had expected a build. That sent oil slightly higher in late trading.

Read More Bank of America analyst looks 10 years ahead

"We're due for a correction or short covering rally anyway," said Kilduff. He previously had expected a build of 1.3 million, before the API data. "It will still be up, just not as much as I was thinking."

There are a few earnings Wednesday, including Lululemon Athletica, Vera Bradley and Korn/Ferry before the bell. Men's Wearhouse reports after the market close.

Read More What oil's plunge means for gasoline prices