Oil ends down but off lows, then slides on API report