Trade data shows that rising prices for imported oil widened the US trade deficit in October.