Gold prices end lower, give back nearly half of their recent rally