Oil gained on Friday while stocks on Wall Street closed lower even as major US and European stock indices posted their best month in at least four years, boosted in part by accommodative monetary policies in the euro zone and Japan.

Oil prices rose after the US oil rig count fell for a ninth straight week, indicating potentially lower crude output in coming months in the face of a global supply glut.

The dollar slipped after data showing US consumer spending in September recorded its smallest gain in eight months as personal income barely rose, suggesting some cooling in domestic demand after recent hefty increases.

European shares closed slightly higher, with the pan-European FTSEurofirst 300 index.FTEU3 up 0.01% at 1,484.46, while the euro zone's blue-chip Euro STOXX 50 index .STOXX50E rose 0.14% to 3,418.23. The two indices posted their best monthly gains in more than six years.

Financial stocks led the decline on Wall Street as falling prices accelerated at the close. Traders had focused on heavy sell orders posted for the close, said Ken Polcari, director of the NYSE floor division at O'Neil Securities in New York.

The Dow Jones industrial average .DJI closed down 92.26 points, or 0.52%, to 17,663.54. The S&P 500 .SPX fell 10.05 points, or 0.48%, to 2,079.36 and the Nasdaq Composite .IXIC lost 20.53 points, or 0.4%, to 5,053.75.

"The burning question on everybody's lips is very simply, what is going to happen at the end of the year, are we going to get the Santa Claus rally?" said Andrew Wilkinson, chief market strategist at Interactive Brokers LLC in Greenwich, Connecticut.

Investors have taken in stride indications that the US Federal Reserve will raise interest rates in December, and worries about slowing Chinese growth have subsided, he said.

"There are no barbarians at the gate at this moment. Everything seems to have calmed, volatility has come down, people seem to comprehend what the Fed is about to do and they got a greater sense of how deep the Chinese problems are," he said.

The CBOE Volatility index .VIX fell 38.5% in October, its biggest monthly drop on record.

Energy majors Exxon (XOM.N) and Chevron (CVX.N) reported better-than-expected results, helped by strong refining margins. Exxon rose 0.6 percent to $82.74 and Chevron was up 1.1 percent to $90.88. Chevron was the biggest boost to the Dow, and Exxon was the third-largest.

US Treasuries prices rose, with benchmark yields retreating from one-month peaks as soft domestic and overseas data renewed traders' focus on tepid global growth. Month-end buying boosted longer-dated Treasuries prices.

Some investors added US bonds back to their holdings on expectations of further bond-buying stimulus from the European Central Bank and the Bank of Japan to combat deflation.

Brent, the global benchmark for oil, settled 76 cents higher at $49.56 a barrel. U.S. crude futures CLc1 rose 53 cents to settle at $46.59 a barrel.