## Can you explain to me how the “unrealized profit” is calculated for this arbitrage bot? I noticed that the unrealized profit grows in the negative amount while my profit from arbitrage is positive, leading to (what I think) the “total profit” remaining close to zero.Thanks.

Answer “Unrealized Profit” in arbitrage bot comes from the difference between the opening price gap, and the current price gap. Let say you open the arbitrage bot with +0.5% gap. This means if the btc price at spot is 10000,…