Oil holds on to gains ahead of weekly API numbers with risk of another build in stockpile