sticking with `quantity` and not `amount` in API to match CLI