fix portfolio quantity