The oil market recorded a weekly gain due to demand optimism following signals that Chinese imports would increase at the same time U.S. dollar index limit upside.