mns-common 1.3.9.6__py3-none-any.whl → 1.3.9.8__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-common might be problematic. Click here for more details.
- mns_common/component/proxies/proxy_common_api.py +9 -9
- mns_common/constant/extra_income_db_name.py +9 -0
- {mns_common-1.3.9.6.dist-info → mns_common-1.3.9.8.dist-info}/METADATA +1 -1
- {mns_common-1.3.9.6.dist-info → mns_common-1.3.9.8.dist-info}/RECORD +6 -6
- {mns_common-1.3.9.6.dist-info → mns_common-1.3.9.8.dist-info}/WHEEL +0 -0
- {mns_common-1.3.9.6.dist-info → mns_common-1.3.9.8.dist-info}/top_level.txt +0 -0
|
@@ -50,7 +50,7 @@ def generate_proxy_ip(minutes):
|
|
|
50
50
|
secret = list(stock_account_info['account'])[0]
|
|
51
51
|
|
|
52
52
|
now_date = datetime.datetime.now()
|
|
53
|
-
time_to_add = datetime.timedelta(minutes=minutes
|
|
53
|
+
time_to_add = datetime.timedelta(minutes=minutes)
|
|
54
54
|
new_date = now_date + time_to_add
|
|
55
55
|
str_now_date = new_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
56
56
|
|
|
@@ -67,21 +67,21 @@ def generate_proxy_ip(minutes):
|
|
|
67
67
|
return ip
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
def get_proxy_ip(
|
|
70
|
+
def get_proxy_ip(minutes):
|
|
71
71
|
ip_proxy_pool = query_liu_guan_proxy_ip()
|
|
72
72
|
if data_frame_util.is_empty(ip_proxy_pool):
|
|
73
73
|
return generate_proxy_ip(minutes)
|
|
74
74
|
else:
|
|
75
|
-
if check_valid(
|
|
75
|
+
if check_valid(ip_proxy_pool):
|
|
76
76
|
return list(ip_proxy_pool['ip'])[0]
|
|
77
77
|
else:
|
|
78
78
|
return generate_proxy_ip(minutes)
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
if __name__ == '__main__':
|
|
82
|
-
|
|
83
|
-
while True:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
generate_proxy_ip(1)
|
|
83
|
+
# while True:
|
|
84
|
+
# now_date_test = datetime.datetime.now()
|
|
85
|
+
# str_now_date_test = now_date_test.strftime('%Y-%m-%d %H:%M:%S')
|
|
86
|
+
# ip_test = get_proxy_ip(str_now_date_test)
|
|
87
|
+
# print(ip_test)
|
|
@@ -80,3 +80,12 @@ HK_STOCK_MINUTE_K_LINE_BFQ = 'hk_stock_one_minute_k_line_bfq'
|
|
|
80
80
|
|
|
81
81
|
# hk etf 1分钟集合数据
|
|
82
82
|
HK_ETF_MINUTE_K_LINE_BFQ = 'hk_etf_one_minute_k_line_bfq'
|
|
83
|
+
|
|
84
|
+
# 雪球利润表
|
|
85
|
+
XUE_QIU_LRB_INCOME = 'xue_qiu_lrb_income'
|
|
86
|
+
|
|
87
|
+
# 雪球资产负债表
|
|
88
|
+
XUE_QIU_ASSET_DEBT = 'xue_qiu_asset_debt'
|
|
89
|
+
|
|
90
|
+
# 雪球资产现金流量表
|
|
91
|
+
XUE_QIU_CASH_FLOW = 'xue_qiu_cash_flow'
|
|
@@ -113,7 +113,7 @@ mns_common/component/k_line/patterns/pattern_Enum.py,sha256=bl8cH1H3BWdj_deVO124
|
|
|
113
113
|
mns_common/component/price/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
114
114
|
mns_common/component/price/trade_price_service_api.py,sha256=0loBjbOt__o-ngc2Q4n5lF8_0x2WINRpL-cH1341Uaw,4396
|
|
115
115
|
mns_common/component/proxies/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
116
|
-
mns_common/component/proxies/proxy_common_api.py,sha256=
|
|
116
|
+
mns_common/component/proxies/proxy_common_api.py,sha256=TqHdbJM4e6Y5aHSsDB8wYXtcaYIbqjrOn9mxrLtbC_w,2763
|
|
117
117
|
mns_common/component/qmt/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
118
118
|
mns_common/component/qmt/qmt_buy_service.py,sha256=tLTgrSxCcxuMhADRBBrW4ZWR_3MdbMZvvMdH5hbwyJU,7190
|
|
119
119
|
mns_common/component/real_time/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -135,7 +135,7 @@ mns_common/constant/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6T
|
|
|
135
135
|
mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
|
|
136
136
|
mns_common/constant/db_name_constant.py,sha256=uOwqzlLoTweqlwyAK4MkXB2fXi7-9JT5sxrvo_UI-Y8,4670
|
|
137
137
|
mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
|
|
138
|
-
mns_common/constant/extra_income_db_name.py,sha256=
|
|
138
|
+
mns_common/constant/extra_income_db_name.py,sha256=mgU6vFq1EV_FSD6SMQNTa9WT4ZNwGBpqA5PBiQgLV4U,2338
|
|
139
139
|
mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
|
|
140
140
|
mns_common/constant/redis_msg_constant.py,sha256=fMtI_WbJ2IkMX4qGwvR5MkMO0NqU8XgUUZqQzHIRscU,501
|
|
141
141
|
mns_common/constant/self_choose_constant.py,sha256=Xnzp9cn5x5_UdqF4gozSDErkzafnbCYBjDH8YpTEU84,777
|
|
@@ -152,7 +152,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
|
|
|
152
152
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
153
153
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
154
154
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
155
|
-
mns_common-1.3.9.
|
|
156
|
-
mns_common-1.3.9.
|
|
157
|
-
mns_common-1.3.9.
|
|
158
|
-
mns_common-1.3.9.
|
|
155
|
+
mns_common-1.3.9.8.dist-info/METADATA,sha256=58B8LAPT3KMbtKZqoNSVH6EyONeCZotHdbCD3kJ6hmg,61
|
|
156
|
+
mns_common-1.3.9.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
157
|
+
mns_common-1.3.9.8.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
158
|
+
mns_common-1.3.9.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|