Interest on your Margin positions (all negative balances) is calculated and applied on an hourly basis at the top of every hour (e.g., 13:00, 14:00).
You are only charged interest if you hold an open borrowed balance at the exact time the hourly snapshot occurs.
Margin interest is calculated on a compound basis, meaning interest is applied to both your borrowed principal and any previously accumulated interest.
Interest Rate Calculation
If the daily interest rate is 0.052% per day, the hourly interest rate is 0.00216667%.
Hourly Interest = Daily Interest / 24
Formulas
Total Owed = Principal * (1 + Hourly Interest Rate)^n
(Where n is the number of hourly snapshots passed)Interest Owed = Total Owed - Principal
Example 1:
If a user borrows 1,000 USDT at 12:05 PM and repays at 14:15 PM, they hold the borrowed assets across two hourly snapshots (13:00 and 14:00).
Calculation:
Total Owed = 1,000 * (1 + 0.00216667%)^2 = 1,000.04333 USDT
Interest Owed = 1,000.04333 - 1,000 = 0.04333 USDTResult: The user owes 0.04333 USDT in interest.
Example 2:
If a user borrows 1,000 USDT at 12:05 PM and repays at 12:58 PM, they have closed their position before the 13:00 snapshot occurs. Therefore, they pass through zero hourly snapshots (n = 0).
Calculation:
Total Owed = 1,000 * (1 + 0.00216667%)^0 = 1,000 USDT
Interest Owed = 1,000 - 1,000 = 0 USDTResult: The user owes 0 USDT in interest.
Additional Information
