The funding fee is designed to align the market price of a perpetual swap contract with the index price of the underlying asset.
Positive Funding Fee: Traders holding long positions pay the funding fee to traders holding short positions.
Negative Funding Fee: Traders holding short positions pay the funding fee to traders holding long positions.