| | |
| | | protected KlineService klineService; |
| | | @Autowired |
| | | protected HighLowHandleJob highLowHandleJob; |
| | | @Autowired |
| | | protected StockGetDataJob stockGetDataJob; |
| | | @Autowired |
| | | protected ForexGetDataJob forexGetDataJob; |
| | | // @Autowired 外汇 |
| | | // protected StockGetDataJob stockGetDataJob; |
| | | // @Autowired |
| | | // protected ForexGetDataJob forexGetDataJob; |
| | | @Autowired |
| | | protected CryptosGetDataJob cryptosGetDataJob; |
| | | @Autowired |
| | |
| | | private RealtimePushJob realtimePushJob; |
| | | @Autowired |
| | | private CleanDataJob cleanDataJob; |
| | | @Autowired |
| | | private StockGetMarketJob stockGetMarketJob; |
| | | // @Autowired etf |
| | | // private StockGetMarketJob stockGetMarketJob; |
| | | /** |
| | | * 交割合约持仓单盈亏计算线程启动 |
| | | */ |
| | |
| | | } |
| | | |
| | | klineLoadCache.loadCache(); |
| | | String symbols = items.stream().map(Item::getSymbol).collect(Collectors.joining(",")); |
| | | // String symbols = items.stream().map(Item::getSymbol).collect(Collectors.joining(",")); |
| | | // 数据有问题初始化一下 |
| | | klineInitService.klineInit(symbols); |
| | | // klineInitService.klineInit(symbols); 外汇 |
| | | // 高低修正 |
| | | highLowHandleJob.start(); |
| | | stockGetMarketJob.start(); |
| | | // 获取realtime实时数据 |
| | | stockGetDataJob.start(); |
| | | forexGetDataJob.start(); |
| | | // stockGetMarketJob.start(); |
| | | // // 获取realtime实时数据 |
| | | // stockGetDataJob.start(); |
| | | // forexGetDataJob.start(); |
| | | cryptosGetDataJob.start(); |
| | | fakeSymbolGetDataJob.start(); |
| | | // 实时数据批量保存线程 |