|
@@ -110,9 +110,8 @@ func InitPositionTask(cont context.Context) (err error) {
|
|
|
func InitGuangzhouPositionTask() (err error) {
|
|
|
//exchanges := []string{"zhengzhou", "dalian", "shanghai", "cffex", "ine", "guangzhou"} //郑商所,大商所,上期所,中金所,上期能源
|
|
|
exchanges := []string{"guangzhou"} //郑商所,大商所,上期所,中金所,上期能源
|
|
|
- for i := 0; i >= 0; i-- {
|
|
|
- //startDate := time.Now().AddDate(0, 0, -i).Format(utils.FormatDate)
|
|
|
- startDate := "2023-09-20"
|
|
|
+ for i := 40; i >= 0; i-- {
|
|
|
+ startDate := time.Now().AddDate(0, 0, -i).Format(utils.FormatDate)
|
|
|
endDate := startDate
|
|
|
for _, v := range exchanges {
|
|
|
exchange := v
|