mns-common 1.2.8.8__py3-none-any.whl → 1.2.9.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.

@@ -8,6 +8,7 @@ sys.path.append(project_path)
8
8
 
9
9
  import mns_common.api.akshare.stock_bid_ask_api as stock_bid_ask_api
10
10
  from mns_common.constant.price_enum import PriceEnum
11
+ import mns_common.component.common_service_fun_api as common_service_fun_api
11
12
 
12
13
  '''
13
14
 
@@ -61,6 +62,21 @@ def get_trade_price(symbol, price_code, limit_chg):
61
62
  return trade_price
62
63
 
63
64
 
65
+ def calculate_zt_price(last_close_price, symbol):
66
+ classification = common_service_fun_api.classify_symbol_one(symbol)
67
+ if classification in ['K', 'C']:
68
+ zt_chg = 0.2
69
+ elif classification in ['S', 'H']:
70
+ zt_chg = 0.1
71
+ elif classification in ['X']:
72
+ zt_chg = 0.3
73
+ else:
74
+ zt_chg = 0.05
75
+
76
+ zt_price = round((1 + zt_chg) * last_close_price, 2)
77
+ return zt_price
78
+
79
+
64
80
  if __name__ == '__main__':
65
81
  price = get_trade_price('301314', PriceEnum.BUY_PRICE_LIMIT.price_code)
66
82
  print(price)
@@ -143,3 +143,9 @@ FU_PAN_NOTE = 'fu_pan_note'
143
143
 
144
144
  # 公司停复牌
145
145
  STOCK_TFP_INFO = 'stock_tfp_info'
146
+
147
+ # 公司停复牌
148
+ STOCK_TFP_INFO = 'stock_tfp_info'
149
+
150
+ # 隔夜打板
151
+ OVER_NIGHT_DA_BAN = 'over_night_da_ban'
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns_common
3
- Version: 1.2.8.8
3
+ Version: 1.2.9.0
4
4
 
@@ -92,7 +92,7 @@ mns_common/component/k_line/patterns/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQ
92
92
  mns_common/component/k_line/patterns/k_line_patterns_service_api.py,sha256=C5mg49OhACILto657H513sg1-lOmYlgCXl7y_Gw88ro,1809
93
93
  mns_common/component/k_line/patterns/pattern_Enum.py,sha256=bl8cH1H3BWdj_deVO124oSGYMPUtDQWvqqWk_5rf5rQ,509
94
94
  mns_common/component/price/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
95
- mns_common/component/price/trade_price_service_api.py,sha256=1i1ecgxMm8Gp3oyBluM162d6kKtVl73tHlo_LbkHVCo,2616
95
+ mns_common/component/price/trade_price_service_api.py,sha256=330gAecZlv9qnKq1Bm_Ka_RVvZkiHqtRrjZHRAxt1Ig,3116
96
96
  mns_common/component/qmt/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
97
97
  mns_common/component/qmt/qmt_buy_service.py,sha256=tLTgrSxCcxuMhADRBBrW4ZWR_3MdbMZvvMdH5hbwyJU,7190
98
98
  mns_common/component/real_time/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -110,7 +110,7 @@ mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3Hi
110
110
  mns_common/component/zt/zt_common_service_api.py,sha256=6pHRLLJjKcLLBA-xXkAU8SE6DZ5dgVFBRVjJmhkL0II,11945
111
111
  mns_common/constant/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
112
112
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
113
- mns_common/constant/db_name_constant.py,sha256=jCn7Yc2qnGzuWsPq5KQPzIQX53EUJKKruhtY0haeWyI,3733
113
+ mns_common/constant/db_name_constant.py,sha256=3o0HsZHomPXqw5UwRYWDhgvSBRj2lUoXZUkkvNAnUeg,3848
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
116
  mns_common/constant/self_choose_constant.py,sha256=QJVSwUpnXvMYA62V3_8ptDqBdI2J8S5FqI5rYSJTwT0,496
@@ -125,7 +125,7 @@ mns_common/utils/date_handle_util.py,sha256=-WJF_0DRkPkKlfQ5lVqJu8mH3EhpIZ-EBrz0
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.2.8.8.dist-info/METADATA,sha256=GdVXntr-fbZRLyvdSaYNs4g_DSAI87IrdfVZGY_YF2U,61
129
- mns_common-1.2.8.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
- mns_common-1.2.8.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
131
- mns_common-1.2.8.8.dist-info/RECORD,,
128
+ mns_common-1.2.9.0.dist-info/METADATA,sha256=Gt14_WnFbl_-518VFWEQwSW0Fxgg5FN8_YkoE_Pt00U,61
129
+ mns_common-1.2.9.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
+ mns_common-1.2.9.0.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
131
+ mns_common-1.2.9.0.dist-info/RECORD,,