mns-scheduler 1.4.0.3__py3-none-any.whl → 1.4.0.5__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-scheduler might be problematic. Click here for more details.
- mns_scheduler/finance/xue_qiu/sync_xue_qiu_fiance_data.py +4 -5
- {mns_scheduler-1.4.0.3.dist-info → mns_scheduler-1.4.0.5.dist-info}/METADATA +1 -1
- {mns_scheduler-1.4.0.3.dist-info → mns_scheduler-1.4.0.5.dist-info}/RECORD +5 -5
- {mns_scheduler-1.4.0.3.dist-info → mns_scheduler-1.4.0.5.dist-info}/WHEEL +0 -0
- {mns_scheduler-1.4.0.3.dist-info → mns_scheduler-1.4.0.5.dist-info}/top_level.txt +0 -0
|
@@ -16,6 +16,7 @@ import time
|
|
|
16
16
|
import mns_common.utils.data_frame_util as data_frame_util
|
|
17
17
|
import mns_common.component.cookie.cookie_info_service as cookie_info_service
|
|
18
18
|
from datetime import datetime
|
|
19
|
+
import mns_common.component.em.em_stock_info_api as em_stock_info_api
|
|
19
20
|
|
|
20
21
|
mongodb_util_27017 = MongodbUtil('27017')
|
|
21
22
|
|
|
@@ -25,9 +26,7 @@ mongodb_util_27017 = MongodbUtil('27017')
|
|
|
25
26
|
# balance 资产负债
|
|
26
27
|
# 同步所有股票 报表
|
|
27
28
|
def sync_all_stocks_report():
|
|
28
|
-
em_a_stock_info_df =
|
|
29
|
-
em_a_stock_info_df = em_a_stock_info_df[~em_a_stock_info_df['symbol'].astype(str).str.startswith(('8', '4'))]
|
|
30
|
-
|
|
29
|
+
em_a_stock_info_df = em_stock_info_api.get_a_stock_info()
|
|
31
30
|
em_a_stock_info_df = common_service_fun_api.add_pre_prefix(em_a_stock_info_df)
|
|
32
31
|
# 或等效写法 df['A'].str[0:6]
|
|
33
32
|
|
|
@@ -124,7 +123,7 @@ def save_one_symbol_data(stock_one, report_type_list, xue_qiu_cookie, save_tag,
|
|
|
124
123
|
|
|
125
124
|
if symbol in fail_list:
|
|
126
125
|
fail_list.remove(symbol)
|
|
127
|
-
logger.info("
|
|
126
|
+
logger.info("同步财务数据完成:{}:{}", symbol, name, report_name)
|
|
128
127
|
except BaseException as e:
|
|
129
128
|
logger.error("同步错误:{},异常信息:{}", symbol, e)
|
|
130
129
|
fail_list.append(symbol)
|
|
@@ -132,7 +131,7 @@ def save_one_symbol_data(stock_one, report_type_list, xue_qiu_cookie, save_tag,
|
|
|
132
131
|
|
|
133
132
|
|
|
134
133
|
def sync_xue_qiu_very_period_report(report_name, symbol):
|
|
135
|
-
em_a_stock_info_df =
|
|
134
|
+
em_a_stock_info_df = em_stock_info_api.get_a_stock_info()
|
|
136
135
|
if symbol is not None:
|
|
137
136
|
em_a_stock_info_df = em_a_stock_info_df.loc[em_a_stock_info_df['symbol'] == symbol]
|
|
138
137
|
em_a_stock_info_df = common_service_fun_api.add_pre_prefix(em_a_stock_info_df)
|
|
@@ -58,7 +58,7 @@ mns_scheduler/finance/em/em_financial_profit_sync_service_api.py,sha256=j5xnzcSt
|
|
|
58
58
|
mns_scheduler/finance/em/finance_common_api.py,sha256=rqsVJZEklJjvM9ogl-9GQaWxyh1LE6IKoTkQkN5cBvE,2453
|
|
59
59
|
mns_scheduler/finance/xue_qiu/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
60
60
|
mns_scheduler/finance/xue_qiu/down_load_xueqiu_report_api.py,sha256=r_RtfM2SBzQcvO1MH8Dt8mOXg2tbZOLz0sNwqne9jFs,2769
|
|
61
|
-
mns_scheduler/finance/xue_qiu/sync_xue_qiu_fiance_data.py,sha256=
|
|
61
|
+
mns_scheduler/finance/xue_qiu/sync_xue_qiu_fiance_data.py,sha256=aRqNPqnyCP_sKl7afdk3Xrfa9IRCbU6MDK3_AlxTDBQ,7218
|
|
62
62
|
mns_scheduler/hk/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
63
63
|
mns_scheduler/hk/hk_company_info_sync_service_api.py,sha256=MGIKodN9oXaY0iwtdsrg4wwHXkMglFvY8eyeTpbas6k,3724
|
|
64
64
|
mns_scheduler/hk/hk_industry_info_sync_service_api.py,sha256=WdCTaBi4GDicWfmiYbI-byBCXZwknkYZHk6y2IloMys,2275
|
|
@@ -165,7 +165,7 @@ mns_scheduler/zz_task/data_sync_task.py,sha256=V17cYsn_NxmbJoPG_AFcqrps1XzQF-wMP
|
|
|
165
165
|
mns_scheduler/zz_task/compensation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
166
166
|
mns_scheduler/zz_task/compensation/compensate_task.py,sha256=Dyo66NcSnXZ-Cne4_v77BBb27SemAiuGXRLnvQ26X0E,6464
|
|
167
167
|
mns_scheduler/zz_task/compensation/compensate_task_one_day.py,sha256=ize69Ocy1k5rf8Xckk1izcEJ361HBtWH1zoJrScBS28,5751
|
|
168
|
-
mns_scheduler-1.4.0.
|
|
169
|
-
mns_scheduler-1.4.0.
|
|
170
|
-
mns_scheduler-1.4.0.
|
|
171
|
-
mns_scheduler-1.4.0.
|
|
168
|
+
mns_scheduler-1.4.0.5.dist-info/METADATA,sha256=CxhSPnXvDCJBDcumn8hJiZ0n6OWCEI12bWRHybzTLUs,64
|
|
169
|
+
mns_scheduler-1.4.0.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
170
|
+
mns_scheduler-1.4.0.5.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
|
|
171
|
+
mns_scheduler-1.4.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|