Browse Source

修改交易所同步的时间和持仓分析的计算时间

ziwen 1 year ago
parent
commit
80a1a01287
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/task.go

+ 2 - 2
services/task.go

@@ -25,11 +25,11 @@ func Task() {
 func releaseTask() {
 	//同步指标
 	if utils.BusinessCode != "E2023080900" {
-		syncHzDataIndex := task.NewTask("syncHzDataIndex", "0 30 0,18,21 * * *", SyncHzDataIndex)
+		syncHzDataIndex := task.NewTask("syncHzDataIndex", "0 10,20,40,50 16,18 * * *", SyncHzDataIndex)
 		task.AddTask("syncHzDataIndex", syncHzDataIndex)
 	}
 	// 定时统计交易所的持仓分析数据
-	initPositionTask := task.NewTask("initPositionTask", "0 0 18,22 * * *", data.InitPositionTask)
+	initPositionTask := task.NewTask("initPositionTask", "0 20,40 16-18 * * *", data.InitPositionTask)
 	task.AddTask("initPositionTask", initPositionTask)
 
 	//刷新指标数据