mns-scheduler 1.3.2.6__py3-none-any.whl → 1.3.2.7__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/zt/zt_pool/ths_zt_pool_sync_api.py +6 -7
- {mns_scheduler-1.3.2.6.dist-info → mns_scheduler-1.3.2.7.dist-info}/METADATA +1 -1
- {mns_scheduler-1.3.2.6.dist-info → mns_scheduler-1.3.2.7.dist-info}/RECORD +5 -5
- {mns_scheduler-1.3.2.6.dist-info → mns_scheduler-1.3.2.7.dist-info}/WHEEL +0 -0
- {mns_scheduler-1.3.2.6.dist-info → mns_scheduler-1.3.2.7.dist-info}/top_level.txt +0 -0
|
@@ -9,12 +9,9 @@ import mns_common.api.ths.zt.ths_stock_zt_pool_api as ths_stock_zt_pool_api
|
|
|
9
9
|
from datetime import datetime
|
|
10
10
|
import mns_common.utils.data_frame_util as data_frame_util
|
|
11
11
|
import pandas as pd
|
|
12
|
-
import mns_common.component.em.em_stock_info_api as em_stock_info_api
|
|
13
12
|
import mns_common.component.company.company_common_service_new_api as company_common_service_new_api
|
|
14
13
|
import mns_common.component.common_service_fun_api as common_service_fun_api
|
|
15
14
|
from loguru import logger
|
|
16
|
-
import mns_scheduler.k_line.common.k_line_common_api as k_line_common_api
|
|
17
|
-
import mns_common.api.akshare.k_line_api as k_line_api
|
|
18
15
|
import mns_common.utils.date_handle_util as date_handle_util
|
|
19
16
|
from mns_common.db.MongodbUtil import MongodbUtil
|
|
20
17
|
import mns_common.constant.db_name_constant as db_name_constant
|
|
@@ -101,7 +98,7 @@ def merge_his_day_zt_info(ths_zt_pool_df, str_day):
|
|
|
101
98
|
def get_bfq_daily_line(ths_zt_pool_df, str_day):
|
|
102
99
|
query_k_line = {'symbol': {"$in": list(ths_zt_pool_df['symbol'])}, 'date': date_handle_util.no_slash_date(str_day)}
|
|
103
100
|
bfq_daily_line_df = mongodb_util.find_query_data('stock_bfq_daily', query_k_line)
|
|
104
|
-
if bfq_daily_line_df.shape[0]
|
|
101
|
+
if bfq_daily_line_df.shape[0] >= ths_zt_pool_df.shape[0]:
|
|
105
102
|
bfq_daily_line_df = bfq_daily_line_df[['amount', 'chg', 'close', 'exchange',
|
|
106
103
|
'symbol', 'amount_level',
|
|
107
104
|
'flow_mv', 'flow_mv_sp'
|
|
@@ -118,6 +115,9 @@ def get_bfq_daily_line(ths_zt_pool_df, str_day):
|
|
|
118
115
|
|
|
119
116
|
if data_frame_util.is_empty(bfq_daily_line_df):
|
|
120
117
|
continue
|
|
118
|
+
|
|
119
|
+
bfq_daily_line_df = bfq_daily_line_df.loc[bfq_daily_line_df['date'] == date_handle_util.no_slash_date(str_day)]
|
|
120
|
+
|
|
121
121
|
bfq_daily_line_df = bfq_daily_line_df[['amount', 'chg', 'close', 'exchange',
|
|
122
122
|
'symbol', 'amount_level',
|
|
123
123
|
'flow_mv', 'flow_mv_sp'
|
|
@@ -126,7 +126,7 @@ def get_bfq_daily_line(ths_zt_pool_df, str_day):
|
|
|
126
126
|
bfq_k_line_df = pd.concat([bfq_k_line_df, bfq_daily_line_df])
|
|
127
127
|
except BaseException as e:
|
|
128
128
|
logger.warning("同步不复权k线异常:{},{}", symbol, e)
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
return bfq_k_line_df
|
|
131
131
|
|
|
132
132
|
|
|
@@ -187,7 +187,6 @@ if __name__ == '__main__':
|
|
|
187
187
|
# trade_date = '2024-08-01'
|
|
188
188
|
# zt_df = ths_zt_pool(trade_date, None)
|
|
189
189
|
# save_ths_zt_pool(zt_df, trade_date)
|
|
190
|
-
trade_date = '2025-
|
|
190
|
+
trade_date = '2025-06-06'
|
|
191
191
|
ths_zt_pool_df_test = ths_zt_pool(trade_date, None)
|
|
192
|
-
get_bfq_daily_line(ths_zt_pool_df_test, trade_date)
|
|
193
192
|
save_ths_zt_pool(ths_zt_pool_df_test, trade_date)
|
|
@@ -152,11 +152,11 @@ mns_scheduler/zt/script/sync_high_chg_pool_his_data.py,sha256=xzfjlwNqsiDQqkTTma
|
|
|
152
152
|
mns_scheduler/zt/script/sync_now_higt_chg_zt.py,sha256=7qUtn58ty9Vc6kY33BooCDIOojDGmSf9U5ncAtZt4cc,1853
|
|
153
153
|
mns_scheduler/zt/zt_pool/__init__.py,sha256=Tyvi_iQlv3jz59EdH67Mycnt9CSixcWPQoJwu55bOq0,165
|
|
154
154
|
mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py,sha256=LOEUyTA5g7N6FWxUpHWimWTeXiiMAnUdsYqhG4HpuOY,12154
|
|
155
|
-
mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=
|
|
155
|
+
mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=cvGWiHDqbdpC2izhKAPe94A0CVV-GbKlN9ZgVL9bArA,7403
|
|
156
156
|
mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py,sha256=caW-MuF0RFLavJZafeLDYQ29-GxwGsmr5YVrN4lost8,2135
|
|
157
157
|
mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
|
|
158
158
|
mns_scheduler/zz_task/data_sync_task.py,sha256=18MI6OyWS97LvD_fj717St3gfJC4NNrA1lyKn_OteHc,23150
|
|
159
|
-
mns_scheduler-1.3.2.
|
|
160
|
-
mns_scheduler-1.3.2.
|
|
161
|
-
mns_scheduler-1.3.2.
|
|
162
|
-
mns_scheduler-1.3.2.
|
|
159
|
+
mns_scheduler-1.3.2.7.dist-info/METADATA,sha256=5iMA89Yqccfy26OxCiwXortQOY-e7enDDLSi4OmixiA,64
|
|
160
|
+
mns_scheduler-1.3.2.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
161
|
+
mns_scheduler-1.3.2.7.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
|
|
162
|
+
mns_scheduler-1.3.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|