| | |
| | | DescBigDecimal b = queue.peek(); |
| | | // 当前价格 |
| | | DescBigDecimal now = new DescBigDecimal(price); |
| | | log.info("--->{}", JSONObject.toJSONString(b)); |
| | | log.info("--->{}", JSONObject.toJSONString(now)); |
| | | List<DescBigDecimal> list = new ArrayList<DescBigDecimal>(); |
| | | // 找到比当前价格还大的就是需要操作的 开多止损 |
| | | // 即最大的币当前价大 那么需要开多止损 |
| | |
| | | debug: true |
| | | redis_expire: 3000 |
| | | kline-update-job: false |
| | | newest-price-update-job: false |
| | | newest-price-update-job: true |
| | | other-job: true |
| | | rabbit-consumer: false |
| | | rabbit-consumer: true |
| | | |
| | | aliyun: |
| | | oss: |
| | |
| | | # k线更新任务控制 |
| | | kline-update-job: false |
| | | #最新价任务控制 |
| | | newest-price-update-job: true |
| | | newest-price-update-job: false |
| | | #其他任务控制 |
| | | other-job: false |
| | | rabbit-consumer: true |
| | | rabbit-consumer: false |
| | | |
| | | aliyun: |
| | | oss: |
| | |
| | | @Test |
| | | public void bombTest() { |
| | | |
| | | websocketPriceService.comparePriceDesc("BTC/USDT", "9726.8"); |
| | | websocketPriceService.comparePriceDesc("BTC/USDT", "9608"); |
| | | } |
| | | } |