mns-common 1.5.0.6__py3-none-any.whl → 1.5.0.8__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.
- mns_common/api/ths/company/company_product_area_industry_index_query.py +11 -4
- mns_common/constant/db_name_constant.py +4 -0
- {mns_common-1.5.0.6.dist-info → mns_common-1.5.0.8.dist-info}/METADATA +1 -1
- {mns_common-1.5.0.6.dist-info → mns_common-1.5.0.8.dist-info}/RECORD +6 -6
- {mns_common-1.5.0.6.dist-info → mns_common-1.5.0.8.dist-info}/WHEEL +0 -0
- {mns_common-1.5.0.6.dist-info → mns_common-1.5.0.8.dist-info}/top_level.txt +0 -0
|
@@ -9,9 +9,16 @@ sys.path.append(project_path)
|
|
|
9
9
|
import requests
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
def company_product_area_industry(symbol, market):
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
def company_product_area_industry(symbol, market, date):
|
|
13
|
+
if date is None:
|
|
14
|
+
url = (
|
|
15
|
+
f"https://basic.10jqka.com.cn/basicapi/operate/index/v1/product_index_query/?code={symbol}&market={market}"
|
|
16
|
+
f"&type=stock&account=1&timeField=date&analysisTypes=product,area,industry&sortIndex=income¤cy=CNY&level=1&expands=product_introduction&locale=zh_CN")
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
url = (
|
|
20
|
+
f"https://basic.10jqka.com.cn/basicapi/operate/index/v1/product_index_query/?code={symbol}&market={market}&date={date}"
|
|
21
|
+
f"&type=stock&account=1&timeField=date&analysisTypes=product,area,industry&sortIndex=income¤cy=CNY&level=1&expands=product_introduction&locale=zh_CN")
|
|
15
22
|
|
|
16
23
|
headers = {
|
|
17
24
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
|
@@ -36,4 +43,4 @@ def company_product_area_industry(symbol, market):
|
|
|
36
43
|
|
|
37
44
|
|
|
38
45
|
if __name__ == '__main__':
|
|
39
|
-
company_product_area_industry('688551', '17')
|
|
46
|
+
company_product_area_industry('688551', '17', None)
|
|
@@ -148,6 +148,10 @@ HK_COMPANY_INDUSTRY = 'hk_company_industry'
|
|
|
148
148
|
|
|
149
149
|
# 公司控股信息 子孙公司 联营公司
|
|
150
150
|
COMPANY_HOLDING_INFO = 'company_holding_info'
|
|
151
|
+
# 公司业务组成
|
|
152
|
+
COMPANY_BUSINESS_INFO = 'company_business_info'
|
|
153
|
+
|
|
154
|
+
|
|
151
155
|
# 公司公告信息
|
|
152
156
|
COMPANY_ANNOUNCE_INFO = 'company_announce_info'
|
|
153
157
|
|
|
@@ -50,7 +50,7 @@ mns_common/api/ths/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE
|
|
|
50
50
|
mns_common/api/ths/big_deal/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
51
51
|
mns_common/api/ths/big_deal/ths_big_deal_api.py,sha256=gxtIUbowxx8gDJZfT2RISrhXVmvsgbdclYbxUiZsTlY,3644
|
|
52
52
|
mns_common/api/ths/company/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
53
|
-
mns_common/api/ths/company/company_product_area_industry_index_query.py,sha256=
|
|
53
|
+
mns_common/api/ths/company/company_product_area_industry_index_query.py,sha256=Jhuc9wYQPDl2crudZYfaI1-ALSW0-5rO-ElLC32_tqg,1961
|
|
54
54
|
mns_common/api/ths/company/ths_company_announce_api.py,sha256=10N_FmtqqKwRNP_l-KrZHG90Sd73U6xOT_zz7S5vxp0,2209
|
|
55
55
|
mns_common/api/ths/company/ths_company_info_api.py,sha256=ka0O3nBTrAuHOtFqkaZlnQkyW_aqg_75R4ISmNgly4c,9490
|
|
56
56
|
mns_common/api/ths/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -138,7 +138,7 @@ mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3Hi
|
|
|
138
138
|
mns_common/component/zt/zt_common_service_api.py,sha256=6pHRLLJjKcLLBA-xXkAU8SE6DZ5dgVFBRVjJmhkL0II,11945
|
|
139
139
|
mns_common/constant/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,165
|
|
140
140
|
mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
|
|
141
|
-
mns_common/constant/db_name_constant.py,sha256=
|
|
141
|
+
mns_common/constant/db_name_constant.py,sha256=RkSnmESDHf2yNrrwoa7Ox7SVVa2roq_RDwn1Lx0kP_k,4958
|
|
142
142
|
mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
|
|
143
143
|
mns_common/constant/extra_income_db_name.py,sha256=aXPuJSEgX7F3zpf4zal6wxejkxPbVmou_LMVlfms1SY,2701
|
|
144
144
|
mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
|
|
@@ -158,7 +158,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
|
|
|
158
158
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
159
159
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
160
160
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
161
|
-
mns_common-1.5.0.
|
|
162
|
-
mns_common-1.5.0.
|
|
163
|
-
mns_common-1.5.0.
|
|
164
|
-
mns_common-1.5.0.
|
|
161
|
+
mns_common-1.5.0.8.dist-info/METADATA,sha256=0MkHz2piTPnNNKslOGSaIARyIl9EksOByod3ivrgOeA,61
|
|
162
|
+
mns_common-1.5.0.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
163
|
+
mns_common-1.5.0.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
164
|
+
mns_common-1.5.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|