What does cancel the deal do?

The bot cancels all open orders for the bot and closes the deal immediately.

Note: bot doesn’t sell coins back. So if for example during the deal bot USDT-BTC bought some BTC and you have cancelled the deal, you will have BTC on your exchange account, keep that in mind.