mns-scheduler 1.0.7.3__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.

@@ -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.3
3
+ Version: 1.0.7.4
4
4
 
@@ -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.3.dist-info/METADATA,sha256=aSUSDZpcZpnTekA6LirVB_x7ggyOEgp2xiqGe4MouPI,64
98
- mns_scheduler-1.0.7.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
99
- mns_scheduler-1.0.7.3.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
100
- mns_scheduler-1.0.7.3.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,,