Sometime when you are trying to buy by market with all your available balance (as a rule using Max button), the order will be cancelled due to "Insufficient funds" error.
This issue is caused by the Max button, which calculates the maximum volume of an asset from the value of the ticker (price of the last trade on an exchange) the volume of trades in relation to the value of the ticker may be less than the calculations of the max button. It is unable to be completely filled and will be canceled, thats why it isn't recommended to use the Max button.
To prevent such situations, you can do the following things:
- Set a limit order with a higher price than the ticker's price.
- Set a lesser amount of the asset then the max button allows.