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

@@ -6,11 +6,9 @@ end = file_path.index('mns') + 16
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
9
- import mns_common.utils.data_frame_util as data_frame_util
10
9
  from mns_scheduler.db.script.sync.remote_mongo_util import RemoteMongodbUtil
11
10
  from mns_scheduler.db.script.sync.local_mongo_util import LocalMongodbUtil
12
11
  from loguru import logger
13
- import numpy as np
14
12
 
15
13
  remote_mongodb_util = RemoteMongodbUtil('27017')
16
14
  local_mongodb_util = LocalMongodbUtil('27017')
@@ -33,37 +31,39 @@ def sync_k_line(str_day):
33
31
  try:
34
32
  local_mongodb_util.save_mongo(data_df, db_name)
35
33
  except BaseException as e:
34
+ logger.error("出现异常:{}", e)
36
35
  pass
37
36
 
38
37
 
39
38
  if __name__ == '__main__':
40
39
 
41
- str_day_01 = '2025-02-18'
40
+ str_day_01 = '2025-02-27'
41
+ sync_real_time_data(str_day_01, 1, 2000)
42
42
  sync_k_line(str_day_01)
43
43
  # sync_k_line(str_day_01)
44
44
  # sync_k_line('2024-11-13')
45
45
  # sync_k_line('2024-11-12')
46
46
  # sync_k_line('2024-11-15') 232
47
- sync_real_time_data(str_day_01, 1, 2000)
48
- # sync_real_time_data('2024-11-15', 10, 1010)
49
47
 
50
- sync_k_line('2024-12-20')
51
- sync_k_line('2024-12-19')
52
- sync_k_line('2024-12-18')
53
- sync_k_line('2024-12-17')
54
- sync_k_line('2024-12-16')
55
-
56
- sync_k_line('2024-12-13')
57
- sync_k_line('2024-12-12')
58
- sync_k_line('2024-12-11')
59
- sync_k_line('2024-12-10')
60
- sync_k_line('2024-12-09')
48
+ # sync_real_time_data('2024-11-15', 10, 1010)
61
49
 
62
- sync_k_line('2024-12-06')
63
- sync_k_line('2024-12-05')
64
- sync_k_line('2024-12-04')
65
- sync_k_line('2024-12-03')
66
- sync_k_line('2024-12-02')
50
+ # sync_k_line('2024-12-20')
51
+ # sync_k_line('2024-12-19')
52
+ # sync_k_line('2024-12-18')
53
+ # sync_k_line('2024-12-17')
54
+ # sync_k_line('2024-12-16')
55
+ #
56
+ # sync_k_line('2024-12-13')
57
+ # sync_k_line('2024-12-12')
58
+ # sync_k_line('2024-12-11')
59
+ # sync_k_line('2024-12-10')
60
+ # sync_k_line('2024-12-09')
61
+ #
62
+ # sync_k_line('2024-12-06')
63
+ # sync_k_line('2024-12-05')
64
+ # sync_k_line('2024-12-04')
65
+ # sync_k_line('2024-12-03')
66
+ # sync_k_line('2024-12-02')
67
67
 
68
68
  # sync_real_time_data('2024-12-20', 1000, 2000)
69
69
  # sync_real_time_data('2024-11-13', 10, 1010)
@@ -37,33 +37,32 @@ def sync_k_line(str_day):
37
37
 
38
38
 
39
39
  if __name__ == '__main__':
40
-
41
- str_day_01 = '2025-02-18'
42
- # sync_k_line(str_day_01)
40
+ str_day_01 = '2025-02-27'
41
+ sync_k_line(str_day_01)
43
42
  # sync_k_line(str_day_01)
44
43
  # sync_k_line('2024-11-13')
45
44
  # sync_k_line('2024-11-12')
46
45
  # sync_k_line('2024-11-15') 232
47
- sync_real_time_data(str_day_01, 436, 2000)
46
+ # sync_real_time_data(str_day_01, 1, 2000)
48
47
  # sync_real_time_data('2024-11-15', 10, 1010)
49
-
50
- sync_k_line('2024-12-20')
51
- sync_k_line('2024-12-19')
52
- sync_k_line('2024-12-18')
53
- sync_k_line('2024-12-17')
54
- sync_k_line('2024-12-16')
55
-
56
- sync_k_line('2024-12-13')
57
- sync_k_line('2024-12-12')
58
- sync_k_line('2024-12-11')
59
- sync_k_line('2024-12-10')
60
- sync_k_line('2024-12-09')
61
-
62
- sync_k_line('2024-12-06')
63
- sync_k_line('2024-12-05')
64
- sync_k_line('2024-12-04')
65
- sync_k_line('2024-12-03')
66
- sync_k_line('2024-12-02')
48
+ #
49
+ # sync_k_line('2024-12-20')
50
+ # sync_k_line('2024-12-19')
51
+ # sync_k_line('2024-12-18')
52
+ # sync_k_line('2024-12-17')
53
+ # sync_k_line('2024-12-16')
54
+ #
55
+ # sync_k_line('2024-12-13')
56
+ # sync_k_line('2024-12-12')
57
+ # sync_k_line('2024-12-11')
58
+ # sync_k_line('2024-12-10')
59
+ # sync_k_line('2024-12-09')
60
+ #
61
+ # sync_k_line('2024-12-06')
62
+ # sync_k_line('2024-12-05')
63
+ # sync_k_line('2024-12-04')
64
+ # sync_k_line('2024-12-03')
65
+ # sync_k_line('2024-12-02')
67
66
 
68
67
  # sync_real_time_data('2024-12-20', 1000, 2000)
69
68
  # sync_real_time_data('2024-11-13', 10, 1010)
@@ -21,7 +21,12 @@ mongodbUtilV2_27019 = MongodbUtilV2('27019', extra_income_db_name.EXTRA_INCOME)
21
21
 
