mns-common 1.2.9.6__tar.gz → 1.2.9.7__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.9.6 → mns_common-1.2.9.7}/PKG-INFO +1 -1
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py +82 -3
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/db_name_constant.py +6 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common.egg-info/PKG-INFO +1 -1
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/setup.py +1 -1
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/README.md +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/k_line_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/stock_bid_ask_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/stock_dt_pool.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/stock_zb_pool.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/stock_zt_pool_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/akshare/yjyg_sync_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_debt_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_etf_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_stock_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_stock_hk_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_stock_v2_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/em_concept_index_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/self_choose/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/hk/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/hk/ths_hk_company_info_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/common/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/common/kpl_common_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/common/kpl_common_field_constant.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/concept/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/concept/kpl_concept_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/constant/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/constant/kpl_constant.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/industry/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/industry/kpl_industry_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/selection/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/selection/kpl_selection_plate_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/symbol/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/symbol/kpl_real_time_quotes_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/symbol/kpl_symbol_common_field_constant.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/symbol/symbol_his_quotes_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/msg/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/msg/push_msg_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/big_deal/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/big_deal/ths_big_deal_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/company/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/company/ths_company_announce_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/company/ths_company_info_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/app/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/app/ths_concept_detail_app.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/app/ths_concept_index_app.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_common_js_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_company_info_web.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_concept_detail_web.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_concept_index_web.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/self_choose/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/self_choose/ths_self_choose_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/wen_cai/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/wen_cai/ths_wen_cai_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/zt/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/zt/ths_stock_zt_pool_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/cache/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/cache/cache_service.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/classify/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/classify/symbol_classify_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/classify/symbol_classify_param.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/common_service_fun_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/company/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/company/company_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/company/company_common_service_new_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/concept/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/concept/kpl_concept_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/concept/ths_concept_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/cookie/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/cookie/cookie_info_service.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/data/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/data/data_init_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/deal/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/deal/deal_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/deal/terminal_enum.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/hk/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/hk/company_hk_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/industry/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/industry/ths_industry_index_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/clean/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/clean/k_line_param.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/clean/sh_small_normal_zt_k_line_check_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/common/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/common/k_line_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/patterns/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/patterns/k_line_patterns_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/patterns/pattern_Enum.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/price/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/price/trade_price_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/qmt/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/qmt/qmt_buy_service.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/real_time/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/real_time/real_time_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/redis_msg/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/redis_msg/redis_msg_publish_service.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/self_choose/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/self_choose/black_list_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/self_choose/self_choose_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/tfp/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/tfp/stock_tfp_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/trade_date/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/trade_date/trade_date_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/zt/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/zt/zt_common_service_api.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/black_list_classify_enum.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/price_enum.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/redis_msg_constant.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/constant/self_choose_constant.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/db/MongodbUtil.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/db/MongodbUtilLocal.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/db/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/__init__.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/async_fun.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/cmd_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/data_frame_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/date_handle_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/db_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/file_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/utils/ip_util.py +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common.egg-info/SOURCES.txt +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common.egg-info/dependency_links.txt +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common.egg-info/top_level.txt +0 -0
- {mns_common-1.2.9.6 → mns_common-1.2.9.7}/setup.cfg +0 -0
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/em/east_money_stock_gdfx_free_top_10_api.py
RENAMED
|
@@ -11,10 +11,14 @@ import mns_common.utils.date_handle_util as date_handle_util
|
|
|
11
11
|
from loguru import logger
|
|
12
12
|
import mns_common.api.em.east_money_stock_api as east_money_stock_api
|
|
13
13
|
from mns_common.db.MongodbUtil import MongodbUtil
|
|
14
|
+
import mns_common.constant.db_name_constant as db_name_constant
|
|
15
|
+
import mns_common.component.company.company_common_service_new_api as company_common_service_new_api
|
|
14
16
|
|
|
15
17
|
mongodb_util = MongodbUtil('27017')
|
|
16
18
|
|
|
17
19
|
|
|
20
|
+
# 获取十大股东
|
|
21
|
+
|
|
18
22
|
def get_stock_gdfx_free_top_10_em_api(str_day, symbol):
|
|
19
23
|
try:
|
|
20
24
|
stock_gdfx_free_top_10_em_df = ak.stock_gdfx_free_top_10_em(symbol=symbol, date=str_day)
|
|
@@ -30,12 +34,33 @@ def get_stock_gdfx_free_top_10_em_api(str_day, symbol):
|
|
|
30
34
|
"变动比率": "change_ratio"
|
|
31
35
|
}, inplace=True)
|
|
32
36
|
except BaseException as e:
|
|
37
|
+
# logger.error("同步十大流通股东信息异常:{}", e)
|
|
33
38
|
return None
|
|
34
39
|
stock_gdfx_free_top_10_em_df = stock_gdfx_free_top_10_em_df.fillna(0)
|
|
35
40
|
stock_gdfx_free_top_10_em_df.index = stock_gdfx_free_top_10_em_df.index.astype(str)
|
|
36
41
|
return stock_gdfx_free_top_10_em_df
|
|
37
42
|
|
|
38
43
|
|
|
44
|
+
def get_stock_gdfx_top_10_em_api(str_day, symbol):
|
|
45
|
+
try:
|
|
46
|
+
stock_gdfx_top_10_em_df = ak.stock_gdfx_top_10_em(symbol=symbol, date=str_day)
|
|
47
|
+
stock_gdfx_top_10_em_df.rename(columns={
|
|
48
|
+
"名次": "index",
|
|
49
|
+
"股东名称": "shareholder_name",
|
|
50
|
+
"股份类型": "shares_type",
|
|
51
|
+
"持股数": "shares_number",
|
|
52
|
+
"占总股本持股比例": "circulation_ratio",
|
|
53
|
+
"增减": "change",
|
|
54
|
+
"变动比率": "change_ratio"
|
|
55
|
+
}, inplace=True)
|
|
56
|
+
except BaseException as e:
|
|
57
|
+
# logger.error("同步十大股东信息异常:{}", e)
|
|
58
|
+
return None
|
|
59
|
+
stock_gdfx_top_10_em_df = stock_gdfx_top_10_em_df.fillna(0)
|
|
60
|
+
stock_gdfx_top_10_em_df.index = stock_gdfx_top_10_em_df.index.astype(str)
|
|
61
|
+
return stock_gdfx_top_10_em_df
|
|
62
|
+
|
|
63
|
+
|
|
39
64
|
def get_stock_gdfx_free_top_10_em(str_day, symbol):
|
|
40
65
|
symbol_init = symbol
|
|
41
66
|
classification = common_service_fun_api.classify_symbol_one(symbol)
|
|
@@ -57,32 +82,65 @@ def get_stock_gdfx_free_top_10_em(str_day, symbol):
|
|
|
57
82
|
|
|
58
83
|
if 0 < month <= 4:
|
|
59
84
|
period_04 = str(year - 1) + four
|
|
85
|
+
# 流通十大股东
|
|
60
86
|
stock_gdfx_free_top_10_04 = get_stock_gdfx_free_top_10_em_api(period_04, symbol)
|
|
61
87
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_04, period_04, symbol_init, str_day)
|
|
62
88
|
|
|
89
|
+
# 十大股东
|
|
90
|
+
stock_gdfx_top_10_04 = get_stock_gdfx_top_10_em_api(period_04, symbol)
|
|
91
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_04, period_04, symbol_init, str_day)
|
|
92
|
+
|
|
63
93
|
if stock_gdfx_free_top_10_04 is None or stock_gdfx_free_top_10_04.shape[0] == 0:
|
|
64
94
|
period_03 = str(year - 1) + three
|
|
65
95
|
stock_gdfx_free_top_10_03 = get_stock_gdfx_free_top_10_em_api(period_03, symbol)
|
|
66
96
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_03, period_03, symbol_init, str_day)
|
|
67
97
|
|
|
98
|
+
# 十大股东
|
|
99
|
+
stock_gdfx_top_10_03 = get_stock_gdfx_top_10_em_api(period_03, symbol)
|
|
100
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_03, period_03, symbol_init, str_day)
|
|
101
|
+
|
|
68
102
|
period_01 = str(year) + one
|
|
69
103
|
stock_gdfx_free_top_10_01 = get_stock_gdfx_free_top_10_em_api(period_01, symbol)
|
|
70
104
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_01, period_01, symbol_init, str_day)
|
|
105
|
+
|
|
106
|
+
# 十大股东
|
|
107
|
+
stock_gdfx_top_10_01 = get_stock_gdfx_top_10_em_api(period_01, symbol)
|
|
108
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_01, period_01, symbol_init, str_day)
|
|
109
|
+
|
|
71
110
|
elif 4 < month <= 6:
|
|
111
|
+
# 十大流通股东
|
|
72
112
|
period_01 = str(year) + one
|
|
73
113
|
stock_gdfx_free_top_10_01 = get_stock_gdfx_free_top_10_em_api(period_01, symbol)
|
|
74
114
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_01, period_01, symbol_init, str_day)
|
|
75
115
|
period_02 = str(year) + two
|
|
76
116
|
stock_gdfx_free_top_10_02 = get_stock_gdfx_free_top_10_em_api(period_02, symbol)
|
|
77
117
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_02, period_02, symbol_init, str_day)
|
|
118
|
+
|
|
119
|
+
# 十大股东
|
|
120
|
+
stock_gdfx_top_10_01 = get_stock_gdfx_top_10_em_api(period_01, symbol)
|
|
121
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_01, period_01, symbol_init, str_day)
|
|
122
|
+
|
|
123
|
+
stock_gdfx_top_10_02 = get_stock_gdfx_top_10_em_api(period_02, symbol)
|
|
124
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_02, period_02, symbol_init, str_day)
|
|
125
|
+
|
|
78
126
|
elif 6 < month <= 10:
|
|
127
|
+
# 十大流通股东
|
|
79
128
|
period_02 = str(year) + two
|
|
80
129
|
stock_gdfx_free_top_10_02 = get_stock_gdfx_free_top_10_em_api(period_02, symbol)
|
|
81
130
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_02, period_02, symbol_init, str_day)
|
|
82
131
|
period_03 = str(year) + three
|
|
83
132
|
stock_gdfx_free_top_10_03 = get_stock_gdfx_free_top_10_em_api(period_03, symbol)
|
|
84
133
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_03, period_03, symbol_init, str_day)
|
|
134
|
+
|
|
135
|
+
# 十大股东
|
|
136
|
+
|
|
137
|
+
stock_gdfx_top_10_02 = get_stock_gdfx_top_10_em_api(period_02, symbol)
|
|
138
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_02, period_02, symbol_init, str_day)
|
|
139
|
+
|
|
140
|
+
stock_gdfx_top_10_03 = get_stock_gdfx_top_10_em_api(period_03, symbol)
|
|
141
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_03, period_03, symbol_init, str_day)
|
|
85
142
|
elif 10 < month <= 12:
|
|
143
|
+
# 十大流通股东
|
|
86
144
|
period_03 = str(year) + three
|
|
87
145
|
stock_gdfx_free_top_10_03 = get_stock_gdfx_free_top_10_em_api(period_03, symbol)
|
|
88
146
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_03, period_03, symbol_init, str_day)
|
|
@@ -90,18 +148,39 @@ def get_stock_gdfx_free_top_10_em(str_day, symbol):
|
|
|
90
148
|
stock_gdfx_free_top_10_04 = get_stock_gdfx_free_top_10_em_api(period_04, symbol)
|
|
91
149
|
sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_04, period_04, symbol_init, str_day)
|
|
92
150
|
|
|
151
|
+
# 十大股东
|
|
152
|
+
stock_gdfx_top_10_03 = get_stock_gdfx_top_10_em_api(period_03, symbol)
|
|
153
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_03, period_03, symbol_init, str_day)
|
|
154
|
+
|
|
155
|
+
stock_gdfx_top_10_04 = get_stock_gdfx_top_10_em_api(period_04, symbol)
|
|
156
|
+
sync_stock_gdfx_top_10(stock_gdfx_top_10_04, period_04, symbol_init, str_day)
|
|
93
157
|
|
|
158
|
+
|
|
159
|
+
# 保存10大流通股东
|
|
94
160
|
def sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_em_df, period, symbol, str_day):
|
|
95
161
|
if stock_gdfx_free_top_10_em_df is not None and stock_gdfx_free_top_10_em_df.shape[0] > 0:
|
|
96
162
|
stock_gdfx_free_top_10_em_df['str_day'] = str_day
|
|
97
163
|
stock_gdfx_free_top_10_em_df['symbol'] = symbol
|
|
98
164
|
stock_gdfx_free_top_10_em_df['_id'] = symbol + '_' + stock_gdfx_free_top_10_em_df.index + '_' + period
|
|
99
165
|
stock_gdfx_free_top_10_em_df['period'] = period
|
|
100
|
-
mongodb_util.save_mongo(stock_gdfx_free_top_10_em_df,
|
|
166
|
+
mongodb_util.save_mongo(stock_gdfx_free_top_10_em_df, db_name_constant.STOCK_GDFX_FREE_TOP_10)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
# 保存10大股东
|
|
170
|
+
def sync_stock_gdfx_top_10(stock_gdfx_top_10_em_df, period, symbol, str_day):
|
|
171
|
+
if stock_gdfx_top_10_em_df is not None and stock_gdfx_top_10_em_df.shape[0] > 0:
|
|
172
|
+
stock_gdfx_top_10_em_df['str_day'] = str_day
|
|
173
|
+
stock_gdfx_top_10_em_df['symbol'] = symbol
|
|
174
|
+
stock_gdfx_top_10_em_df['_id'] = symbol + '_' + stock_gdfx_top_10_em_df.index + '_' + period
|
|
175
|
+
stock_gdfx_top_10_em_df['period'] = period
|
|
176
|
+
mongodb_util.save_mongo(stock_gdfx_top_10_em_df, db_name_constant.STOCK_GDFX_TOP_10)
|
|
101
177
|
|
|
102
178
|
|
|
179
|
+
# 十大股东+十大流通股东
|
|
103
180
|
def sync_stock_gdfx_free_top_10_one_day(str_day):
|
|
104
181
|
real_time_quotes = east_money_stock_api.get_real_time_quotes_all_stocks()
|
|
182
|
+
real_time_quotes = real_time_quotes.loc[~(
|
|
183
|
+
real_time_quotes['symbol'].isin(company_common_service_new_api.get_de_list_company()))]
|
|
105
184
|
for real_time_one in real_time_quotes.itertuples():
|
|
106
185
|
try:
|
|
107
186
|
get_stock_gdfx_free_top_10_em(str_day, real_time_one.symbol)
|
|
@@ -113,6 +192,6 @@ from datetime import datetime
|
|
|
113
192
|
|
|
114
193
|
if __name__ == '__main__':
|
|
115
194
|
now_date = datetime.now()
|
|
116
|
-
|
|
195
|
+
str_day_test = now_date.strftime('%Y-%m-%d')
|
|
117
196
|
logger.info('同步所有股票前十大流通股本')
|
|
118
|
-
sync_stock_gdfx_free_top_10_one_day(
|
|
197
|
+
sync_stock_gdfx_free_top_10_one_day(str_day_test)
|
|
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
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/common/kpl_common_field_constant.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.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/selection/kpl_selection_plate_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/kpl/symbol/kpl_real_time_quotes_api.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/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
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/company/ths_company_announce_api.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/company/ths_company_info_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/app/ths_concept_detail_app.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/app/ths_concept_index_app.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_common_js_api.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_company_info_web.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_concept_detail_web.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/api/ths/concept/web/ths_concept_index_web.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/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
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/classify/symbol_classify_api.py
RENAMED
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/classify/symbol_classify_param.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/company/company_common_service_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/mns_common/component/cookie/cookie_info_service.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.9.6 → mns_common-1.2.9.7}/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.9.6 → mns_common-1.2.9.7}/mns_common/component/k_line/patterns/pattern_Enum.py
RENAMED
|
File without changes
|
|
File without changes
|
{mns_common-1.2.9.6 → mns_common-1.2.9.7}/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.9.6 → mns_common-1.2.9.7}/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
|
|
File without changes
|
|
File without changes
|