| | |
| | | import com.xcong.excoin.rabbit.pricequeue.WebsocketPriceService; |
| | | import com.xcong.excoin.rabbit.producer.OrderProducer; |
| | | import com.xcong.excoin.utils.CalculateUtil; |
| | | import com.xcong.excoin.utils.CoinTypeConvert; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import com.xcong.excoin.utils.ThreadPoolUtils; |
| | | import lombok.SneakyThrows; |
| | |
| | | |
| | | @Test |
| | | public void wholeForceNewTest() { |
| | | MemberEntity memberEntity = memberDao.selectById(15L); |
| | | ContractHoldOrderEntity holdOrder = contractHoldOrderDao.selectById(724L); |
| | | BigDecimal newPrice = new BigDecimal(redisUtils.getString(CoinTypeConvert.convertToKey("BTC/USDT"))); |
| | | |
| | | System.out.println(CalculateUtil.calWholePriceTwo(memberEntity, holdOrder)); |
| | | MemberEntity memberEntity = memberDao.selectById(19L); |
| | | ContractHoldOrderEntity holdOrder = contractHoldOrderDao.selectById(932L); |
| | | |
| | | System.out.println(CalculateUtil.calWholePriceTwo(memberEntity, holdOrder, 2)); |
| | | } |
| | | |
| | | @Test |