22
22
  def hk_stock_daily_qfq_sync():
23
23
  hk_stock_path = '/港股/qfq/'
24
+ hk_stock_exist_df = baidu_yun_pan_handle_service.get_file_folder(hk_stock_path)
25
+ hk_stock_exist_df['symbol'] = hk_stock_exist_df['name'].astype(str).str[:5]
26
+
24
27
  hk_stock_info_df = mongodb_util_27017.find_all_data(db_name_constant.EM_HK_STOCK_INFO)
28
+
29
+
25
30
  hk_stock_info_df = hk_stock_info_df.sort_values(by=['amount'], ascending=False)
26
31
  del hk_stock_info_df['_id']
27
32
  # 上传港股列表
@@ -30,7 +35,7 @@ def hk_stock_daily_qfq_sync():
30
35
  # 上传港股通列表
31
36
  hk_stock_info_ggt_df = hk_stock_info_df.loc[hk_stock_info_df['symbol'].isin(hk_ggt_component_df['symbol'])]
32
37
  baidu_yun_pan_handle_service.upload_to_baidu('港股通列表', hk_stock_path, hk_stock_info_ggt_df)
33
-
38
+ hk_stock_info_df = hk_stock_info_df.loc[~(hk_stock_info_df['symbol'].isin(hk_stock_exist_df['symbol']))]
34
39
  fail_list = []
35
40
 
36
41
  for hk_stock_one in hk_stock_info_df.itertuples():
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.3.0.6
3
+ Version: 1.3.0.7
4
4
 
@@ -45,8 +45,8 @@ mns_scheduler/db/script/sync/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb9
45
45
  mns_scheduler/db/script/sync/local_mongo_util.py,sha256=MFG-S7aUBLKe4tkhKNklUzpiZef2n078YXd39dfOMy0,7540
46
46
  mns_scheduler/db/script/sync/remote_data_sync_to_local.py,sha256=gLJORdtt0YospxUwNIS5gusV9NtV7xmP1dm-M08neZ4,2789
47
47
  mns_scheduler/db/script/sync/remote_mongo_util.py,sha256=-BCR2zeQ9z0zeZg6wO0aCS4bGnsGIohFRH7QR8XXJSo,10966
48
- mns_scheduler/db/script/sync/sync_hui_ce_test_data.py,sha256=p0NrTWGsOVfecTBuSW96LKa_3eKevN_bll7RA1PuWcM,2090
49
- mns_scheduler/db/script/sync/sync_hui_ce_test_data_01.py,sha256=cQIxTpfi-wWVpY8aMQrcvig2KG_VykUHBeEmxYIx5y4,2094
48
+ mns_scheduler/db/script/sync/sync_hui_ce_test_data.py,sha256=e4n9kjY-eonjRS1yU5n9D7B2tOP846dNTyvvtLP_zpA,2096
49
+ mns_scheduler/db/script/sync/sync_hui_ce_test_data_01.py,sha256=ywJxst91X2hvE5lvtco_18BpXoP7gKndTEvZ1o4B0jk,2135
50
50
  mns_scheduler/db/script/update/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
51
51
  mns_scheduler/db/script/update/update_col_field.py,sha256=2XeiKodVgR19IgJKMXZmM7MOLgeUyli15qo58gtYHY8,1274
52
52
  mns_scheduler/debt/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
@@ -55,7 +55,7 @@ mns_scheduler/dt/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,
55
55
  mns_scheduler/dt/stock_dt_pool_sync.py,sha256=5ivRUOnFtOapZniwTbujf1lVq3y4btm2Cmd5R6JJAVo,3466
56
56
  mns_scheduler/extraIncome/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
57
57
  mns_scheduler/extraIncome/hk/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
58
- mns_scheduler/extraIncome/hk/hk_stock_qfq_daily_k_line.py,sha256=9p9LlLghdmE-3KUPixyI8nktriP6v5D9oVdFcdl_um0,3956
58
+ mns_scheduler/extraIncome/hk/hk_stock_qfq_daily_k_line.py,sha256=myy7X09gwyPqKp8Dv_nbITok-oKUXFA5USBJSwDyCTY,4236
59
59
  mns_scheduler/extraIncome/one_minute/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
60
60
  mns_scheduler/extraIncome/one_minute/one_minute_sync_task.py,sha256=qw09DyhYRqWO4U48T3CiIikhCBTOEZ7Y1nkAoBKWgKw,1557
61
61
  mns_scheduler/extraIncome/one_minute/common/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
@@ -180,7 +180,7 @@ mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=u0IvwPuI2hnjTOrwwe8EhBAM
180
180
  mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py,sha256=1uoiR2Uw46kDfjkvNg2US5rd_4OIkYO3872gIJOufUY,2135
181
181
  mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
182
182
  mns_scheduler/zz_task/data_sync_task.py,sha256=sLFnSRh3NYuMHQsSupnRGHZ2Dda-Veh-RQp0jSlDrXU,24310
183
- mns_scheduler-1.3.0.6.dist-info/METADATA,sha256=CqfcQJG6IvPknuFdH-ru0iunSb6j-6jVtPQch0_KKek,64
184
- mns_scheduler-1.3.0.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
185
- mns_scheduler-1.3.0.6.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
186
- mns_scheduler-1.3.0.6.dist-info/RECORD,,
183
+ mns_scheduler-1.3.0.7.dist-info/METADATA,sha256=mvw79fFfBZr_wnZJaCc-RFKh_Q_etn0sbtjG-xpCGUM,64
184
+ mns_scheduler-1.3.0.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
185
+ mns_scheduler-1.3.0.7.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
186
+ mns_scheduler-1.3.0.7.dist-info/RECORD,,