新版仿ok交易所-后端
1
zj
21 hours ago f31fc9f42f78de0808e7f4bdc797c5e622df09e3
trading-order-service/src/main/java/com/yami/trading/service/contract/ContractApplyOrderService.java
@@ -179,7 +179,7 @@
        boolean orderOpen = this.sysparaService.find("order_open").getBoolean();
        if (!orderOpen) {
            throw new YamiShopBindException("不在交易时段");
            throw new YamiShopBindException("Outside trading hours");
        }
        Item item = this.itemService.findBySymbol(order.getSymbol());
@@ -203,10 +203,10 @@
        Item item = this.itemService.findBySymbol(order.getSymbol());
        //虚拟币新币
        if (!itemService.isContractTrading(item)) {
            throw new YamiShopBindException("未开放合约交易");
            throw new YamiShopBindException("Contract trading is not enabled");
        }
        /*if (itemService.isSuspended(item.getSymbol())) {
            throw new YamiShopBindException("停牌禁止交易");
            throw new YamiShopBindException("Trading suspended");
        }*/
        List<ItemLeverageDTO> levers = itemLeverageService.findByItemId(item.getUuid());
@@ -279,7 +279,7 @@
            volume = volume.subtract(applyOrderSubmittedList.get(i).getVolume());
        }
        if (order.getVolume().compareTo(volume) > 0) {
            throw new YamiShopBindException("可平仓合约数量不足");
            throw new YamiShopBindException("Insufficient closable contract quantity");
        }
        save(order);
@@ -346,7 +346,7 @@
                }
            }
            if (!findlevers) {
                throw new YamiShopBindException("杠杠倍数不存在");
                throw new YamiShopBindException("Leverage multiplier does not exist");
            }
        }
    }