Oil prices rose after Iran threatened to shut down the Strait of Hormuz indefinitely in response to President Donald Trump’s ultimatum on the restoration of oil traffic through the critical waterway.