mns-scheduler 1.0.3.7__py3-none-any.whl → 1.0.3.9__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/concept/ths/common/ths_concept_sync_common_api.py +3 -0
- mns_scheduler/concept/ths/common/ths_concept_update_common_api.py +3 -0
- mns_scheduler/kpl/selection/index/sync_best_choose_his_index.py +1 -1
- mns_scheduler/real_time/realtime_quotes_now_sync.py +2 -1
- mns_scheduler/zz_task/data_sync_task.py +7 -6
- {mns_scheduler-1.0.3.7.dist-info → mns_scheduler-1.0.3.9.dist-info}/METADATA +1 -1
- {mns_scheduler-1.0.3.7.dist-info → mns_scheduler-1.0.3.9.dist-info}/RECORD +9 -9
- {mns_scheduler-1.0.3.7.dist-info → mns_scheduler-1.0.3.9.dist-info}/WHEEL +0 -0
- {mns_scheduler-1.0.3.7.dist-info → mns_scheduler-1.0.3.9.dist-info}/top_level.txt +0 -0
|
@@ -127,6 +127,9 @@ def save_ths_concept_detail(new_concept_symbol_df,
|
|
|
127
127
|
exist_concept_detail = mongodb_util.find_query_data('ths_stock_concept_detail', query)
|
|
128
128
|
if exist_concept_detail is None or exist_concept_detail.shape[0] == 0:
|
|
129
129
|
mongodb_util.save_mongo(new_concept_symbol_df, 'ths_stock_concept_detail')
|
|
130
|
+
# 保存到当日新增概念列表
|
|
131
|
+
new_concept_symbol_df['concept_type'] = 'ths'
|
|
132
|
+
mongodb_util.save_mongo(new_concept_symbol_df, 'today_new_concept_list')
|
|
130
133
|
else:
|
|
131
134
|
exist_concept_detail_symbol_list = list(exist_concept_detail['symbol'])
|
|
132
135
|
new_concept_symbol_df = new_concept_symbol_df.loc[~(
|
|
@@ -51,6 +51,9 @@ def update_ths_concept_choose_null_reason():
|
|
|
51
51
|
nan_reason_df = mongodb_util.find_query_data(db_name_constant.TODAY_NEW_CONCEPT_LIST, query)
|
|
52
52
|
update_null_reason(nan_reason_df)
|
|
53
53
|
|
|
54
|
+
nan_reason_df_detail = mongodb_util.find_query_data(db_name_constant.THS_STOCK_CONCEPT_DETAIL, query)
|
|
55
|
+
update_null_reason(nan_reason_df_detail)
|
|
56
|
+
|
|
54
57
|
|
|
55
58
|
# 更新空入选理由
|
|
56
59
|
def update_null_reason(nan_reason_df):
|
|
@@ -91,7 +91,7 @@ def sync_best_choose_his_index(str_day):
|
|
|
91
91
|
|
|
92
92
|
def save_kpl_his_index(kpl_plate_best_index_df, str_day, end_time):
|
|
93
93
|
kpl_plate_best_index_df['_id'] = str_day + '-' + end_time + '-' + kpl_plate_best_index_df['plate_code']
|
|
94
|
-
mongodb_util.
|
|
94
|
+
mongodb_util.save_mongo(kpl_plate_best_index_df, db_name_constant.KPL_BEST_CHOOSE_HIS)
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
def save_kpl_his_daily(kpl_plate_best_index_df, str_day, end_time):
|
|
@@ -60,6 +60,7 @@ order = ["_id",
|
|
|
60
60
|
"list_date",
|
|
61
61
|
"wei_bi",
|
|
62
62
|
"buy_1_num",
|
|
63
|
+
"sell_1_num",
|
|
63
64
|
"outer_disk",
|
|
64
65
|
"inner_disk",
|
|
65
66
|
"average_price",
|
|
@@ -174,7 +175,7 @@ def sync_realtime_quotes():
|
|
|
174
175
|
now_date = datetime.datetime.now()
|
|
175
176
|
|
|
176
177
|
str_now_date = now_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
177
|
-
if
|
|
178
|
+
if bool(date_util.is_trade_time(now_date)):
|
|
178
179
|
try:
|
|
179
180
|
real_time_quotes_now = east_money_stock_api.get_real_time_quotes_all_stocks()
|
|
180
181
|
real_time_quotes_now = handle_init_real_time_quotes_data(real_time_quotes_now.copy(),
|
|
@@ -303,8 +303,9 @@ def sync_position():
|
|
|
303
303
|
def sync_kpl_best_his_quotes():
|
|
304
304
|
now_date = datetime.now()
|
|
305
305
|
str_day = now_date.strftime('%Y-%m-%d')
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
last_trade_day = trade_date_common_service_api.get_last_trade_day(str_day)
|
|
307
|
+
if trade_date_common_service_api.is_trade_day(last_trade_day):
|
|
308
|
+
sync_best_choose_his_index.sync_best_choose_his_index(last_trade_day)
|
|
308
309
|
logger.info('同步开盘啦当日精选指数行情数据任务完成')
|
|
309
310
|
|
|
310
311
|
|
|
@@ -331,8 +332,8 @@ blockingScheduler.add_job(col_data_move, 'cron', hour='15', minute='33')
|
|
|
331
332
|
# 数据库健康检查
|
|
332
333
|
blockingScheduler.add_job(db_status_check, 'interval', seconds=30, max_instances=4)
|
|
333
334
|
|
|
334
|
-
# 同步大单数据
|
|
335
|
-
blockingScheduler.add_job(sync_ths_big_deal, 'cron', hour='09', minute='30', max_instances=4)
|
|
335
|
+
# 同步大单数据 暂停同步 20240430
|
|
336
|
+
# blockingScheduler.add_job(sync_ths_big_deal, 'cron', hour='09', minute='30', max_instances=4)
|
|
336
337
|
|
|
337
338
|
# todo 需要前后顺序执行
|
|
338
339
|
# todo 当日k线信息
|
|
@@ -382,6 +383,6 @@ blockingScheduler.add_job(sync_position, 'cron', hour='0,08', minute='10')
|
|
|
382
383
|
|
|
383
384
|
print('定时任务启动成功')
|
|
384
385
|
blockingScheduler.start()
|
|
385
|
-
|
|
386
|
+
#
|
|
386
387
|
# if __name__ == '__main__':
|
|
387
|
-
#
|
|
388
|
+
# sync_kpl_best_his_quotes()
|
|
@@ -18,8 +18,8 @@ mns_scheduler/concept/clean/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzl
|
|
|
18
18
|
mns_scheduler/concept/clean/ths_concept_clean_api.py,sha256=SR5NRzh4N2r0ouXX3SRAONJyH44eorJdpaayekbNWCE,2459
|
|
19
19
|
mns_scheduler/concept/ths/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
20
20
|
mns_scheduler/concept/ths/common/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
21
|
-
mns_scheduler/concept/ths/common/ths_concept_sync_common_api.py,sha256=
|
|
22
|
-
mns_scheduler/concept/ths/common/ths_concept_update_common_api.py,sha256=
|
|
21
|
+
mns_scheduler/concept/ths/common/ths_concept_sync_common_api.py,sha256=8KOz1AlUFmo0hdlkOuc5rDLKIeYkRK3-ooA5Z_wJX10,6724
|
|
22
|
+
mns_scheduler/concept/ths/common/ths_concept_update_common_api.py,sha256=9yROs3rDL54hVaDjXE34jddf8fsmp5njh_p5it9x9pE,4460
|
|
23
23
|
mns_scheduler/concept/ths/sync_new_index/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
24
24
|
mns_scheduler/concept/ths/sync_new_index/sync_ths_concept_by_ak_api.py,sha256=asZLrVxv2acbheJaI1VMguk4Vu6dqdcHPiJgWbq3b74,5001
|
|
25
25
|
mns_scheduler/concept/ths/sync_new_index/sync_ths_new_concept_by_web_api.py,sha256=Yv3Gp6qwAnpg3qM_MguWNSH7NDpxQkvH_SLWcsJfYo8,3605
|
|
@@ -40,7 +40,7 @@ mns_scheduler/k_line/sync/daily_week_month_line_sync.py,sha256=SNKkwGoyE1qzds1o-
|
|
|
40
40
|
mns_scheduler/kpl/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
41
41
|
mns_scheduler/kpl/selection/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
42
42
|
mns_scheduler/kpl/selection/index/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
43
|
-
mns_scheduler/kpl/selection/index/sync_best_choose_his_index.py,sha256=
|
|
43
|
+
mns_scheduler/kpl/selection/index/sync_best_choose_his_index.py,sha256=UJRhFfMcR4fkMfzEQhNT1R5PdGbbxRBwhphhpi9UFW0,4501
|
|
44
44
|
mns_scheduler/kpl/selection/index/sync_best_choose_index.py,sha256=-34drqAMsx792DxR8P1A8DrGCM5yIVGsop3UzDNzsPw,8016
|
|
45
45
|
mns_scheduler/kpl/selection/symbol/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
46
46
|
mns_scheduler/kpl/selection/symbol/sync_best_choose_symbol.py,sha256=kUKs0SWCqekhvV0o5A1pDv0Nw4x6VTS-ij0AryzKe8w,4679
|
|
@@ -48,7 +48,7 @@ mns_scheduler/kpl/selection/total/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3Zi
|
|
|
48
48
|
mns_scheduler/kpl/selection/total/sync_kpl_best_total_sync_api.py,sha256=WRK-Pu0-7ub9q1n5TK406_sAGQwOEUl2CZLu9suo70k,10461
|
|
49
49
|
mns_scheduler/real_time/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
50
50
|
mns_scheduler/real_time/realtime_quotes_now_create_db_index.py,sha256=qQCjcsG3WYgn3zemS45Ms0AHtbkCwlSVPPCntxVvK8Q,1066
|
|
51
|
-
mns_scheduler/real_time/realtime_quotes_now_sync.py,sha256=
|
|
51
|
+
mns_scheduler/real_time/realtime_quotes_now_sync.py,sha256=6lDNnds3f_g4fQmY1tS4mg8pTB9Lbbhwf1_1WpA9tJA,9166
|
|
52
52
|
mns_scheduler/trade/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
53
53
|
mns_scheduler/trade/auto_ipo_buy_api.py,sha256=QXNzFJGNGveVUcXBh0RRJb_HV7abbLYXRljezPJf9ZM,377
|
|
54
54
|
mns_scheduler/trade/auto_sell_service_api.py,sha256=HaauZeOsuLNBrowXT8IKaSgWLR2Huott6mg_AoLhpUY,4423
|
|
@@ -62,9 +62,9 @@ mns_scheduler/zt/today_high_chg_pool_sync_api.py,sha256=G6FXMH7HnvhyMFoE-RszggkB
|
|
|
62
62
|
mns_scheduler/zt/zt_five_boards_sync_api.py,sha256=HfjPHKD99fU9c37kSenEX2_qNvFAjQGgy8ERuacSxwk,10916
|
|
63
63
|
mns_scheduler/zt/zt_pool_sync_api.py,sha256=tzSCnqAelV7MQBZ3KcpOQQHNYnjFnmvoDFcapBpU_NA,7534
|
|
64
64
|
mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
65
|
-
mns_scheduler/zz_task/data_sync_task.py,sha256=
|
|
65
|
+
mns_scheduler/zz_task/data_sync_task.py,sha256=wpzBETzZEIk1S9eYJiZt7Gzh4bWzJDwEsJtfB690mKM,15508
|
|
66
66
|
mns_scheduler/zz_task/sync_realtime_quotes_task.py,sha256=DN3bq2XCDZC-PHlbD2NTog48bR44EruIEc2QVGKg7Tk,932
|
|
67
|
-
mns_scheduler-1.0.3.
|
|
68
|
-
mns_scheduler-1.0.3.
|
|
69
|
-
mns_scheduler-1.0.3.
|
|
70
|
-
mns_scheduler-1.0.3.
|
|
67
|
+
mns_scheduler-1.0.3.9.dist-info/METADATA,sha256=JXj1WYQwrRD2WnUIqF9ORpMegLXfa1TuT2BsmzX8E5I,64
|
|
68
|
+
mns_scheduler-1.0.3.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
69
|
+
mns_scheduler-1.0.3.9.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
|
|
70
|
+
mns_scheduler-1.0.3.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|