mns-common 1.2.4.3__py3-none-any.whl → 1.2.4.5__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.

@@ -177,6 +177,10 @@ def get_real_time_zt_info():
177
177
 
178
178
  zt_df = common_service_fun_api.symbol_amount_simple(zt_df)
179
179
  zt_df = common_service_fun_api.exclude_new_stock(zt_df)
180
+ zt_df.fillna(0, inplace=True)
181
+ zt_df['chg'] = zt_df['chg'].astype(float)
182
+ zt_df['chg'] = round(
183
+ zt_df['chg'], 2)
180
184
  return zt_df
181
185
 
182
186
 
@@ -47,7 +47,7 @@ def ths_concept_add(self_code):
47
47
 
48
48
 
49
49
  # 个股添加
50
- def symbol_add(symbol, name, choose_type):
50
+ def symbol_add(symbol, name):
51
51
  total_url = "http://127.0.0.1:5000/api/self/choose/stock/add"
52
52
  headers = {
53
53
  "Content-Type": "application/json"
@@ -55,7 +55,6 @@ def symbol_add(symbol, name, choose_type):
55
55
  param = {
56
56
  "symbol": symbol,
57
57
  "choose_reason": '',
58
- "name": name,
59
- 'choose_type': choose_type
58
+ "name": name
60
59
  }
61
60
  return requests.post(total_url, data=param, headers=headers)
@@ -115,3 +115,8 @@ TRADE_CONFIG_INFO = 'trade_config_info'
115
115
 
116
116
  # 公司备注信息
117
117
  COMPANY_REMARK_INFO = 'company_remark_info'
118
+
119
+ # 打板待选
120
+ DA_BAN_SELF_CHOOSE = 'da_ban_self_choose'
121
+ # 打板排除
122
+ DA_BAN_SELF_EXCLUDE = 'da_ban_self_exclude'
@@ -19,8 +19,4 @@ SELF_CHOOSE_KPL_FIRST_CONCEPT = 'kpl_first_concept'
19
19
  # 开盘啦二级概念
20
20
  SELF_CHOOSE_KPL_SECOND_CONCEPT = 'kpl_second_concept'
21
21
 
22
- # 个股打板自选
23
- SELF_CHOOSE_SYMBOL_DA_BAN = 'da_ban'
24
22
 
25
- # 个股普通自选
26
- SELF_CHOOSE_SYMBOL_DA_BAN = 'normal'
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns_common
3
- Version: 1.2.4.3
3
+ Version: 1.2.4.5
4
4
 
@@ -49,7 +49,7 @@ mns_common/api/ths/self_choose/ths_self_choose_api.py,sha256=TkV4r8iRkgcm4OaclUT
49
49
  mns_common/api/ths/wen_cai/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
50
50
  mns_common/api/ths/wen_cai/ths_wen_cai_api.py,sha256=TiDbKIB57ARrnGb70vSJ7-c7lodQqivwlC2IWs95xFw,4718
51
51
  mns_common/api/ths/zt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
- mns_common/api/ths/zt/ths_stock_zt_pool_api.py,sha256=d-MYuz8_e_YmIdtOBDpgrDRSsTfvARxTD_ho4CJs3b4,12256
52
+ mns_common/api/ths/zt/ths_stock_zt_pool_api.py,sha256=Bgvbq6IDiuV5Dg3CiK31Vbbr0ER8rowrKsh_xWjDg7Q,12391
53
53
  mns_common/component/__init__.py,sha256=8b2PuXJM5fLoq71cWPXp695czQuaRtyR6OVHajGjDPc,161
54
54
  mns_common/component/common_service_fun_api.py,sha256=PLKsIJxlI_MPHeU8s70ncBtKpo1xkFrCE1e1LfWMK7Q,4995
55
55
  mns_common/component/cache/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -89,17 +89,17 @@ mns_common/component/redis_msg/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IB
89
89
  mns_common/component/redis_msg/redis_msg_publish_service.py,sha256=jcNEfQpARCPyl_eFXTksL2aHn1r5Lnv1qns4lVMCToI,381
90
90
  mns_common/component/self_choose/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
91
91
  mns_common/component/self_choose/black_list_service_api.py,sha256=bBWXwvf7M3_ys5oZNHDMtAAqF4HYbsqfSh1zOd8UvuY,1980
92
- mns_common/component/self_choose/self_choose_service_api.py,sha256=L5KrLaFYpuYIicKPOorQnfVSdk0LgNRP-S695tWYX1g,1746
92
+ mns_common/component/self_choose/self_choose_service_api.py,sha256=3dKqpQSIhkdRjK5yCVSsmQAL1V8-LqYujdEvj2N4bGk,1696
93
93
  mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
94
94
  mns_common/component/trade_date/trade_date_common_service_api.py,sha256=PHrcUjgLdNKbqyMGot0poKtiLBys_wRZoheMhPJE-U4,3032
95
95
  mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
96
96
  mns_common/component/zt/zt_common_service_api.py,sha256=41aVvCT4qUBGza6-z8jbnS2O0mpw7zN_k2Njy4gTUM8,11940
97
97
  mns_common/constant/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
98
98
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
99
- mns_common/constant/db_name_constant.py,sha256=nCYyvRvKYdlDij4575GfcRicUYPZAU07J3LGHyVjVwM,2994
99
+ mns_common/constant/db_name_constant.py,sha256=4Lw2Q9m90-YspA3bSZa5-py57TXre2oc3E33pGt-gYo,3118
100
100
  mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
101
101
  mns_common/constant/redis_msg_constant.py,sha256=fMtI_WbJ2IkMX4qGwvR5MkMO0NqU8XgUUZqQzHIRscU,501
102
- mns_common/constant/self_choose_constant.py,sha256=H6iTAJFf_CQCwldCxLghDJqlA_ZHMt1cTz_WVXjsfHA,616
102
+ mns_common/constant/self_choose_constant.py,sha256=QJVSwUpnXvMYA62V3_8ptDqBdI2J8S5FqI5rYSJTwT0,496
103
103
  mns_common/db/MongodbUtil.py,sha256=9SRED0DJH-4_NzbVehdm2x07Ts68YYm87nEvCywHIf4,11750
104
104
  mns_common/db/MongodbUtilLocal.py,sha256=xLUTeeZ83BbqPtUEwy7QmPtkSfwPyNB_5ggkn-eMpBQ,7560
105
105
  mns_common/db/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -111,7 +111,7 @@ mns_common/utils/date_handle_util.py,sha256=qkEyKLYiVq6qpKVp32MLKwRtGKVBK6AY5at2
111
111
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
112
112
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
113
113
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
114
- mns_common-1.2.4.3.dist-info/METADATA,sha256=9_FIhBxT0UL-otunuI73t3GWYlWEziCai5A1E7GQ3x0,61
115
- mns_common-1.2.4.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
116
- mns_common-1.2.4.3.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
117
- mns_common-1.2.4.3.dist-info/RECORD,,
114
+ mns_common-1.2.4.5.dist-info/METADATA,sha256=LA0_9qwi4TE53iX-WLlh5rFofmcrQ7BWxBkmtr8pYaM,61
115
+ mns_common-1.2.4.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
116
+ mns_common-1.2.4.5.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
117
+ mns_common-1.2.4.5.dist-info/RECORD,,