mns-common 1.3.3.2__py3-none-any.whl → 1.3.3.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-common might be problematic. Click here for more details.

@@ -36,13 +36,13 @@ def get_stock_page_data(pn, fields, fs):
36
36
  "cb": "jQuery1124046660442520420653_" + str(current_timestamp_ms),
37
37
  "pn": str(pn),
38
38
  "pz": "10000", # 每页最大200条
39
- "po": "1",
39
+ "po": "0",
40
40
  "np": "3",
41
41
  "ut": "bd1d9ddb04089700cf9c27f6f7426281",
42
42
  "fltt": "2",
43
43
  "invt": "2",
44
44
  "wbp2u": "|0|0|0|web",
45
- "fid": "f3",
45
+ "fid": "f12",
46
46
  "fs": fs,
47
47
  "fields": fields,
48
48
  "_": current_timestamp_ms
@@ -208,7 +208,7 @@ def rename_real_time_quotes_df(temp_df):
208
208
  temp_df['disk_ratio'] = round((temp_df['outer_disk'] - temp_df['inner_disk']) / temp_df['inner_disk'], 2)
209
209
  # 只有外盘没有内盘
210
210
  temp_df.loc[temp_df["inner_disk"] == 0, ['disk_ratio']] = 1688
211
-
211
+ temp_df = temp_df.sort_values(by=['chg'], ascending=False)
212
212
  return temp_df
213
213
 
214
214
 
@@ -216,6 +216,7 @@ def rename_real_time_quotes_df(temp_df):
216
216
  if __name__ == "__main__":
217
217
  while True:
218
218
  df = get_real_time_quotes_all_stocks()
219
+ df = df.loc[df['amount'] != 0]
219
220
  print(df)
220
221
  zt_df = df.loc[df['wei_bi'] == 100]
221
222
  logger.info("涨停数据,{}", zt_df)
@@ -77,10 +77,11 @@ def is_trade_time(now_date):
77
77
  or (hour == 9 and minute == 26 and second < 20) \
78
78
  or (hour == 9 and minute >= 30) \
79
79
  or (hour == 10) \
80
- or (hour == 11 and minute <= 30) \
80
+ or (hour == 11 and minute < 30) \
81
+ or (hour == 11 and minute == 30 and second < 5) \
81
82
  or (hour == 13) \
82
83
  or (hour == 14 and minute < 57) \
83
- or (hour == 15 and minute == 0 and second < 30)
84
+ or (hour == 15 and minute == 0 and second < 10)
84
85
 
85
86
  return is_trade_day and trade_time
86
87
 
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns_common
3
- Version: 1.3.3.2
3
+ Version: 1.3.3.4
4
4
 
@@ -10,7 +10,7 @@ mns_common/api/akshare/yjyg_sync_api.py,sha256=cvk50_XhJWUqduOiC15SYvQTCQqECt6td
10
10
  mns_common/api/em/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
11
11
  mns_common/api/em/east_money_debt_api.py,sha256=SpCk0ULRZnfi7enInnxgH_bNJuo_yHjMINGpgriwwLc,14142
12
12
  mns_common/api/em/east_money_etf_api.py,sha256=5Mu0IF8_RMacj2HL0ENfmqySPTnALeTegtobo2jAc94,13988
13
- mns_common/api/em/east_money_stock_api.py,sha256=0TlpetAIcDgc7-Wt4zUSGDUT-hRjTH7yA20sa5JSutw,9348
13
+ mns_common/api/em/east_money_stock_api.py,sha256=hTDbc3k_7QU3xp9ZSIcyPP5jpm1FWwd2lPLm0Sb7gG4,9451
14
14
  mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py,sha256=jVy3fNdrkLq3ri7yUwXWt0ItB8LCHzt9CPz91Fj8sPA,9198
15
15
  mns_common/api/em/east_money_stock_hk_api.py,sha256=ZxaMxeXr_oFd_iaDgkJ6Pgktsh63hKKpI3mZdfCX1N4,14355
16
16
  mns_common/api/em/east_money_stock_us_api.py,sha256=4FQm8NF6TX7dyPOG0m_huVmq1shSZZyALcwMhfBW9-k,11012
@@ -131,11 +131,11 @@ mns_common/utils/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,
131
131
  mns_common/utils/async_fun.py,sha256=YTxjAtCmOz38OHNC8L_5thjM_uFBmh3arx0eJwILi_A,352
132
132
  mns_common/utils/cmd_util.py,sha256=fIS17OpuJNpDTmpIF0JcAgXCw4CZo7xO8xUwGxITL5w,4963
133
133
  mns_common/utils/data_frame_util.py,sha256=kYyLCTiFaN-A9OAisEPdjI3UBf_Vc7Jnp3ZtiuncUR0,1316
134
- mns_common/utils/date_handle_util.py,sha256=P4WJUmoDpo4IoCrt2z4keyr7pqXHKmCZBVodd_seyqg,7437
134
+ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9UEgOZ62c,7504
135
135
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
136
136
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
137
137
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
138
- mns_common-1.3.3.2.dist-info/METADATA,sha256=P5Oxu07TGufKtXezMvjwXr8VXLRkafkqVfrBG3D2ER8,61
139
- mns_common-1.3.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
140
- mns_common-1.3.3.2.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
141
- mns_common-1.3.3.2.dist-info/RECORD,,
138
+ mns_common-1.3.3.4.dist-info/METADATA,sha256=NbWC8argI-QRCoNAi0CsL7KfJ3T1tuw42hxUmlAq4lM,61
139
+ mns_common-1.3.3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
140
+ mns_common-1.3.3.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
141
+ mns_common-1.3.3.4.dist-info/RECORD,,