Margin Formula
- Margin Trading Guide
● Net asset = max(asset - loan principal - interest, 0)
● Net debt = - min(asset - loan principal - interest, 0)
● Collateral value = (net asset * collateral weight - net debt) * currency price in USDT
● Initial margin requirement = (loan principal + interest) * initial margin ratio * currency price in USDT
● In-order collateral = in-order asset * currency price in USDT
● Account collateral value = sum of all currencies' collateral value
● Available collateral value = max(collateral value - sum(initial margin requirement) - sum(in-order collateral), 0)
● Maximum borrowable at manual mode = available collateral value / initial margin ratio / currency price in USDT
● Theoretical maximum borrowable at auto-borrow mode = maximum available when post-trade available collateral is no less than zero - (asset - in-order asset)