Traders were betting the supply of oil from Iran and elsewhere in the Middle East would slow or grind to a halt.