Arbitrage in this context is not price difference between exchanges. It is the price difference between Spot Market and the Futures Market. Thats why the bot is named Spot-Futures Arbitration.
The gap becomes negative when the futures market price is lower than the index price. You can check the explanation of spot-futures arbitrage bot here : https://www.pionex.com/blog/pionex-arbitrage-bot/