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

@@ -34,27 +34,18 @@ def clear_self_choose_cache():
34
34
 
35
35
 
36
36
  # 同花顺概念添加到客户端
37
- def ths_concept_add(self_code):
37
+ def ths_concept_add(param):
38
38
  total_url = "http://127.0.0.1:5000/api/self/choose/plate/add"
39
39
  headers = {
40
40
  "Content-Type": "application/json"
41
41
  }
42
- param = {
43
- "self_code": self_code,
44
- "self_type": self_choose_constant.SELF_CHOOSE_THS_CONCEPT
45
- }
46
42
  return requests.post(total_url, data=param, headers=headers)
47
43
 
48
44
 
49
45
  # 个股添加
50
- def symbol_add(symbol, name):
46
+ def symbol_add(param):
51
47
  total_url = "http://127.0.0.1:5000/api/self/choose/stock/add"
52
48
  headers = {
53
49
  "Content-Type": "application/json"
54
50
  }
55
- param = {
56
- "symbol": symbol,
57
- "choose_reason": '',
58
- "name": name
59
- }
60
51
  return requests.post(total_url, data=param, headers=headers)
@@ -15,6 +15,10 @@ SELF_CHOOSE_THS_INDUSTRY = 'ths_industry'
15
15
  # 本地行业
16
16
  LOCAL_INDUSTRY = 'local_industry'
17
17
 
18
+ # sw一级行业
19
+ SW_FIRST_INDUSTRY = 'sw_first_industry'
20
+
21
+
18
22
  # sw二级行业
19
23
  SW_SECOND_INDUSTRY = 'sw_second_industry'
20
24
 
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns_common
3
- Version: 1.3.0.8
3
+ Version: 1.3.1.0
4
4
 
@@ -101,7 +101,7 @@ mns_common/component/redis_msg/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IB
101
101
  mns_common/component/redis_msg/redis_msg_publish_service.py,sha256=jcNEfQpARCPyl_eFXTksL2aHn1r5Lnv1qns4lVMCToI,381
102
102
  mns_common/component/self_choose/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
103
103
  mns_common/component/self_choose/black_list_service_api.py,sha256=BUySMNHDM3OzXe3g7WGola8_yGZ0ub_fjHj7e6-eB7s,1993
104
- mns_common/component/self_choose/self_choose_service_api.py,sha256=3dKqpQSIhkdRjK5yCVSsmQAL1V8-LqYujdEvj2N4bGk,1696
104
+ mns_common/component/self_choose/self_choose_service_api.py,sha256=5K6jt0DppiUKBNa-t9-1fSrAHgyJ5Z90LAh_Fo6mvQs,1462
105
105
  mns_common/component/tfp/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
106
106
  mns_common/component/tfp/stock_tfp_api.py,sha256=iYCBA4DjZZ1ioDKuB8z_uUEuhL0eWPY7K9QkQl9yrik,2135
107
107
  mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -113,7 +113,7 @@ mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVg
113
113
  mns_common/constant/db_name_constant.py,sha256=5j_dfmZi8t92B5SbsXRIsps6r9rs0TspPlqLAAcqCjQ,4140
114
114
  mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
115
115
  mns_common/constant/redis_msg_constant.py,sha256=fMtI_WbJ2IkMX4qGwvR5MkMO0NqU8XgUUZqQzHIRscU,501
116
- mns_common/constant/self_choose_constant.py,sha256=_jEyHKhh6Z0OYMrx43LkVtzqWfZxcZyw7y0e6GWSWBg,714
116
+ mns_common/constant/self_choose_constant.py,sha256=Xnzp9cn5x5_UdqF4gozSDErkzafnbCYBjDH8YpTEU84,777
117
117
  mns_common/db/MongodbUtil.py,sha256=oO6t_kKiC13uS4M3OyyQkc_ktfOKhBgWLu49LVy4QQo,11745
118
118
  mns_common/db/MongodbUtilLocal.py,sha256=xLUTeeZ83BbqPtUEwy7QmPtkSfwPyNB_5ggkn-eMpBQ,7560
119
119
  mns_common/db/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -125,7 +125,7 @@ mns_common/utils/date_handle_util.py,sha256=P4WJUmoDpo4IoCrt2z4keyr7pqXHKmCZBVod
125
125
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
126
126
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
127
127
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
128
- mns_common-1.3.0.8.dist-info/METADATA,sha256=Ae8os9YikDwZ0DLwDgfUmm7O7NIS5hUeYBt9xQDdp_4,61
129
- mns_common-1.3.0.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
- mns_common-1.3.0.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
131
- mns_common-1.3.0.8.dist-info/RECORD,,
128
+ mns_common-1.3.1.0.dist-info/METADATA,sha256=Xgga9P1rXSHsqUiMVfEWL4_qHv1r2ziHC5v-jcgSLCU,61
129
+ mns_common-1.3.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
+ mns_common-1.3.1.0.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
131
+ mns_common-1.3.1.0.dist-info/RECORD,,