| | |
| | | // 比较 |
| | | websocketPriceService.comparePriceAsc(symbol, price); |
| | | websocketPriceService.comparePriceDesc(symbol, price); |
| | | if ("etcusdt".equalsIgnoreCase(symbol)) { |
| | | log.info("symbol -- > {}", symbol); |
| | | if ("ETC/USDT".equalsIgnoreCase(symbol)) { |
| | | websocketPriceService.wholeBomb(symbol, price); |
| | | } |
| | | //System.out.println("比较完毕:"+symbol+"-"+price); |
| | |
| | | MemberWalletContractEntity wallet = memberWalletContractDao.findWalletContractByMemberIdAndSymbol(memberId, CoinTypeEnum.USDT.name()); |
| | | |
| | | BigDecimal sub = wallet.getTotalBalance().add(totalProfitOrLess); |
| | | log.info("sub : {}, memberId : {}", sub, memberId); |
| | | // log.info("sub : {}, memberId : {}", sub, memberId); |
| | | if (sub.compareTo(BigDecimal.ZERO) <= 0) { |
| | | List<OrderModel> list = new ArrayList<>(); |
| | | OrderModel orderModel = new OrderModel(null, 0, price, symbol, memberId); |