1
zj
5 hours ago f658569891db433854221b80f0a9fa99608cff64
trading-order-bean/src/main/java/com/yami/trading/bean/contract/domain/ContractOrder.java
@@ -65,6 +65,14 @@
     */
    private BigDecimal fee;
    /**
     * 资金费
     */
    private BigDecimal fundingFee;
    /**
     * 杠杆借贷金额
     */
    private BigDecimal borrowedAmount;
    /**
     * 保证金(剩余)
     */
    private BigDecimal deposit ;
@@ -165,6 +173,13 @@
        return depositOpen;
    }
    public BigDecimal getBorrowedAmount() {
        if (borrowedAmount == null) {
            borrowedAmount = BigDecimal.ZERO;
        }
        return borrowedAmount;
    }
    public BigDecimal getTradeAvgPrice() {
        if(tradeAvgPrice == null){
            tradeAvgPrice = BigDecimal.ZERO;