How come arbitrage profit is in +, and everything else is in -?

Answer

Arbitrage profit is the profit from the funding fee

Fee will always be negative

Unrealized profit comes from price gap when you start compared to now (start with high gap and close with negative gap will yield positive result)

Total profit is arb profit + unrealized + fee

get free trading bots now