可用来开仓的金额: totalMarginBalance - totalOpenOrderInitialMargin - totalPositionInitialMargin
totalMarginBalance
totalOpenOrderInitialMargin
totalPositionInitialMargin
挂单占用的保证金 totalOpenOrderInitialMargin
initialMargin 指的是当前持仓和挂单根据当前markPrice 计算出来的实时所需初始保证金
initialMargin
逐仓保证金: isolatedMargin = isolatedWallet + unRealizedProfit
isolatedMargin
isolatedWallet
unRealizedProfit