mns-scheduler 1.0.3.2__py3-none-any.whl → 1.0.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/kpl/selection/index/sync_best_choose_his_index.py +8 -3
- mns_scheduler/zz_task/data_sync_task.py +4 -2
- {mns_scheduler-1.0.3.2.dist-info → mns_scheduler-1.0.3.3.dist-info}/METADATA +1 -1
- {mns_scheduler-1.0.3.2.dist-info → mns_scheduler-1.0.3.3.dist-info}/RECORD +6 -6
- {mns_scheduler-1.0.3.2.dist-info → mns_scheduler-1.0.3.3.dist-info}/WHEEL +0 -0
- {mns_scheduler-1.0.3.2.dist-info → mns_scheduler-1.0.3.3.dist-info}/top_level.txt +0 -0
|
@@ -51,7 +51,7 @@ def sync_best_choose_his_index(str_day):
|
|
|
51
51
|
for end_time in KPL_MINUTE_LIST:
|
|
52
52
|
while page_number <= page_max_number:
|
|
53
53
|
index = page_number * kpl_common_api.HIS_PAGE_MAX_COUNT
|
|
54
|
-
kpl_plate_best_index_df = kpl_common_api.get_plate_index_his(index, kpl_common_api.BEST_CHOOSE,
|
|
54
|
+
kpl_plate_best_index_df = kpl_common_api.get_plate_index_his(index, int(kpl_common_api.BEST_CHOOSE),
|
|
55
55
|
str_day, KPL_MINUTE_BEGIN,
|
|
56
56
|
end_time)
|
|
57
57
|
|
|
@@ -59,6 +59,11 @@ def sync_best_choose_his_index(str_day):
|
|
|
59
59
|
continue
|
|
60
60
|
kpl_plate_best_index_df['number'] = number
|
|
61
61
|
kpl_plate_best_index_df['str_day'] = str_day
|
|
62
|
+
hour = end_time[0:2]
|
|
63
|
+
minute = end_time[2:4]
|
|
64
|
+
kpl_plate_best_index_df['str_day'] = str_day
|
|
65
|
+
|
|
66
|
+
kpl_plate_best_index_df['str_now_date'] = str_day + " " + hour + ":" + minute + ":00"
|
|
62
67
|
kpl_plate_best_index_df = kpl_plate_best_index_df[[
|
|
63
68
|
"plate_code",
|
|
64
69
|
"plate_name",
|
|
@@ -78,7 +83,7 @@ def sync_best_choose_his_index(str_day):
|
|
|
78
83
|
"ava_pe_next",
|
|
79
84
|
"number",
|
|
80
85
|
"str_day",
|
|
81
|
-
|
|
86
|
+
"str_now_date"
|
|
82
87
|
]]
|
|
83
88
|
save_kpl_his_index(kpl_plate_best_index_df, str_day, end_time)
|
|
84
89
|
if end_time == KPL_MINUTE_END:
|
|
@@ -100,7 +105,7 @@ def save_kpl_his_daily(kpl_plate_best_index_df, str_day, end_time):
|
|
|
100
105
|
|
|
101
106
|
|
|
102
107
|
def sync_all_days():
|
|
103
|
-
query = {"_id": {"$gte": '2022-07-
|
|
108
|
+
query = {"_id": {"$gte": '2022-07-19'}, 'trade_date': {"$lte": "2024-04-23"}}
|
|
104
109
|
trade_date_list = mongodb_util.find_query_data('trade_date_list', query)
|
|
105
110
|
trade_date_list = trade_date_list.sort_values(by=['trade_date'], ascending=False)
|
|
106
111
|
for trade_one in trade_date_list.itertuples():
|
|
@@ -279,7 +279,9 @@ def sync_kpl_best_his_quotes():
|
|
|
279
279
|
now_date = datetime.now()
|
|
280
280
|
str_day = now_date.strftime('%Y-%m-%d')
|
|
281
281
|
if trade_date_common_service_api.is_trade_day(str_day):
|
|
282
|
-
|
|
282
|
+
last_trade_day = trade_date_common_service_api.get_last_trade_day(str_day)
|
|
283
|
+
# 当天不能获取历史数据
|
|
284
|
+
sync_best_choose_his_index.sync_best_choose_his_index(last_trade_day)
|
|
283
285
|
logger.info('同步开盘啦当日精选指数行情数据任务完成')
|
|
284
286
|
|
|
285
287
|
|
|
@@ -348,7 +350,7 @@ blockingScheduler.add_job(auto_ipo_buy, 'cron', hour='10', minute='40,50')
|
|
|
348
350
|
blockingScheduler.add_job(update_best_choose_plate_relation, 'cron', hour='09,18', minute='25')
|
|
349
351
|
|
|
350
352
|
# 更新开盘啦指数关系
|
|
351
|
-
blockingScheduler.add_job(sync_kpl_best_his_quotes, 'cron', hour='
|
|
353
|
+
blockingScheduler.add_job(sync_kpl_best_his_quotes, 'cron', hour='16,22', minute='48')
|
|
352
354
|
|
|
353
355
|
print('定时任务启动成功')
|
|
354
356
|
blockingScheduler.start()
|
|
@@ -41,7 +41,7 @@ mns_scheduler/k_line/sync/daily_week_month_line_sync.py,sha256=SNKkwGoyE1qzds1o-
|
|
|
41
41
|
mns_scheduler/kpl/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
42
42
|
mns_scheduler/kpl/selection/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
43
43
|
mns_scheduler/kpl/selection/index/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
44
|
-
mns_scheduler/kpl/selection/index/sync_best_choose_his_index.py,sha256=
|
|
44
|
+
mns_scheduler/kpl/selection/index/sync_best_choose_his_index.py,sha256=ySu2wdVeyb_gqK0WZOJhJD2ot_iciv8tPk8gv8wUG4o,4765
|
|
45
45
|
mns_scheduler/kpl/selection/index/sync_best_choose_index.py,sha256=-34drqAMsx792DxR8P1A8DrGCM5yIVGsop3UzDNzsPw,8016
|
|
46
46
|
mns_scheduler/kpl/selection/symbol/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
47
47
|
mns_scheduler/kpl/selection/symbol/sync_best_choose_symbol.py,sha256=kUKs0SWCqekhvV0o5A1pDv0Nw4x6VTS-ij0AryzKe8w,4679
|
|
@@ -59,9 +59,9 @@ mns_scheduler/zt/today_high_chg_pool_sync_api.py,sha256=G6FXMH7HnvhyMFoE-RszggkB
|
|
|
59
59
|
mns_scheduler/zt/zt_five_boards_sync_api.py,sha256=HfjPHKD99fU9c37kSenEX2_qNvFAjQGgy8ERuacSxwk,10916
|
|
60
60
|
mns_scheduler/zt/zt_pool_sync_api.py,sha256=tzSCnqAelV7MQBZ3KcpOQQHNYnjFnmvoDFcapBpU_NA,7534
|
|
61
61
|
mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
62
|
-
mns_scheduler/zz_task/data_sync_task.py,sha256=
|
|
62
|
+
mns_scheduler/zz_task/data_sync_task.py,sha256=cSCjl8JqEfjmvpLJHshe5r-TURY3AF4bzjTMfJvbBUU,14500
|
|
63
63
|
mns_scheduler/zz_task/sync_realtime_quotes_task.py,sha256=DN3bq2XCDZC-PHlbD2NTog48bR44EruIEc2QVGKg7Tk,932
|
|
64
|
-
mns_scheduler-1.0.3.
|
|
65
|
-
mns_scheduler-1.0.3.
|
|
66
|
-
mns_scheduler-1.0.3.
|
|
67
|
-
mns_scheduler-1.0.3.
|
|
64
|
+
mns_scheduler-1.0.3.3.dist-info/METADATA,sha256=niUDOzjRf7RExX-wIS_QkyHKbsnOXp3VR7bLw7XTgBA,64
|
|
65
|
+
mns_scheduler-1.0.3.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
66
|
+
mns_scheduler-1.0.3.3.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
|
|
67
|
+
mns_scheduler-1.0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|