| | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.yami.trading.api.UD.*; |
| | | import com.yami.trading.bean.data.domain.Depth; |
| | | import com.yami.trading.bean.data.domain.Kline; |
| | | import com.yami.trading.bean.data.domain.Realtime; |
| | | import com.yami.trading.bean.ico.domain.Ico; |
| | | import com.yami.trading.bean.item.domain.Item; |
| | | import com.yami.trading.bean.model.ChannelBlockchain; |
| | |
| | | import com.yami.trading.common.util.*; |
| | | import com.yami.trading.huobi.data.DataCache; |
| | | import com.yami.trading.huobi.data.internal.CryptosKlineService; |
| | | import com.yami.trading.huobi.data.internal.DepthTimeObject; |
| | | import com.yami.trading.huobi.data.internal.KlineInitService; |
| | | import com.yami.trading.huobi.data.internal.KlineTimeObject; |
| | | import com.yami.trading.huobi.hobi.HobiDataService; |
| | |
| | | @Autowired |
| | | KlineDBService klineDBService; |
| | | |
| | | @Autowired |
| | | DepthPushJob depthPushJob; |
| | | |
| | | //@Scheduled(cron = "*/5 * * * * ?") |
| | | public void test() throws Exception { |
| | | /*String symbol ="snekusdt"; |
| | |
| | | RequestDataHelper.set("symbol", symbol); |
| | | klineDBService.saveOrUpdateBatch(list); |
| | | RequestDataHelper.clear();*/ |
| | | /*String symbol = "snekusdt"; |
| | | DepthTimeObject depth = DataCache.getDepth().get(symbol); |
| | | Depth depthData = depth.getDepth(); |
| | | Realtime realtime = DataCache.getRealtime(symbol); |
| | | depthPushJob.depthRevise(depthData, symbol, realtime.getClose().doubleValue(), true);*/ |
| | | } |
| | | /** |
| | | * ico转入产品 |