Sometimes when you trying to buy by market with all your tradable balance (as a rule using Max button), the order can be cancelled with "Insufficient funds" error.
This issue occurs because Max button calculates the maximum volume of an asset which you can buy proceeding from the value of ticker (price of the last trade on an exchange). In fact, the volume of trades in relation to the value of ticker may be less, than the calculations of Max button. In this case, market order can not be completely filled and It will be cancelled. That is why It is not recommended to use Max button for buying assets by market.
To avoid such situations, you can do these things:
- You can use limit order with a price higher than ticker's one. This choice is more suitable.
- You can set less amount of an asset, than Max button allows you.