validate quantity in Portfolio::buy()