Stocks open higher, oil extends gains