When the market price of a token is higher than 0.98, using the createAndPostMarketOrder method to create a market order may occasionally result in the following error:
Invalid price (0.999), min: 0.01 - max: 0.99
According to your documentation, a ticksize of 0.999 should be valid at this point.