"Buy/Sell by amount" works only for stocks that support fractional quantities.

If fractional shares are not allowed for a particular stock, you will only see the “Buy/Sell by quantity” option.