mns-scheduler 1.2.3.5__py3-none-any.whl → 1.2.3.6__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.

@@ -110,4 +110,4 @@ def new_company_info_update():
110
110
 
111
111
 
112
112
  if __name__ == '__main__':
113
- fix_company_industry('600230')
113
+ fix_company_industry(None)
@@ -46,16 +46,27 @@ def get_fix_symbol_industry():
46
46
  ['830799', '艾融软件', '490101', '证券'],
47
47
  ['300033', '同花顺', '490101', '证券'],
48
48
  ['300399', '天利科技', '490201', '保险'],
49
-
50
49
  # EDA软件
51
50
  ['301269', '华大九天', '270108', '半导体设备'],
52
51
  ['688206', '概伦电子', '270108', '半导体设备'],
53
52
  ['301095', '广立微', '270108', '半导体设备'],
54
-
55
53
  ['002131', '利欧股份', '720501', '营销代理'],
56
54
 
57
55
  ],
58
- columns=['symbol', 'name', 'new_industry_code', 'new_industry'])
56
+ columns=['symbol',
57
+ 'name',
58
+ 'new_industry_code', # 三级行业代码
59
+ 'new_industry'])
60
+
61
+
62
+ # 修改行业分类的股票
63
+ def get_fix_industry_info():
64
+ return pd.DataFrame([['450700', '旅游零售Ⅱ', '461000', '旅游及景区'],
65
+ []],
66
+ columns=['original_second_industry_code',
67
+ 'original_second_industry_name',
68
+ 'new_third_second_code', # 二级级行业代码
69
+ 'new_third_second_name'])
59
70
 
60
71
 
61
72
  # def remove_industry_name_special(industry_df):
@@ -63,7 +74,7 @@ def get_fix_symbol_industry():
63
74
  # return industry_df
64
75
 
65
76
 
66
- # 修改行业名称
77
+ # 修改行业名称 暂时作废
67
78
  def get_industry_final_fix_df():
68
79
  return pd.DataFrame([
69
80
 
@@ -269,7 +280,7 @@ def get_industry_final_fix_df():
269
280
  ], columns=['second_sw_industry', 'industry'])
270
281
 
271
282
 
272
- # 第三行业作为筛选行业
283
+ # 第三行业作为行业
273
284
  def fix_industry_use_sw_third(company_info_df):
274
285
  # 细分工业金属行业
275
286
  company_info = company_info_df.copy()
@@ -297,8 +308,8 @@ def fix_industry_use_sw_third(company_info_df):
297
308
  return company_info
298
309
 
299
310
 
300
- def find_sw_third_industry(industry_id):
301
- sw_third_industry = mongodb_util.find_query_data('sw_industry', query={"_id": industry_id})
311
+ def find_sw_third_industry(new_third_industry_code):
312
+ sw_third_industry = mongodb_util.find_query_data('sw_industry', query={"_id": new_third_industry_code})
302
313
  first_sw_industry_name = list(sw_third_industry['first_sw_industry'])[0]
303
314
  second_sw_industry_name = list(sw_third_industry['second_sw_industry'])[0]
304
315
 
@@ -317,8 +328,9 @@ def find_sw_third_industry(industry_id):
317
328
  return sw_third_industry
318
329
 
319
330
 
320
- def fix_industry_data(industry_id, company_info):
321
- sw_industry = find_sw_third_industry(industry_id)
331
+ # 修改行业信息
332
+ def fix_industry_data(new_third_industry_code, company_info):
333
+ sw_industry = find_sw_third_industry(new_third_industry_code)
322
334
  company_info['first_sw_industry'] = sw_industry.first_sw_industry
323
335
  company_info['first_industry_code'] = sw_industry.industry_code
324
336
  company_info['second_sw_industry'] = sw_industry.second_sw_industry
@@ -328,12 +340,13 @@ def fix_industry_data(industry_id, company_info):
328
340
  return company_info
329
341
 
330
342
 
343
+ # 手动修改股票行业代码
331
344
  def fix_symbol_industry(company_info, symbol):
332
345
  fix_symbol_df = get_fix_symbol_industry()
333
346
  fix_symbol_df_one = fix_symbol_df.loc[fix_symbol_df['symbol'] == symbol]
334
347
  if data_frame_util.is_not_empty(fix_symbol_df_one):
335
- new_industry_code = list(fix_symbol_df_one['new_industry_code'])[0]
336
- company_info = fix_industry_data(new_industry_code, company_info)
348
+ new_third_industry_code = list(fix_symbol_df_one['new_industry_code'])[0]
349
+ company_info = fix_industry_data(new_third_industry_code, company_info)
337
350
 
338
351
  return company_info
339
352
 
@@ -206,7 +206,7 @@ def sync_miss_zt_data(stock_em_zt_pool_df_data, str_day):
206
206
 
207
207
 
208
208
  if __name__ == '__main__':
209
- save_zt_info('2024-11-22')
209
+ save_zt_info('2024-12-12')
210
210
  # from datetime import datetime
211
211
  #
212
212
  # if __name__ == '__main__':
@@ -44,4 +44,4 @@ def update_null_zt_reason(str_day):
44
44
 
45
45
 
46
46
  if __name__ == '__main__':
