I thought you have solved the problem already... it is like the debug log says, the software tries to sell (or buy) the coins. However the exchange rejects your order because the trade-amount is to high. You noticed this problem already i guess. The solution is straight forward; trade with a little less then the 30LTC, create some overhead. Drop it to 29LTC for example and make sure there is a little amount on both sides of your wallet. If you do this you should encounter no more to problems.
To understand the logic behind:
The bot tries to trade the trade-amount you have set. No matter if it is a buy or a sell. The other solution, like you are writing down, will result in a downgoing trend of the trade-amount in time... think about it, if i should correct the trade-amount each buy or sell it would only do downwards.
I am still looking to improve this part, but it is not as easy as it might look like. :|
Bot not only trades incorrect, but it calculates the profit is wrong. He did not take into account when buying commission. Hence two problems.
1) Bot ceases trading. Even if I store a small amount of money on both sides - they end, because every time the bot sells more than bought.
2) Profit is calculated incorrectly.
This is a critical error. When a small profit bot trades minus.