新版仿ok交易所-后端
zj
2025-02-08 75018b2f492444248d8b476d9703bb312d2befc3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}