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

@@ -171,7 +171,7 @@ def sync_all_interactive_questions(symbol_list):
171
171
  time.sleep(5)
172
172
  fail_symbol_list.append(stock_one.symbol)
173
173
  logger.error("同步互动问题出现异常:{},{}", stock_one.symbol, e)
174
- sync_all_interactive_questions(fail_symbol_list)
174
+
175
175
 
176
176
 
177
177
  def save_new_data(stock_irm_cninfo_df):
@@ -98,9 +98,9 @@ def save_real_time_quotes(real_time_quotes, now_date, realtime_quotes_db_name, n
98
98
 
99
99
  real_time_quotes = real_time_quotes[order]
100
100
  real_time_quotes['sum_main_inflow_disk'] = round(real_time_quotes['sum_main_inflow_disk'], 2)
101
- mongodb_util.insert_mongo(real_time_quotes, realtime_quotes_db_name)
101
+ # mongodb_util.insert_mongo(real_time_quotes, realtime_quotes_db_name)
102
102
  # 移除现在的数据
103
- remove_real_time_data(number, realtime_quotes_db_name)
103
+ # remove_real_time_data(number, realtime_quotes_db_name)
104
104
  except BaseException as e:
105
105
  logger.error('保存实时数据异常:{}', e)
106
106
 
@@ -121,7 +121,7 @@ def save_real_time_quotes_his(real_time_quotes, now_date, realtime_quotes_db_nam
121
121
  real_time_quotes['number'] = number_his
122
122
 
123
123
  real_time_quotes = real_time_quotes[order]
124
- mongodb_util.insert_mongo(real_time_quotes, realtime_quotes_db_name)
124
+ # mongodb_util.insert_mongo(real_time_quotes, realtime_quotes_db_name)
125
125
  except Exception as e:
126
126
  logger.error('保存实时历史数据异常:{}', e)
127
127
 
@@ -186,22 +186,23 @@ def sync_realtime_quotes():
186
186
  auto_sell_service_api.auto_sell_stock(real_time_quotes_now.copy())
187
187
  except Exception as e:
188
188
  logger.error("自动卖出执行异常:{}", e)
189
+ # 集合竞价前同步
189
190
  if date_util.is_call_auction(str_now_date):
190
191
  if number % 4 == 0:
191
192
  save_real_time_quotes_his(real_time_quotes_now.copy(), now_date, realtime_quotes_db_name,
192
193
  number_his)
193
194
  number_his = number_his + 1
194
-
195
- if date_util.is_afternoon_time(now_date):
196
- if number % 3 == 0:
197
- save_real_time_quotes_his(real_time_quotes_now.copy(), now_date, realtime_quotes_db_name,
198
- number_his)
199
- number_his = number_his + 1
200
-
195
+ # 开盘前一个小时同步
201
196
  elif date_util.is_begin_one_hour(now_date):
202
197
  save_real_time_quotes_his(real_time_quotes_now.copy(), now_date, realtime_quotes_db_name,
203
198
  number_his)
204
199
  number_his = number_his + 1
200
+ # 下午同步次数
201
+ elif date_util.is_afternoon_time(now_date):
202
+ if number % 3 == 0:
203
+ save_real_time_quotes_his(real_time_quotes_now.copy(), now_date, realtime_quotes_db_name,
204
+ number_his)
205
+ number_his = number_his + 1
205
206
 
206
207
  else:
207
208
  # 10:30 到11:30
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.0.7.2
3
+ Version: 1.0.7.4
4
4
 
@@ -44,7 +44,7 @@ mns_scheduler/finance/test/fix_blask_list.py,sha256=sXmNcnfnjKHBylc27ysCCb9G4HYl
44
44
  mns_scheduler/hk/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
45
45
  mns_scheduler/hk/hk_company_info_sync_service_api.py,sha256=JEfIl_up36b1UpDxfPhosP6_i2Lo17Ma_GHLytoMjWI,3661
46
46
  mns_scheduler/irm/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
47
- mns_scheduler/irm/stock_irm_cninfo_service.py,sha256=BKQAQO8B7iSMydT8q1RxPwOrsCYxQYW8o041bUOzFhU,9712
47
+ mns_scheduler/irm/stock_irm_cninfo_service.py,sha256=oZUmC9h3jANUmvv_vrURcclPm2rA0A1rIn-T2PlTAtw,9660
48
48
  mns_scheduler/irm/api/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
49
49
  mns_scheduler/irm/api/sh_stock_sns_sse_info_api.py,sha256=iXy_FukyyQ_ZcU1WcT_DSpZ8-aEtDrTEcyiiIlFzXho,4931
50
50
  mns_scheduler/irm/api/sz_stock_sns_sse_info_api.py,sha256=6iZpdQ1pARchL3kV-oEVPDc9Ja0ciQBjBntVmxseeNE,6199
@@ -75,7 +75,7 @@ mns_scheduler/lhb/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg
75
75
  mns_scheduler/lhb/stock_lhb_sync_service.py,sha256=NIW0jX23N1dCEdsrKwt7MyzXSfhU7vXNpIO04dUSZwc,641
76
76
  mns_scheduler/real_time/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
77
77
  mns_scheduler/real_time/realtime_quotes_now_create_db_index.py,sha256=qQCjcsG3WYgn3zemS45Ms0AHtbkCwlSVPPCntxVvK8Q,1066
78
- mns_scheduler/real_time/realtime_quotes_now_sync.py,sha256=x74SPEOon3rnintQ3k0VJpY3jOTh-DLKLAdENUBp-Xo,9491
78
+ mns_scheduler/real_time/realtime_quotes_now_sync.py,sha256=eIPOADC4tnugM78DF_yp1R5nP55HoJoV8B0GcvYlEys,9621
79
79
  mns_scheduler/risk/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
80
80
  mns_scheduler/risk/register_and_investigate_stock_sync_api.py,sha256=pjVGZbSWQn6obobaJxsXQK7jeRrNQJ6kcwStQEj9R18,5086
81
81
  mns_scheduler/risk/stock_equity_mortgage_sync_api.py,sha256=MNj4kZ3VxxDwzFQjx-NuAGmOKcGnTaQIzGswdP_3pWc,871
@@ -94,7 +94,7 @@ mns_scheduler/zt/zt_pool_sync_api.py,sha256=RrVAbU1u-HTqXF9BSwNlzIxMHrUgjNaLpDKF
94
94
  mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
95
95
  mns_scheduler/zz_task/data_sync_task.py,sha256=BOxNBg5qSEKfRIsSJM1GPMpviOTRj9DlxvW07KuVjlA,16847
96
96
  mns_scheduler/zz_task/sync_realtime_quotes_task.py,sha256=DN3bq2XCDZC-PHlbD2NTog48bR44EruIEc2QVGKg7Tk,932
97
- mns_scheduler-1.0.7.2.dist-info/METADATA,sha256=oGsERfWfhoIRTOGAjbRTAIwOxb0ntkIJGP4KRkw1h7U,64
98
- mns_scheduler-1.0.7.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
99
- mns_scheduler-1.0.7.2.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
100
- mns_scheduler-1.0.7.2.dist-info/RECORD,,
97
+ mns_scheduler-1.0.7.4.dist-info/METADATA,sha256=Eecl0l8n31PqkNlFat3YrE6b2Yfv8AGkSqZcjTtnsnc,64
98
+ mns_scheduler-1.0.7.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
99
+ mns_scheduler-1.0.7.4.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
100
+ mns_scheduler-1.0.7.4.dist-info/RECORD,,