Why is there a closed PNL while the arbitrage is still ongoing?
When the price goes up and your futures position comes close to liquidation, the bot will auto sell a part of the spot and auto close a part of the futures and put that money into the margin. That’s why it shows those “Close fees” and “Realized profit after close”.