mns-common 1.2.5.1__tar.gz → 1.2.5.3__tar.gz
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-1.2.5.1 → mns_common-1.2.5.3}/PKG-INFO +1 -1
- mns_common-1.2.5.3/mns_common/api/em/self_choose/__init__.py +27 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/symbol/kpl_real_time_quotes_api.py +6 -5
- mns_common-1.2.5.3/mns_common/api/kpl/symbol/kpl_symbol_common_field_constant.py +140 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py +0 -4
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common.egg-info/PKG-INFO +1 -1
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common.egg-info/SOURCES.txt +1 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/setup.py +1 -1
- mns_common-1.2.5.1/mns_common/api/kpl/symbol/kpl_symbol_common_field_constant.py +0 -107
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/README.md +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/k_line_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/stock_bid_ask_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/stock_dt_pool.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/stock_zb_pool.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/stock_zt_pool_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/akshare/yjyg_sync_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_debt_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_etf_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_stock_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_stock_hk_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_stock_v2_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/em_concept_index_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/common/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/common/kpl_common_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/concept/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/concept/kpl_concept_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/constant/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/constant/kpl_constant.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/industry/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/industry/kpl_industry_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/selection/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/selection/kpl_selection_plate_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/symbol/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/symbol/symbol_his_quotes_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/msg/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/msg/push_msg_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/big_deal/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/big_deal/ths_big_deal_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/app/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/app/ths_concept_detail_app.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/app/ths_concept_index_app.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_common_js_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_company_info_web.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_concept_detail_web.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_concept_index_web.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/self_choose/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/self_choose/ths_self_choose_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/wen_cai/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/wen_cai/ths_wen_cai_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/zt/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/zt/ths_stock_zt_pool_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/cache/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/cache/cache_service.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/classify/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/classify/symbol_classify_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/classify/symbol_classify_param.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/common_service_fun_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/company_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/company_common_service_new_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/company_hk_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/concept/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/concept/kpl_concept_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/concept/ths_concept_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/data/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/data/data_init_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/deal/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/deal/deal_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/deal/terminal_enum.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/industry/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/industry/ths_industry_index_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/clean/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/clean/k_line_param.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/clean/sh_small_normal_zt_k_line_check_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/common/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/common/k_line_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/patterns/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/patterns/k_line_patterns_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/patterns/pattern_Enum.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/price/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/price/trade_price_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/qmt/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/qmt/qmt_buy_service.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/real_time/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/real_time/real_time_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/redis_msg/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/redis_msg/redis_msg_publish_service.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/self_choose/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/self_choose/black_list_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/self_choose/self_choose_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/trade_date/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/trade_date/trade_date_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/zt/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/zt/zt_common_service_api.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/black_list_classify_enum.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/db_name_constant.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/price_enum.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/redis_msg_constant.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/constant/self_choose_constant.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/db/MongodbUtil.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/db/MongodbUtilLocal.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/db/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/__init__.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/async_fun.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/cmd_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/data_frame_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/date_handle_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/db_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/file_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/utils/ip_util.py +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common.egg-info/dependency_links.txt +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common.egg-info/top_level.txt +0 -0
- {mns_common-1.2.5.1 → mns_common-1.2.5.3}/setup.cfg +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
file_path = os.path.abspath(__file__)
|
|
5
|
+
end = file_path.index('mns') + 16
|
|
6
|
+
project_path = file_path[0:end]
|
|
7
|
+
sys.path.append(project_path)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
fetch("https://myfavor.eastmoney.com/v4/webouter/as?appkey=e9166c7e9cdfad3aa3fd7d93b757e9b1&cb=jQuery371045745102863162_1727593084438&g=1&sc=116%2402318&_=1727593084478", {
|
|
12
|
+
"headers": {
|
|
13
|
+
"accept": "*/*",
|
|
14
|
+
"accept-language": "zh-CN,zh;q=0.9",
|
|
15
|
+
"sec-ch-ua": "\"Google Chrome\";v=\"129\", \"Not=A?Brand\";v=\"8\", \"Chromium\";v=\"129\"",
|
|
16
|
+
"sec-ch-ua-mobile": "?0",
|
|
17
|
+
"sec-ch-ua-platform": "\"Windows\"",
|
|
18
|
+
"sec-fetch-dest": "script",
|
|
19
|
+
"sec-fetch-mode": "no-cors",
|
|
20
|
+
"sec-fetch-site": "same-site",
|
|
21
|
+
"cookie": "qgqp_b_id=1e0d79428176ed54bef8434efdc0e8c3; mtp=1; uidal=4253366368931142%e8%82%a1%e5%8f%8b9x56I87727; sid=170711377; vtpst=|; ct=RWJFw3nWsBRloTBCLgO5XX6b48IHj3YiKY0QS2Rn8Vfd14sSHK9v5TAE6wdXndSvskLTqiayWrbw-mHS3wZlLy2Yc0esK7P2WtX_3Pqn_B1ylw0W31ydNOmfMwGdtJEoT8uYVZnOEEKgjGvsZCtXUb5wILUoxwMcjk0Hrjl9meE; ut=FobyicMgeV4IrDnpDeOA2wpy4pz6RNWo-uhd_riT93xOIbOw4OZHlmA5Vsq1An23blEIFsYbBo6zcXjQmAQCxPwQfp4l_z7BCt0O6855lQWHyS4MObxDc9OT11B8PwrZNPxhfY4pQTRMYaXM2aMm0OAXZC-IygpxHk_p83BOWxVYorT-4HoQoLQmix2dcuVG8rd3LKTfjvRJK1zYPIjO_NJe0i-8zEo4B9hmdMkFrGNMHwwG7gmaCZnSDk4s74uv_YstQro7JrrB-5MRdI-xNE9esdGNNM-V; pi=4253366368931142%3Bp4253366368931142%3B%E8%82%A1%E5%8F%8B9x56I87727%3BegTFGhjGzYty9yGOFjlPzZRWVTVOw5PhTyvveXmpLefHG1miuMYvM1XsvT7U3na1uMcMn4s5gPkVCyW%2BLXKU0x0uS%2FqCFE69ubBAbEhaxasiwYbaa9sTVn0HaPC9zWhLNGmoZxykSGh9Xa2aYfqcJeUU4vkPe13ExVrwbSNE44bd2%2B26NIgcGVt1pz7%2F%2FqA8v%2FhkxSn%2F%3BE0adByCvPsoKpsmXX7%2BD2ub2das13Adlj5OiUeTrvF9q6dN54F%2BA0odkH1EZtKjwdUmotY4JmR7x8EHTEoh6PghvOCGUbhm0GcDi2v0qYcBpokFHcQOaz9jIFd0uL1nfkMo96Fb4GWmv9mGrH5iPtjCEKz1bcA%3D%3D; xsb_history=404002%7C%u641C%u7279%u9000%u503A; HAList=ty-0-920019-%u94DC%u51A0%u77FF%u5EFA%2Cty-1-000001-%u4E0A%u8BC1%u6307%u6570%2Cty-0-002296-%u8F89%u714C%u79D1%u6280%2Cty-220-TM-%u5341%u503A%u4E3B%u8FDE%2Cty-0-300133-%u534E%u7B56%u5F71%u89C6%2Cty-0-159546-%u96C6%u6210%u7535%u8DEFETF%2Cty-1-510300-%u6CAA%u6DF1300ETF%2Cty-90-BK0895-%u7EF4%u751F%u7D20%2Cty-1-603777-%u6765%u4F0A%u4EFD%2Cty-90-BK0528-%u8F6C%u503A%u6807%u7684; websitepoptg_api_time=1727593081694; st_si=97341843359922; rskey=XQWMMOHNpaC9BZUFvKzFNYkduYVpvZ0pMQT09ilbyT; st_pvi=26930719093675; st_sp=2024-04-28%2017%3A27%3A05; st_inirUrl=https%3A%2F%2Fcn.bing.com%2F; st_sn=2; st_psi=20240929145804510-113200301712-1483040302; st_asi=20240929145804510-113200301712-1483040302-Web_so_ss-12",
|
|
22
|
+
"Referer": "https://quote.eastmoney.com/zixuan/?from=home",
|
|
23
|
+
"Referrer-Policy": "unsafe-url"
|
|
24
|
+
},
|
|
25
|
+
"body": null,
|
|
26
|
+
"method": "GET"
|
|
27
|
+
});
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/symbol/kpl_real_time_quotes_api.py
RENAMED
|
@@ -55,7 +55,7 @@ def fetch_data(page_number, end_date):
|
|
|
55
55
|
with result_lock:
|
|
56
56
|
# 使用锁来保护 result 变量的访问,将每页的数据添加到结果中
|
|
57
57
|
try:
|
|
58
|
-
if data_frame_util.is_not_empty(data_df)
|
|
58
|
+
if data_frame_util.is_not_empty(data_df):
|
|
59
59
|
result = pd.concat([result, data_df], ignore_index=True)
|
|
60
60
|
except BaseException as e:
|
|
61
61
|
logger.error("同步开盘啦数据异常:{}", e)
|
|
@@ -97,10 +97,10 @@ def sync_real_time_quotes(count, end_date):
|
|
|
97
97
|
|
|
98
98
|
# 返回获取的接口数据
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
kpl_real_time_quotes_df = kpl_symbol_common_field_constant.rename_kpl_real_time_quotes(result)
|
|
101
|
+
kpl_real_time_quotes_df = kpl_real_time_quotes_df[kpl_symbol_common_field_constant.CHOOSE_FIELD]
|
|
102
102
|
|
|
103
|
-
return
|
|
103
|
+
return kpl_real_time_quotes_df
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
def get_kpl_real_time_quotes():
|
|
@@ -120,8 +120,9 @@ from mns_common.db.MongodbUtil import MongodbUtil
|
|
|
120
120
|
mongodb_util = MongodbUtil('27017')
|
|
121
121
|
|
|
122
122
|
if __name__ == '__main__':
|
|
123
|
-
|
|
124
123
|
df = get_kpl_real_time_quotes()
|
|
124
|
+
|
|
125
|
+
fetch_data(1, '1500')
|
|
125
126
|
# end_date = '1110'
|
|
126
127
|
# count = get_stock_count(end_date)
|
|
127
128
|
# number = 1
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
file_path = os.path.abspath(__file__)
|
|
5
|
+
end = file_path.index('mns') + 14
|
|
6
|
+
project_path = file_path[0:end]
|
|
7
|
+
sys.path.append(project_path)
|
|
8
|
+
|
|
9
|
+
SYNC_FIELD = [
|
|
10
|
+
'symbol',
|
|
11
|
+
'name',
|
|
12
|
+
'you_zi',
|
|
13
|
+
'_',
|
|
14
|
+
'plate_name_list',
|
|
15
|
+
'now_price',
|
|
16
|
+
'chg',
|
|
17
|
+
'amount',
|
|
18
|
+
'real_exchange',
|
|
19
|
+
'speed',
|
|
20
|
+
'real_flow_mv',
|
|
21
|
+
'main_flow_in',
|
|
22
|
+
'main_flow_out',
|
|
23
|
+
'main_flow_net',
|
|
24
|
+
'_',
|
|
25
|
+
'_',
|
|
26
|
+
'_',
|
|
27
|
+
'_',
|
|
28
|
+
'_',
|
|
29
|
+
# 卖流占比
|
|
30
|
+
'sell_radio',
|
|
31
|
+
|
|
32
|
+
'chg_from_open',
|
|
33
|
+
'quantity_ratio',
|
|
34
|
+
'_',
|
|
35
|
+
'connected_boards',
|
|
36
|
+
'dragon_index',
|
|
37
|
+
'exchange',
|
|
38
|
+
'_',
|
|
39
|
+
'_',
|
|
40
|
+
'closure_funds',
|
|
41
|
+
'max_closure_funds',
|
|
42
|
+
'_',
|
|
43
|
+
'_',
|
|
44
|
+
'_',
|
|
45
|
+
'pct_chg',
|
|
46
|
+
'_',
|
|
47
|
+
'_',
|
|
48
|
+
'_',
|
|
49
|
+
'total_mv',
|
|
50
|
+
'flow_mv',
|
|
51
|
+
'most_relative_name',
|
|
52
|
+
'_',
|
|
53
|
+
'_',
|
|
54
|
+
'last_reason_organ_add',
|
|
55
|
+
'_',
|
|
56
|
+
|
|
57
|
+
'_',
|
|
58
|
+
'_',
|
|
59
|
+
'_',
|
|
60
|
+
'_',
|
|
61
|
+
'_',
|
|
62
|
+
'_',
|
|
63
|
+
|
|
64
|
+
'_',
|
|
65
|
+
'_',
|
|
66
|
+
|
|
67
|
+
'_',
|
|
68
|
+
'_',
|
|
69
|
+
|
|
70
|
+
'_',
|
|
71
|
+
'_',
|
|
72
|
+
'_',
|
|
73
|
+
'_',
|
|
74
|
+
'_',
|
|
75
|
+
'_'
|
|
76
|
+
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
CHOOSE_FIELD = [
|
|
80
|
+
'symbol',
|
|
81
|
+
'name',
|
|
82
|
+
'you_zi',
|
|
83
|
+
'plate_name_list',
|
|
84
|
+
'now_price',
|
|
85
|
+
'chg',
|
|
86
|
+
'amount',
|
|
87
|
+
'exchange',
|
|
88
|
+
'real_exchange',
|
|
89
|
+
'speed',
|
|
90
|
+
'real_flow_mv',
|
|
91
|
+
'main_flow_in',
|
|
92
|
+
'main_flow_out',
|
|
93
|
+
'main_flow_net',
|
|
94
|
+
# 卖流占比
|
|
95
|
+
'sell_radio',
|
|
96
|
+
'chg_from_open',
|
|
97
|
+
'quantity_ratio',
|
|
98
|
+
'connected_boards',
|
|
99
|
+
'dragon_index',
|
|
100
|
+
'closure_funds',
|
|
101
|
+
'max_closure_funds',
|
|
102
|
+
'pct_chg',
|
|
103
|
+
'total_mv',
|
|
104
|
+
'flow_mv',
|
|
105
|
+
'most_relative_name',
|
|
106
|
+
'last_reason_organ_add'
|
|
107
|
+
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def rename_kpl_real_time_quotes(kpl_real_time_quotes):
|
|
112
|
+
return kpl_real_time_quotes.rename(columns={0: "symbol",
|
|
113
|
+
1: "name",
|
|
114
|
+
2: "you_zi",
|
|
115
|
+
4: "plate_name_list",
|
|
116
|
+
5: "now_price",
|
|
117
|
+
6: "chg",
|
|
118
|
+
7: "amount",
|
|
119
|
+
8: "real_exchange",
|
|
120
|
+
9: "speed",
|
|
121
|
+
10: "real_flow_mv",
|
|
122
|
+
11: "main_flow_in",
|
|
123
|
+
12: "main_flow_out",
|
|
124
|
+
13: "main_flow_net",
|
|
125
|
+
18: "sell_radio",
|
|
126
|
+
|
|
127
|
+
20: "chg_from_open",
|
|
128
|
+
|
|
129
|
+
21: "quantity_ratio",
|
|
130
|
+
23: "connected_boards",
|
|
131
|
+
24: "dragon_index",
|
|
132
|
+
25: "exchange",
|
|
133
|
+
26: "closure_funds",
|
|
134
|
+
27: "max_closure_funds",
|
|
135
|
+
33: "pct_chg",
|
|
136
|
+
37: "total_mv",
|
|
137
|
+
38: "flow_mv",
|
|
138
|
+
39: "most_relative_name",
|
|
139
|
+
42: "last_reason_organ_add"
|
|
140
|
+
})
|
|
@@ -291,10 +291,6 @@ def merge_zt_reason(now_zt_pool_df, str_day, last_trade_zt):
|
|
|
291
291
|
zt_reason_df_copy = zt_reason_df_copy.set_index(['symbol'], drop=True)
|
|
292
292
|
now_zt_pool_df = now_zt_pool_df.set_index(['symbol'], drop=False)
|
|
293
293
|
|
|
294
|
-
# 检查索引是否有重复
|
|
295
|
-
print("now_zt_pool_df 索引是否有重复:", now_zt_pool_df.index.duplicated().any())
|
|
296
|
-
print("zt_reason_df 索引是否有重复:", zt_reason_df_copy.index.duplicated().any())
|
|
297
|
-
|
|
298
294
|
result_zt_df = pd.merge(now_zt_pool_df, zt_reason_df_copy, how='outer',
|
|
299
295
|
left_index=True, right_index=True)
|
|
300
296
|
|
|
@@ -21,6 +21,7 @@ mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py
|
|
|
21
21
|
mns_common/api/em/east_money_stock_hk_api.py
|
|
22
22
|
mns_common/api/em/east_money_stock_v2_api.py
|
|
23
23
|
mns_common/api/em/em_concept_index_api.py
|
|
24
|
+
mns_common/api/em/self_choose/__init__.py
|
|
24
25
|
mns_common/api/kpl/__init__.py
|
|
25
26
|
mns_common/api/kpl/common/__init__.py
|
|
26
27
|
mns_common/api/kpl/common/kpl_common_api.py
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
file_path = os.path.abspath(__file__)
|
|
5
|
-
end = file_path.index('mns') + 14
|
|
6
|
-
project_path = file_path[0:end]
|
|
7
|
-
sys.path.append(project_path)
|
|
8
|
-
|
|
9
|
-
SYNC_FIELD = [
|
|
10
|
-
'symbol',
|
|
11
|
-
'name',
|
|
12
|
-
'you_zi',
|
|
13
|
-
'_',
|
|
14
|
-
'plate_name_list',
|
|
15
|
-
'now_price',
|
|
16
|
-
'chg',
|
|
17
|
-
'amount',
|
|
18
|
-
'real_exchange',
|
|
19
|
-
'speed',
|
|
20
|
-
'real_flow_mv',
|
|
21
|
-
'main_flow_in',
|
|
22
|
-
'main_flow_out',
|
|
23
|
-
'main_flow_net',
|
|
24
|
-
'_',
|
|
25
|
-
'_',
|
|
26
|
-
'_',
|
|
27
|
-
'_',
|
|
28
|
-
'_',
|
|
29
|
-
# 卖流占比
|
|
30
|
-
'sell_radio',
|
|
31
|
-
|
|
32
|
-
'chg_from_chg',
|
|
33
|
-
'quantity_ratio',
|
|
34
|
-
'_',
|
|
35
|
-
'connected_boards',
|
|
36
|
-
'dragon_index',
|
|
37
|
-
'exchange',
|
|
38
|
-
'_',
|
|
39
|
-
'_',
|
|
40
|
-
'closure_funds',
|
|
41
|
-
'max_closure_funds',
|
|
42
|
-
'_',
|
|
43
|
-
'_',
|
|
44
|
-
'_',
|
|
45
|
-
'pct_chg',
|
|
46
|
-
'_',
|
|
47
|
-
'_',
|
|
48
|
-
'_',
|
|
49
|
-
'total_mv',
|
|
50
|
-
'flow_mv',
|
|
51
|
-
'most_relative_name',
|
|
52
|
-
'_',
|
|
53
|
-
'_',
|
|
54
|
-
'last_reason_organ_add',
|
|
55
|
-
'_',
|
|
56
|
-
|
|
57
|
-
'_',
|
|
58
|
-
'_',
|
|
59
|
-
'_',
|
|
60
|
-
'_',
|
|
61
|
-
'_',
|
|
62
|
-
'_',
|
|
63
|
-
|
|
64
|
-
'_',
|
|
65
|
-
'_',
|
|
66
|
-
|
|
67
|
-
'_',
|
|
68
|
-
'_',
|
|
69
|
-
|
|
70
|
-
'_',
|
|
71
|
-
'_',
|
|
72
|
-
'_',
|
|
73
|
-
'_',
|
|
74
|
-
'_',
|
|
75
|
-
'_'
|
|
76
|
-
|
|
77
|
-
]
|
|
78
|
-
CHOOSE_FIELD = [
|
|
79
|
-
'symbol',
|
|
80
|
-
'name',
|
|
81
|
-
'you_zi',
|
|
82
|
-
'plate_name_list',
|
|
83
|
-
'now_price',
|
|
84
|
-
'chg',
|
|
85
|
-
'amount',
|
|
86
|
-
'exchange',
|
|
87
|
-
'real_exchange',
|
|
88
|
-
'speed',
|
|
89
|
-
'real_flow_mv',
|
|
90
|
-
'main_flow_in',
|
|
91
|
-
'main_flow_out',
|
|
92
|
-
'main_flow_net',
|
|
93
|
-
# 卖流占比
|
|
94
|
-
'sell_radio',
|
|
95
|
-
'chg_from_chg',
|
|
96
|
-
'quantity_ratio',
|
|
97
|
-
'connected_boards',
|
|
98
|
-
'dragon_index',
|
|
99
|
-
'closure_funds',
|
|
100
|
-
'max_closure_funds',
|
|
101
|
-
'pct_chg',
|
|
102
|
-
'total_mv',
|
|
103
|
-
'flow_mv',
|
|
104
|
-
'most_relative_name',
|
|
105
|
-
'last_reason_organ_add'
|
|
106
|
-
|
|
107
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/selection/kpl_selection_plate_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/kpl/symbol/symbol_his_quotes_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/app/ths_concept_detail_app.py
RENAMED
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/app/ths_concept_index_app.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_common_js_api.py
RENAMED
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_company_info_web.py
RENAMED
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_concept_detail_web.py
RENAMED
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/concept/web/ths_concept_index_web.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/api/ths/self_choose/ths_self_choose_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/classify/symbol_classify_api.py
RENAMED
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/classify/symbol_classify_param.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/company_common_service_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/company/company_hk_service_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/industry/ths_industry_index_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/k_line/patterns/pattern_Enum.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/price/trade_price_service_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.5.1 → mns_common-1.2.5.3}/mns_common/component/self_choose/black_list_service_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|