Oil prices edged up after recent losses