Oil prices gained more than $2 a barrel after having dropped sharply a day before. The futures for the S&P 500 and the Dow Jones Industrial Average edged 0.1 per cent lower.