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

@@ -97,7 +97,6 @@ def all_stock_ticker_data_new(fields, fs) -> pd.DataFrame:
97
97
 
98
98
 
99
99
  def get_all_real_time_quotes():
100
-
101
100
  fs = "m:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048"
102
101
  # 获取第一页数据
103
102
  page_one_df = get_stock_page_data(1, fields_02, fs)
@@ -160,7 +159,9 @@ def rename_real_time_quotes_df(temp_df):
160
159
  "f184": "today_main_net_inflow_ratio",
161
160
  "f100": "industry",
162
161
  "f103": "concept",
163
- "f352": "average_price"
162
+ "f352": "average_price",
163
+ "f191": "hk_stock_code",
164
+ "f193": "hk_stock_name"
164
165
  })
165
166
  temp_df.loc[temp_df['total_share'] == '-', 'total_share'] = 0
166
167
  temp_df.loc[temp_df['flow_share'] == '-', 'flow_share'] = 0
@@ -174,5 +174,5 @@ mongodb_util = MongodbUtil('27017')
174
174
  if __name__ == '__main__':
175
175
  stock_account_info = mongodb_util.find_query_data('stock_account_info', {"type": "ths_cookie", })
176
176
  ths_cookie_test = list(stock_account_info['cookie'])[0]
177
- company_df_test = get_company_hot_info('000833', ths_cookie_test)
177
+ company_df_test = get_company_hold_info('000833', ths_cookie_test)
178
178
  print(company_df_test)
@@ -22,9 +22,9 @@ TEN_THOUSAND = 10000
22
22
 
23
23
 
24
24
  def total_mv_classification(real_time_quotes_now):
25
- real_time_quotes_now['flow_mv_sp'] = round((real_time_quotes_now['flow_mv'] / HUNDRED_MILLION), 2)
26
- real_time_quotes_now['total_mv_sp'] = round((real_time_quotes_now['total_mv'] / HUNDRED_MILLION), 2)
27
- real_time_quotes_now['flow_mv_level'] = 0
25
+ real_time_quotes_now.loc[:, 'flow_mv_sp'] = round((real_time_quotes_now['flow_mv'] / HUNDRED_MILLION), 2)
26
+ real_time_quotes_now.loc[:, 'total_mv_sp'] = round((real_time_quotes_now['total_mv'] / HUNDRED_MILLION), 2)
27
+ real_time_quotes_now.loc[:, 'flow_mv_level'] = 0
28
28
 
29
29
  real_time_quotes_now.reset_index(drop=True, inplace=True)
30
30
  real_time_quotes_now.loc[(real_time_quotes_now["flow_mv_sp"] >= 0), ['flow_mv_level']] \
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-common
3
- Version: 1.3.4.9
3
+ Version: 1.3.5.1
4
4
 
@@ -14,7 +14,7 @@ mns_common/api/em/east_money_stock_api.py,sha256=hTDbc3k_7QU3xp9ZSIcyPP5jpm1FWwd
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=tw6APwlQRS-x0b96tCK_D7LKX1UJfuWv5ortoRujacA,14356
16
16
  mns_common/api/em/east_money_stock_us_api.py,sha256=_EKzQ0rTTE9JFaOEQkG7e7MgO2IyJZXQxeit_UKcYA4,11013
17
- mns_common/api/em/east_money_stock_v2_api.py,sha256=wwlZKUAtByFiaEQL_4Slr6rgJ7op3H_XHzUkq91rWII,16054
17
+ mns_common/api/em/east_money_stock_v2_api.py,sha256=NsieWF7v-RGGQt7uhTOgH9-bghKWJRDSaqsO9-diKvU,16120
18
18
  mns_common/api/em/em_concept_index_api.py,sha256=PP87ES8a_y0o3SKLzBsPrc7DCPI3MBCD-4SmoUUirl0,8285
19
19
  mns_common/api/hk/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
20
20
  mns_common/api/hk/ths_hk_company_info_api.py,sha256=Cxlbuccopa0G1s8o0uTnnyLn2QaxOvbDpJQJOj7J8a8,5360
@@ -46,7 +46,7 @@ mns_common/api/ths/big_deal/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvn
46
46
  mns_common/api/ths/big_deal/ths_big_deal_api.py,sha256=gxtIUbowxx8gDJZfT2RISrhXVmvsgbdclYbxUiZsTlY,3644
47
47
  mns_common/api/ths/company/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
48
48
  mns_common/api/ths/company/ths_company_announce_api.py,sha256=10N_FmtqqKwRNP_l-KrZHG90Sd73U6xOT_zz7S5vxp0,2209
49
- mns_common/api/ths/company/ths_company_info_api.py,sha256=fw1M0nxtfKd3a-PB51Jk5pNATFZDeV_qDjQmVhnHrHw,9229
49
+ mns_common/api/ths/company/ths_company_info_api.py,sha256=hJAjCGqK8K66_0mGwGyk4i8MurwBjwCqIhh-qdYyU5I,9230
50
50
  mns_common/api/ths/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
51
51
  mns_common/api/ths/concept/app/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
52
52
  mns_common/api/ths/concept/app/ths_concept_detail_app.py,sha256=cDme8_AFCY24YC9nSw9gUNjGqjbEHd2k-rK0zmLW3Rc,7087
@@ -66,7 +66,7 @@ mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py,sha256=ohkeXyUSvxie2YqFPxqy9eL
66
66
  mns_common/api/us/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
67
67
  mns_common/api/us/ths_us_company_info_api.py,sha256=qQjv4F-ovQ2uuu-FlBAnxjvVA7qj9y_x5WZtUoyoEW4,241
68
68
  mns_common/component/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
69
- mns_common/component/common_service_fun_api.py,sha256=DTv6kKHfCwOFfd4fN9vuKRkiOxXConCGweewcDeEXdw,5515
69
+ mns_common/component/common_service_fun_api.py,sha256=H7HZ-6uxup5unWe2JazNw_EBMLj2As82FC0QqPvao7c,5536
70
70
  mns_common/component/cache/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
71
71
  mns_common/component/cache/cache_service.py,sha256=QX7tjR1iGsoCyGt6O41w8aRbZ-3xXQ-53Ps3nmUzAGQ,809
72
72
  mns_common/component/classify/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
@@ -136,7 +136,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
136
136
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
137
137
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
138
138
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
139
- mns_common-1.3.4.9.dist-info/METADATA,sha256=3KOnriEU8HlDsnn2TRieg-M5RR-OYUNdbJSTsRhx1Js,61
140
- mns_common-1.3.4.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
141
- mns_common-1.3.4.9.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
- mns_common-1.3.4.9.dist-info/RECORD,,
139
+ mns_common-1.3.5.1.dist-info/METADATA,sha256=sDEBESkIb-a-0H9N8vXbJkTgEi-u3aR2AdRvDR-4IdU,61
140
+ mns_common-1.3.5.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
141
+ mns_common-1.3.5.1.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
+ mns_common-1.3.5.1.dist-info/RECORD,,