Oil steadies after gains driven by trade optimism