47
- update_null_zt_reason('2024-02-27')
47
+ update_null_zt_reason('2024-12-12')
@@ -488,7 +488,7 @@ blockingScheduler.add_job(sync_high_risk_stocks, 'cron', hour='0,09,12,16', minu
488
488
  blockingScheduler.add_job(sync_all_interactive_questions, 'cron', hour='08,12,17', minute='05')
489
489
 
490
490
  # 实时数据状态同步check
491
- blockingScheduler.add_job(real_time_task_check_status, 'interval', seconds=20, max_instances=4)
491
+ blockingScheduler.add_job(real_time_task_check_status, 'interval', seconds=10, max_instances=4)
492
492
 
493
493
  # 打开交易客户端
494
494
  blockingScheduler.add_job(trader_client_auto_login, 'cron', hour='08,12', minute='30')
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.2.3.5
3
+ Version: 1.2.3.6
4
4
 
@@ -10,9 +10,9 @@ mns_scheduler/company_info/base/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4I
10
10
  mns_scheduler/company_info/base/sync_company_base_info_api.py,sha256=aaOqOs9X-0K7Wkqo0uOeuT4BERKx6HkmaSZmGuD3DBc,20553
11
11
  mns_scheduler/company_info/base/sync_company_hold_info_api.py,sha256=W3Nj9st45efx8cy_42PRTcOXijWKnkO1-ZFRyyfR3S0,1587
12
12
  mns_scheduler/company_info/clean/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
13
- mns_scheduler/company_info/clean/company_info_clean_api.py,sha256=EJw2M6nE-GLaZSZAJMfK_Qwpe_jKGUD9dkl86GahJtE,4880
13
+ mns_scheduler/company_info/clean/company_info_clean_api.py,sha256=HvWZl70zgDxD74wk1z0jZqj3DIUBQGs0wqeT3g6yWi8,4876
14
14
  mns_scheduler/company_info/constant/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
15
- mns_scheduler/company_info/constant/company_constant_data.py,sha256=zhRAUKYkpvyYa-qask9eD8AFvh0vyf6rDhQzBC830xs,17658
15
+ mns_scheduler/company_info/constant/company_constant_data.py,sha256=-v3HDHO5pWrCgfHk-NjDPVrQb2yhjw2PByzyOcHLLwU,18361
16
16
  mns_scheduler/company_info/de_list_stock/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
17
17
  mns_scheduler/company_info/de_list_stock/de_list_stock_service.py,sha256=GCp6hlvO-SuH1oIpEsYZwEnGUOa6fXb2D7CqAUYXKQA,1993
18
18
  mns_scheduler/company_info/remark/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
@@ -138,12 +138,12 @@ mns_scheduler/zt/script/kcx_high_chg_open_his_data_handle.py,sha256=aTrYgshcccoH
138
138
  mns_scheduler/zt/script/sync_high_chg_pool_his_data.py,sha256=dtREQdNpoDM4KLTvdXuiEhXmdjpc1dScMDgR3fbEbww,1685
139
139
  mns_scheduler/zt/script/sync_now_higt_chg_zt.py,sha256=bhoIGDWTI3w0YKVfIAVNHWpUrYqJYDMGPt-1i3d_Zmw,1850
140
140
  mns_scheduler/zt/zt_pool/__init__.py,sha256=Tyvi_iQlv3jz59EdH67Mycnt9CSixcWPQoJwu55bOq0,165
141
- mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py,sha256=0h8J5FsGHjP76S_yMFPH5tt37Of25jOJy3ng3ckz7g4,11109
141
+ mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py,sha256=F3IzCFgVPRxyC9j90aLLF1SO3owUX82RS_JA8L69tsM,11109
142
142
  mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=Sy39T-yFwLSIIoSZqQzS-6-W1RlaFWvYpksEXKQVFdI,10456
143
- mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py,sha256=OuklSKUhZMj1aKcwDLpZilKIqFbHY3hvvIuA_UFnPqA,2135
143
+ mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py,sha256=1uoiR2Uw46kDfjkvNg2US5rd_4OIkYO3872gIJOufUY,2135
144
144
  mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
145
- mns_scheduler/zz_task/data_sync_task.py,sha256=Crp7ZHA24d-UX73hncEimLB4DA5JSuAWmyCCNoPMKps,21201
146
- mns_scheduler-1.2.3.5.dist-info/METADATA,sha256=qgh6jBkmI_0X0KmuOLidZ3yhTJuc4AbpiWm96OxATQI,64
147
- mns_scheduler-1.2.3.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
148
- mns_scheduler-1.2.3.5.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
149
- mns_scheduler-1.2.3.5.dist-info/RECORD,,
145
+ mns_scheduler/zz_task/data_sync_task.py,sha256=Kpv5LS_Vw6W90Ak_R2uOtCcYXRMu9LRKqviVA3OqHtI,21201
146
+ mns_scheduler-1.2.3.6.dist-info/METADATA,sha256=xGoalNKW0yEnEMLzqY3favOvn-BhWPYzjNKno_sXlxM,64
147
+ mns_scheduler-1.2.3.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
148
+ mns_scheduler-1.2.3.6.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
149
+ mns_scheduler-1.2.3.6.dist-info/RECORD,,