Funding fee is the cost borne by the users to keep positions open for the funding interval. The fee will be prepaid for opening a position, and accumulated through funding intervals. Please refer to the Pricing Method for additional details.
Trading fees are applied to open a new position. Currently, the fee is fixed at 0.1% of the notional value of the contract.
When you open a trade, you'll be paying ongoing funding fees in order to maintain the open position. As your funding balance decreases, near to the point where your position may be open for one more period - it's important to remember the locked Maintenance Margin (MM) which is included in your Funding Balance.
A user can be liquidated based on the following formula: Funding Balance = Available Balance + Maintenance Margin. Liquidation occurs when Available Balance < Funding Fee. The MM is sent over to the Insurance Fund and your position is closed.
In order to avoid forced liquidation, you will need to keep in mind that the MM is included in your funding balance. When your balance minus the MM is less than your funding fee, your position will be liquidated.