mns-scheduler 1.3.1.2__py3-none-any.whl → 1.3.1.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.

Files changed (146) hide show
  1. mns_scheduler/baidu/__init__.py +1 -1
  2. mns_scheduler/baidu/baidu_yun_pan_handle_service.py +2 -2
  3. mns_scheduler/company_info/announce/__init__.py +1 -1
  4. mns_scheduler/company_info/announce/company_announce_sync_service.py +1 -1
  5. mns_scheduler/company_info/base/__init__.py +1 -1
  6. mns_scheduler/company_info/base/sync_company_hold_info_api.py +1 -1
  7. mns_scheduler/company_info/clean/__init__.py +1 -1
  8. mns_scheduler/company_info/clean/company_info_clean_api.py +1 -1
  9. mns_scheduler/company_info/constant/__init__.py +1 -1
  10. mns_scheduler/company_info/de_list_stock/__init__.py +1 -1
  11. mns_scheduler/company_info/de_list_stock/de_list_stock_service.py +1 -1
  12. mns_scheduler/company_info/em_stock_info/__init__.py +1 -1
  13. mns_scheduler/company_info/em_stock_info/sync_em_stock_info_sync.py +8 -3
  14. mns_scheduler/company_info/remark/__init__.py +1 -1
  15. mns_scheduler/company_info/remark/company_remark_info_sync.py +1 -1
  16. mns_scheduler/concept/clean/kpl_concept_clean_api.py +1 -1
  17. mns_scheduler/db/script/__init__.py +1 -1
  18. mns_scheduler/db/script/col_move_script.py +1 -1
  19. mns_scheduler/db/script/db_move/__init__.py +1 -1
  20. mns_scheduler/db/script/db_move/col_move_one_service.py +1 -1
  21. mns_scheduler/db/script/sync/__init__.py +1 -1
  22. mns_scheduler/db/script/sync/remote_data_sync_to_local.py +1 -1
  23. mns_scheduler/db/script/sync/sync_hui_ce_test_data.py +1 -1
  24. mns_scheduler/db/script/sync/sync_hui_ce_test_data_01.py +1 -1
  25. mns_scheduler/db/script/update/__init__.py +1 -1
  26. mns_scheduler/db/script/update/update_col_field.py +1 -1
  27. mns_scheduler/debt/__init__.py +1 -1
  28. mns_scheduler/debt/kzz_bond_info_sync.py +1 -1
  29. mns_scheduler/extraIncome/__init__.py +1 -1
  30. mns_scheduler/extraIncome/a_stock/__init__.py +1 -1
  31. mns_scheduler/extraIncome/a_stock/one_minute/__init__.py +1 -1
  32. mns_scheduler/extraIncome/a_stock/one_minute/common/__init__.py +1 -1
  33. mns_scheduler/extraIncome/a_stock/one_minute/common/symbol_handle_util.py +1 -1
  34. mns_scheduler/extraIncome/a_stock/one_minute/etf/__init__.py +1 -1
  35. mns_scheduler/extraIncome/a_stock/one_minute/etf/etf_one_minute_sync_task.py +1 -1
  36. mns_scheduler/extraIncome/a_stock/one_minute/index/__init__.py +1 -1
  37. mns_scheduler/extraIncome/a_stock/one_minute/index/main_index_sync_task.py +1 -1
  38. mns_scheduler/extraIncome/a_stock/one_minute/kzz/__init__.py +1 -1
  39. mns_scheduler/extraIncome/a_stock/one_minute/kzz/kzz_one_minute_sync_task.py +1 -1
  40. mns_scheduler/extraIncome/a_stock/one_minute/one_minute_sync_task.py +1 -1
  41. mns_scheduler/extraIncome/a_stock/one_minute/stock/__init__.py +1 -1
  42. mns_scheduler/extraIncome/a_stock/one_minute/stock/stock_one_minute_sync_task.py +1 -1
  43. mns_scheduler/extraIncome/a_stock/one_minute/upload/__init__.py +1 -1
  44. mns_scheduler/extraIncome/a_stock/one_minute/upload/etf_upload_to_baidu_task.py +95 -0
  45. mns_scheduler/extraIncome/a_stock/one_minute/upload/index_upload_to_baidu_task.py +87 -0
  46. mns_scheduler/extraIncome/a_stock/one_minute/upload/kzz_upload_to_baidu_task.py +95 -0
  47. mns_scheduler/extraIncome/a_stock/one_minute/upload/{upload_to_baidu_task.py → stock_upload_to_baidu_task.py} +4 -2
  48. mns_scheduler/extraIncome/hk/__init__.py +1 -1
  49. mns_scheduler/extraIncome/hk/hk_stock_qfq_daily_k_line.py +1 -1
  50. mns_scheduler/extraIncome/us/__init__.py +1 -1
  51. mns_scheduler/extraIncome/us/daily/__init__.py +1 -1
  52. mns_scheduler/extraIncome/us/daily/us_stock_qfq_daily_k_line.py +1 -1
  53. mns_scheduler/extraIncome/us/one_minute/__init__.py +1 -1
  54. mns_scheduler/extraIncome/us/one_minute/api/__init__.py +0 -7
  55. mns_scheduler/extraIncome/us/one_minute/api/alpha_vantage_api.py +2 -2
  56. mns_scheduler/extraIncome/us/one_minute/api/em_us_one_minute_api.py +139 -0
  57. mns_scheduler/extraIncome/us/one_minute/api/stock_etf_info_api.py +68 -0
  58. mns_scheduler/extraIncome/us/one_minute/api/y_finance_api.py +25 -9
  59. mns_scheduler/extraIncome/us/one_minute/etf/__init__.py +1 -1
  60. mns_scheduler/extraIncome/us/one_minute/stock/__init__.py +1 -1
  61. mns_scheduler/extraIncome/us/one_minute/stock/down_load/__init__.py +1 -1
  62. mns_scheduler/extraIncome/us/one_minute/stock/down_load/etf/__init__.py +5 -1
  63. mns_scheduler/extraIncome/us/one_minute/stock/down_load/etf/down_load_ETF_his_2024.py +1 -1
  64. mns_scheduler/extraIncome/us/one_minute/stock/down_load/etf/handle_down_load_fail_ETF.py +1 -1
  65. mns_scheduler/extraIncome/us/one_minute/stock/down_load/fail/handle_fail_data.py +161 -0
  66. mns_scheduler/extraIncome/us/one_minute/stock/down_load/rename/__init__.py +7 -0
  67. mns_scheduler/extraIncome/us/one_minute/stock/down_load/rename/rename_stock.py +18 -0
  68. mns_scheduler/extraIncome/us/one_minute/stock/down_load/stock/__init__.py +7 -0
  69. mns_scheduler/extraIncome/us/one_minute/stock/down_load/stock/down_load_stock_his_01.py +203 -0
  70. mns_scheduler/extraIncome/us/one_minute/stock/down_load/{down_load_stock_his_2024_02.py → stock/down_load_stock_his_02.py} +65 -16
  71. mns_scheduler/extraIncome/us/one_minute/stock/down_load/{down_load_stock_his_2024_01.py → stock/down_load_stock_his_2025.py} +10 -11
  72. mns_scheduler/extraIncome/us/one_minute/stock/now/__init__.py +7 -0
  73. mns_scheduler/extraIncome/us/one_minute/stock/now/us_etf_one_minute_sync.py +52 -0
  74. mns_scheduler/extraIncome/us/one_minute/stock/now/us_stock_one_minute_sync.py +141 -0
  75. mns_scheduler/finance/__init__.py +1 -1
  76. mns_scheduler/finance/em_financial_asset_liability_sync_service_api.py +1 -1
  77. mns_scheduler/finance/em_financial_profit_sync_service_api.py +1 -1
  78. mns_scheduler/finance/finance_common_api.py +1 -1
  79. mns_scheduler/finance/sync_financial_report_service_api.py +1 -1
  80. mns_scheduler/hk/__init__.py +1 -1
  81. mns_scheduler/hk/hk_company_info_sync_service_api.py +1 -1
  82. mns_scheduler/hk/hk_industry_info_sync_service_api.py +1 -1
  83. mns_scheduler/industry/__init__.py +1 -1
  84. mns_scheduler/industry/ths/__init__.py +1 -1
  85. mns_scheduler/industry/ths/ths_industry_index_service.py +1 -1
  86. mns_scheduler/industry/ths/ths_industry_sync_service.py +1 -1
  87. mns_scheduler/irm/__init__.py +1 -1
  88. mns_scheduler/irm/api/__init__.py +1 -1
  89. mns_scheduler/irm/api/sh_stock_sns_sse_info_api.py +1 -1
  90. mns_scheduler/irm/api/sz_stock_sns_sse_info_api.py +1 -1
  91. mns_scheduler/irm/stock_irm_cninfo_service.py +1 -1
  92. mns_scheduler/k_line/clean/daily/__init__.py +1 -1
  93. mns_scheduler/k_line/clean/daily/daily_k_line_clean_common_service.py +1 -1
  94. mns_scheduler/k_line/clean/daily/daily_k_line_service.py +1 -1
  95. mns_scheduler/k_line/clean/week_month/__init__.py +1 -1
  96. mns_scheduler/k_line/clean/week_month/normal_week_month_k_line_service.py +1 -1
  97. mns_scheduler/k_line/clean/week_month/sub_new_week_month_k_line_service.py +1 -1
  98. mns_scheduler/k_line/hot_stocks/__init__.py +1 -1
  99. mns_scheduler/k_line/hot_stocks/recent_hot_stocks_clean_service.py +1 -1
  100. mns_scheduler/k_line/test/__init__.py +1 -1
  101. mns_scheduler/k_line/test/k_line_info_clean_his_data.py +1 -1
  102. mns_scheduler/k_line/year_quarter/__init__.py +1 -1
  103. mns_scheduler/k_line/year_quarter/year_quarter_line_sync.py +1 -1
  104. mns_scheduler/lhb/__init__.py +1 -1
  105. mns_scheduler/lhb/stock_lhb_sync_service.py +1 -1
  106. mns_scheduler/open/__init__.py +1 -1
  107. mns_scheduler/open/sync_one_day_open_data_to_db_service.py +1 -1
  108. mns_scheduler/risk/__init__.py +1 -1
  109. mns_scheduler/risk/financial/annual_report_audit_check_api.py +1 -1
  110. mns_scheduler/risk/financial/profit_income_check_api.py +1 -1
  111. mns_scheduler/risk/financial_report_risk_check_api.py +1 -1
  112. mns_scheduler/risk/major_violations/register_and_investigate_stock_sync_api.py +1 -1
  113. mns_scheduler/risk/self/wei_pan_stock_api.py +1 -1
  114. mns_scheduler/risk/test/__init__.py +1 -1
  115. mns_scheduler/risk/test/fix_blask_list.py +1 -1
  116. mns_scheduler/risk/transactions/transactions_check_api.py +1 -1
  117. mns_scheduler/self_choose/__init__.py +1 -1
  118. mns_scheduler/self_choose/ths_self_choose_service.py +1 -1
  119. mns_scheduler/trade/auto_login/trader_auto_service.py +1 -1
  120. mns_scheduler/trade/auto_sell_service_api.py +2 -2
  121. mns_scheduler/trade/balance/__init__.py +1 -1
  122. mns_scheduler/trade/balance/ths_account_balance_service.py +1 -1
  123. mns_scheduler/trade/sync_position_api.py +1 -1
  124. mns_scheduler/trade/task/trader_task_service.py +1 -1
  125. mns_scheduler/trade/tfp/__init__.py +1 -1
  126. mns_scheduler/trade/tfp/stock_tfp_info_sync.py +1 -1
  127. mns_scheduler/us/__init__.py +1 -1
  128. mns_scheduler/us/baidu_yun_pan_handle_service.py +1 -1
  129. mns_scheduler/us/us_company_info_sync_service_api.py +1 -1
  130. mns_scheduler/zt/script/__init__.py +1 -1
  131. mns_scheduler/zt/script/fix_error_deal_day.py +1 -1
  132. mns_scheduler/zt/script/kcx_high_chg_open_his_data_handle.py +1 -1
  133. mns_scheduler/zt/script/sync_high_chg_pool_his_data.py +1 -1
  134. mns_scheduler/zt/script/sync_now_higt_chg_zt.py +1 -1
  135. mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py +9 -7
  136. mns_scheduler/zt/zt_pool/update_null_zt_reason_api.py +1 -1
  137. mns_scheduler/zz_task/data_sync_task.py +13 -3
  138. {mns_scheduler-1.3.1.2.dist-info → mns_scheduler-1.3.1.7.dist-info}/METADATA +1 -1
  139. mns_scheduler-1.3.1.7.dist-info/RECORD +214 -0
  140. mns_scheduler/extraIncome/us/one_minute/stock/his/us_stock_one_minute_his.py +0 -199
  141. mns_scheduler/extraIncome/us/one_minute/stock/his/us_stock_one_minute_his_2024.py +0 -212
  142. mns_scheduler/extraIncome/us/one_minute/stock/us_stock_one_minute_task.py +0 -26
  143. mns_scheduler-1.3.1.2.dist-info/RECORD +0 -204
  144. /mns_scheduler/extraIncome/us/one_minute/stock/{his → down_load/fail}/__init__.py +0 -0
  145. {mns_scheduler-1.3.1.2.dist-info → mns_scheduler-1.3.1.7.dist-info}/WHEEL +0 -0
  146. {mns_scheduler-1.3.1.2.dist-info → mns_scheduler-1.3.1.7.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,141 @@
1
+ import os
2
+ import sys
3
+
4
+ file_path = os.path.abspath(__file__)
5
+ end = file_path.index('mns') + 17
6
+ project_path = file_path[0:end]
7
+ sys.path.append(project_path)
8
+ from loguru import logger
9
+ import mns_common.utils.data_frame_util as data_frame_util
10
+ from mns_common.db.MongodbUtil import MongodbUtil
11
+ from mns_common.db.v2.MongodbUtilV2 import MongodbUtilV2
12
+ import mns_scheduler.extraIncome.a_stock.one_minute.common.db_create_index as db_create_index
13
+ import mns_common.constant.extra_income_db_name as extra_income_db_name
14
+ import mns_scheduler.extraIncome.us.one_minute.api.stock_etf_info_api as stock_etf_info_api
15
+ import mns_scheduler.extraIncome.us.one_minute.api.y_finance_api as y_finance_api
16
+ import pandas as pd
17
+ from datetime import datetime, timedelta
18
+ import numpy as np
19
+
20
+ mongodb_util_27017 = MongodbUtil('27017')
21
+ mongodbUtilV2_27019 = MongodbUtilV2('27019', extra_income_db_name.EXTRA_INCOME)
22
+
23
+
24
+ def sync_us_stock_one_minute():
25
+ us_stock_df = stock_etf_info_api.get_us_stock_info()
26
+ us_stock_df = us_stock_df.loc[us_stock_df['amount'] != 0]
27
+
28
+ # 获取当前日期
29
+ current_date = datetime.now()
30
+ year = current_date.year
31
+ col_name = extra_income_db_name.US_STOCK_MINUTE_K_LINE_BFQ + "_" + str(year)
32
+
33
+ # 创建索引
34
+ db_create_index.create_index(mongodbUtilV2_27019, col_name)
35
+
36
+ str_day = current_date.strftime('%Y-%m-%d')
37
+ # 计算七天前的日期 todo 修改时间
38
+ seven_days_ago = current_date - timedelta(days=7)
39
+
40
+ str_seven_days_ago = seven_days_ago.strftime('%Y-%m-%d')
41
+
42
+ save_one_minute_data(us_stock_df, str_day, str_seven_days_ago, col_name, True)
43
+ handle_fail_stocks()
44
+
45
+
46
+ def save_one_minute_data(us_stock_df, str_day, str_seven_days_ago, col_name, save_flag):
47
+ col_name_status = extra_income_db_name.US_STOCK_MINUTE_K_LINE_BFQ + "_status"
48
+ for stock_one in us_stock_df.itertuples():
49
+
50
+ symbol = stock_one.symbol
51
+ name = stock_one.name
52
+ try:
53
+ list_date = stock_one.list_date
54
+ if mongodbUtilV2_27019.exist_data_query(col_name_status, {"str_day": str_day,
55
+ 'symbol': symbol, 'status': 'success'}):
56
+ continue
57
+
58
+ if not np.isnan(list_date):
59
+ list_date = str(int(list_date))
60
+
61
+ date_obj = datetime.strptime(list_date, '%Y%m%d')
62
+ # 格式化为 "YYYY-MM-DD" 或其他格式
63
+ list_date_str = date_obj.strftime('%Y-%m-%d')
64
+
65
+ if list_date_str > str_day:
66
+ continue
67
+ elif list_date_str > str_seven_days_ago:
68
+ str_seven_days_ago = list_date_str
69
+
70
+ us_one_minute_df = y_finance_api.get_us_one_minute(symbol, str_seven_days_ago, str_day)
71
+ us_one_minute_df = us_one_minute_df.fillna(0)
72
+
73
+ us_one_minute_df['_id'] = symbol + '_' + us_one_minute_df['time']
74
+ us_one_minute_df['symbol'] = symbol
75
+ if save_flag:
76
+ mongodbUtilV2_27019.insert_mongo(us_one_minute_df, col_name)
77
+ else:
78
+ mongodbUtilV2_27019.save_mongo(us_one_minute_df, col_name)
79
+
80
+ result_dict = {
81
+ '_id': symbol + "_" + str_day,
82
+ "str_day": str_day,
83
+ 'symbol': symbol,
84
+ 'status': 'success',
85
+
86
+ }
87
+
88
+ result_dict_df = pd.DataFrame(result_dict, index=[1])
89
+ mongodbUtilV2_27019.save_mongo(result_dict_df, col_name_status)
90
+ logger.info("同步美股分钟数据完成:{},{}", symbol, name)
91
+ except BaseException as e:
92
+ result_dict = {
93
+ '_id': symbol + "_" + str_day,
94
+ "str_day": str_day,
95
+ 'symbol': symbol,
96
+ 'status': 'fail',
97
+ }
98
+ result_dict_df = pd.DataFrame(result_dict, index=[1])
99
+ mongodbUtilV2_27019.save_mongo(result_dict_df, col_name_status)
100
+
101
+ logger.error("同步美股分钟数据出现异常:{},{},{}", symbol, name, e)
102
+
103
+
104
+ def handle_fail_stocks():
105
+ us_stock_df = stock_etf_info_api.get_us_stock_info()
106
+
107
+ # 获取当前日期
108
+ current_date = datetime.now()
109
+ str_current_date = current_date.strftime('%Y-%m-%d')
110
+
111
+ query = {'status': 'fail', 'str_day': str_current_date}
112
+ col_name_status = extra_income_db_name.US_STOCK_MINUTE_K_LINE_BFQ + "_status"
113
+ fail_df = mongodbUtilV2_27019.find_query_data(col_name_status, query)
114
+ if data_frame_util.is_empty(fail_df):
115
+ return
116
+ else:
117
+ fail_us_df = us_stock_df.loc[us_stock_df['symbol'].isin(fail_df['symbol'])]
118
+ year = current_date.year
119
+ col_name = extra_income_db_name.US_STOCK_MINUTE_K_LINE_BFQ + "_" + str(year)
120
+
121
+ # 循环7天,每天处理一次
122
+ for days_ago in range(7):
123
+ try:
124
+ # 计算当前处理日期(从今天往前推days_ago天)
125
+ target_date = current_date - timedelta(days=days_ago)
126
+ str_target_date = target_date.strftime('%Y-%m-%d')
127
+
128
+ # 计算前一天日期
129
+ previous_date = target_date - timedelta(days=1)
130
+ str_previous_date = previous_date.strftime('%Y-%m-%d')
131
+
132
+ # 调用保存函数
133
+ save_one_minute_data(fail_us_df, str_target_date, str_previous_date, col_name, False)
134
+ except BaseException as e:
135
+
136
+ logger.error("同步美股分钟数据补偿任务出现异常:{}", e)
137
+
138
+
139
+ if __name__ == '__main__':
140
+ sync_us_stock_one_minute()
141
+
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import akshare as ak
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  from datetime import datetime
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.component.em.em_stock_info_api as em_stock_info_api
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.api.ths.concept.app.ths_concept_index_app as ths_concept_index_app
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_scheduler.industry.ths.ths_industry_index_service as ths_industry_index_service
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  # !/usr/bin/env python
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  # !/usr/bin/env python
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import akshare as ak
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import pandas as pd
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  from mns_common.db.MongodbUtil import MongodbUtil
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  from mns_common.db.MongodbUtil import MongodbUtil
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  from mns_common.db.MongodbUtil import MongodbUtil
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  # 同步当天所有开盘数据
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.component.self_choose.black_list_service_api as black_list_service_api
@@ -9,7 +9,7 @@ from mns_common.db.MongodbUtil import MongodbUtil
9
9
 
10
10
  mongodb_util = MongodbUtil('27017')
11
11
  file_path = os.path.abspath(__file__)
12
- end = file_path.index('mns') + 16
12
+ end = file_path.index('mns') + 17
13
13
  project_path = file_path[0:end]
14
14
  sys.path.append(project_path)
15
15
 
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_scheduler.risk.financial.net_assets_check_api as net_assets_check_api
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import requests
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.component.em.em_stock_info_api as em_stock_info_api
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.api.ths.self_choose.ths_self_choose_api as ths_self_choose_api
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.component.deal.deal_service_api as deal_service_api
@@ -2,7 +2,7 @@ import os
2
2
  import sys
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
 
@@ -115,4 +115,4 @@ if __name__ == '__main__':
115
115
  sell_price_01 = trade_price_service_api.get_trade_price('002336',PriceEnum.SEll_PRICE_LIMIT.price_code)
116
116
  while True:
117
117
  real_time_quotes_now = em_stock_info_api.get_a_stock_info()
118
- auto_sell_stock(real_time_quotes_now)
118
+ auto_sell_stock(real_time_quotes_now)
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.component.deal.deal_service_api as deal_service_api
@@ -2,7 +2,7 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
8
  import mns_common.utils.cmd_util as cmd_util
@@ -2,6 +2,6 @@ import sys
2
2
  import os
3
3
 
4
4
  file_path = os.path.abspath(__file__)
5
- end = file_path.index('mns') + 16
5
+ end = file_path.index('mns') + 17
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)