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

@@ -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.insert_mongo(kpl_plate_best_index_df, db_name_constant.KPL_BEST_CHOOSE_HIS)
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 bool(date_util.is_trade_time(now_date)):
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
- if trade_date_common_service_api.is_trade_day(str_day):
307
- sync_best_choose_his_index.sync_best_choose_his_index(str_day)
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
 
@@ -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
- # sync_daily_data_info()
388
+ # sync_kpl_best_his_quotes()
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.0.3.8
3
+ Version: 1.0.3.9
4
4
 
@@ -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=7z9UPwh6_EnZMOQnpQQksdF_IwV1t7uRRYg1ZrpL3OA,4503
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=wdq0n5ma1wd1EHK9TMZaR98-8JKLSlSC6D60vTPOLjc,9141
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=hCbz7KAlIin-JskPx_cxh2H0C8h0ppWBpW2mL0XEEIo,15409
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.8.dist-info/METADATA,sha256=LSJy1ZuXjgw5RFwnbIMn0Pz7S1J8AfsR22Ib3g97zE4,64
68
- mns_scheduler-1.0.3.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
69
- mns_scheduler-1.0.3.8.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
70
- mns_scheduler-1.0.3.8.dist-info/RECORD,,
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,,