Oil gave back some of its recent gains on Friday, but was still headed for the biggest weekly increase since early July, boosted by a decline in US stocks, a looming hurricane in Florida and an easing of Sino-US trade rhetoric.