add checks in prices method for client to raise errors when from and to
is not given