mns-scheduler 1.3.3.1__py3-none-any.whl → 1.3.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mns-scheduler might be problematic. Click here for more details.
- mns_scheduler/zz_task/data_sync_task.py +6 -3
- {mns_scheduler-1.3.3.1.dist-info → mns_scheduler-1.3.3.3.dist-info}/METADATA +1 -1
- {mns_scheduler-1.3.3.1.dist-info → mns_scheduler-1.3.3.3.dist-info}/RECORD +5 -5
- {mns_scheduler-1.3.3.1.dist-info → mns_scheduler-1.3.3.3.dist-info}/WHEEL +0 -0
- {mns_scheduler-1.3.3.1.dist-info → mns_scheduler-1.3.3.3.dist-info}/top_level.txt +0 -0
|
@@ -184,7 +184,11 @@ def generate_new_day_k_line_info():
|
|
|
184
184
|
now_date = datetime.now()
|
|
185
185
|
str_day = now_date.strftime('%Y-%m-%d')
|
|
186
186
|
# 生成下一个交易日日期k线数据 number=2 获取下一个交易日 日期
|
|
187
|
-
|
|
187
|
+
if trade_date_common_service_api.is_trade_day(str_day):
|
|
188
|
+
dis_number = 2
|
|
189
|
+
else:
|
|
190
|
+
dis_number = 1
|
|
191
|
+
next_trade_day = trade_date_common_service_api.get_further_trade_date(str_day, dis_number)
|
|
188
192
|
k_line_info_clean_service.sync_k_line_info_task(next_trade_day)
|
|
189
193
|
logger.info('计算当日k线信息完成:{}', str_day)
|
|
190
194
|
|
|
@@ -565,5 +569,4 @@ print('定时任务启动成功')
|
|
|
565
569
|
blockingScheduler.start()
|
|
566
570
|
#
|
|
567
571
|
# if __name__ == '__main__':
|
|
568
|
-
#
|
|
569
|
-
# sync_daily_data_info()
|
|
572
|
+
# generate_new_day_k_line_info()
|
|
@@ -155,8 +155,8 @@ mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py,sha256=LOEUyTA5g7N6FWxUpHWimWTeX
|
|
|
155
155
|
mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=9Sv1G88poLG3_8aLPkfr8bdwD_AzbSrwvHTGPErOtQU,7501
|
|
156
156
|
mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py,sha256=caW-MuF0RFLavJZafeLDYQ29-GxwGsmr5YVrN4lost8,2135
|
|
157
157
|
mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
158
|
-
mns_scheduler/zz_task/data_sync_task.py,sha256=
|
|
159
|
-
mns_scheduler-1.3.3.
|
|
160
|
-
mns_scheduler-1.3.3.
|
|
161
|
-
mns_scheduler-1.3.3.
|
|
162
|
-
mns_scheduler-1.3.3.
|
|
158
|
+
mns_scheduler/zz_task/data_sync_task.py,sha256=vLJqW_1Mm0cupj9S2nmf-E6R4ne3xv21pRzhuNlr268,23284
|
|
159
|
+
mns_scheduler-1.3.3.3.dist-info/METADATA,sha256=a7GafcewA7AOGr4PVsDqhN3lRiGKzR4W7BX9p9atoFs,64
|
|
160
|
+
mns_scheduler-1.3.3.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
161
|
+
mns_scheduler-1.3.3.3.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
|
|
162
|
+
mns_scheduler-1.3.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|