新版仿ok交易所-后端
C2C
zyy
2025-10-20 ef1765cfa8a1d9ab65b35143eeb762a8c62e652c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.yami.trading.service;
 
/**
 * @program: trading-order-master
 * @description: 强平价格计算
 * @create: 2025-01-15 15:56
 **/
public interface StrongLevelCalculationService {
    public double calculateLiquidationPrice ( double marginBalance, double faceValue, double contractQuantity,
                                              double openingPrice, double maintenanceMarginRate, double feeRate);
 
 
    public double calculateEmptyLiquidationPrice ( double marginBalance, double faceValue, double contractQuantity,
                                                   double openingPrice, double maintenanceMarginRate, double feeRate);
 
    public double countSheets(double earnestMoney,int level,double faceValue,double recentQuotation);
}