how does the bot handle the situation when a trade could not be filled (due to other bots competing for the same pair prices)?
If there is unfilled amount the remaining (XMR or ETH) is added to the bank.Bank Monitor keeps the average bought price and amount.That amount is used in the next arbitrage events if it will be profitable, also every 45 seconds bank monitor checks the current BTC_XMR and BTC_ETH sell price and if it will be profitable sell the bank amounts.