mns-common 1.2.3.9__py3-none-any.whl → 1.2.4.1__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/data/data_init_api.py +3 -1
- mns_common/component/self_choose/self_choose_service_api.py +29 -0
- {mns_common-1.2.3.9.dist-info → mns_common-1.2.4.1.dist-info}/METADATA +1 -1
- {mns_common-1.2.3.9.dist-info → mns_common-1.2.4.1.dist-info}/RECORD +6 -6
- {mns_common-1.2.3.9.dist-info → mns_common-1.2.4.1.dist-info}/WHEEL +0 -0
- {mns_common-1.2.3.9.dist-info → mns_common-1.2.4.1.dist-info}/top_level.txt +0 -0
|
@@ -6,7 +6,6 @@ end = file_path.index('mns') + 13
|
|
|
6
6
|
project_path = file_path[0:end]
|
|
7
7
|
sys.path.append(project_path)
|
|
8
8
|
|
|
9
|
-
import pandas as pd
|
|
10
9
|
import mns_common.component.common_service_fun_api as common_service_fun_api
|
|
11
10
|
|
|
12
11
|
|
|
@@ -39,6 +38,9 @@ def calculate_parameter_factor(real_time_quotes_now):
|
|
|
39
38
|
# real_time_quotes_now['disk_diff_share_exchange'] = (real_time_quotes_now['disk_diff_share']
|
|
40
39
|
# / real_time_quotes_now[
|
|
41
40
|
# 'flow_share']) * 1000
|
|
41
|
+
real_time_quotes_now['mv_circulation_ratio'] = real_time_quotes_now['mv_circulation_ratio'].fillna(1)
|
|
42
|
+
|
|
43
|
+
real_time_quotes_now['mv_circulation_ratio'] = real_time_quotes_now['mv_circulation_ratio'].replace('', 1)
|
|
42
44
|
|
|
43
45
|
real_time_quotes_now['disk_diff_amount_exchange'] = round(
|
|
44
46
|
(real_time_quotes_now['disk_diff_amount'] / real_time_quotes_now['flow_mv']) * 1000, 2)
|
|
@@ -10,6 +10,8 @@ from mns_common.db.MongodbUtil import MongodbUtil
|
|
|
10
10
|
mongodb_util = MongodbUtil('27017')
|
|
11
11
|
import mns_common.constant.db_name_constant as db_name_constant
|
|
12
12
|
from functools import lru_cache
|
|
13
|
+
import requests
|
|
14
|
+
import mns_common.constant.self_choose_constant as self_choose_constant
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
# 获取自选板块信息
|
|
@@ -29,3 +31,30 @@ def get_self_choose_stocks():
|
|
|
29
31
|
def clear_self_choose_cache():
|
|
30
32
|
get_self_choose_stocks.cache_clear()
|
|
31
33
|
get_self_choose_plate_list.cache_clear()
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# 同花顺概念添加到客户端
|
|
37
|
+
def ths_concept_add(self_code):
|
|
38
|
+
total_url = "http://127.0.0.1:5000/api/self/choose/plate/add"
|
|
39
|
+
headers = {
|
|
40
|
+
"Content-Type": "application/json"
|
|
41
|
+
}
|
|
42
|
+
param = {
|
|
43
|
+
"self_code": self_code,
|
|
44
|
+
"self_type": self_choose_constant.SELF_CHOOSE_THS_CONCEPT
|
|
45
|
+
}
|
|
46
|
+
return requests.post(total_url, data=param, headers=headers)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# 个股添加
|
|
50
|
+
def symbol_add(symbol, name):
|
|
51
|
+
total_url = "http://127.0.0.1:5000/api/self/choose/stock/add"
|
|
52
|
+
headers = {
|
|
53
|
+
"Content-Type": "application/json"
|
|
54
|
+
}
|
|
55
|
+
param = {
|
|
56
|
+
"symbol": symbol,
|
|
57
|
+
"choose_reason": '',
|
|
58
|
+
"name": name
|
|
59
|
+
}
|
|
60
|
+
return requests.post(total_url, data=param, headers=headers)
|
|
@@ -64,7 +64,7 @@ mns_common/component/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALv
|
|
|
64
64
|
mns_common/component/concept/kpl_concept_common_service_api.py,sha256=Ruc3INOhVjB0X1LeMRX0zL3uhv9OLweG2hj6wkZffow,3235
|
|
65
65
|
mns_common/component/concept/ths_concept_common_service_api.py,sha256=KkbEnBTz3HZs8mSJ-2FX-UrPSlJfMOd8xSXRmtDpqPc,9682
|
|
66
66
|
mns_common/component/data/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
67
|
-
mns_common/component/data/data_init_api.py,sha256=
|
|
67
|
+
mns_common/component/data/data_init_api.py,sha256=7hrXdZXSYykkDy0X3eS2SNvETBucCCMRXY7acsxeEeg,4957
|
|
68
68
|
mns_common/component/deal/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
69
69
|
mns_common/component/deal/deal_service_api.py,sha256=XV_L8qfeTPbojmNXFjnUe-5ZTp3ADT3ett0j-gPuPVI,3806
|
|
70
70
|
mns_common/component/deal/terminal_enum.py,sha256=JUkSTXLQW1fob05PCCzIBg_VKlGmqaJEa0GOvrQH6e0,275
|
|
@@ -89,7 +89,7 @@ mns_common/component/redis_msg/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IB
|
|
|
89
89
|
mns_common/component/redis_msg/redis_msg_publish_service.py,sha256=jcNEfQpARCPyl_eFXTksL2aHn1r5Lnv1qns4lVMCToI,381
|
|
90
90
|
mns_common/component/self_choose/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
91
91
|
mns_common/component/self_choose/black_list_service_api.py,sha256=bBWXwvf7M3_ys5oZNHDMtAAqF4HYbsqfSh1zOd8UvuY,1980
|
|
92
|
-
mns_common/component/self_choose/self_choose_service_api.py,sha256=
|
|
92
|
+
mns_common/component/self_choose/self_choose_service_api.py,sha256=3dKqpQSIhkdRjK5yCVSsmQAL1V8-LqYujdEvj2N4bGk,1696
|
|
93
93
|
mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
94
94
|
mns_common/component/trade_date/trade_date_common_service_api.py,sha256=PHrcUjgLdNKbqyMGot0poKtiLBys_wRZoheMhPJE-U4,3032
|
|
95
95
|
mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -111,7 +111,7 @@ mns_common/utils/date_handle_util.py,sha256=qkEyKLYiVq6qpKVp32MLKwRtGKVBK6AY5at2
|
|
|
111
111
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
112
112
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
113
113
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
114
|
-
mns_common-1.2.
|
|
115
|
-
mns_common-1.2.
|
|
116
|
-
mns_common-1.2.
|
|
117
|
-
mns_common-1.2.
|
|
114
|
+
mns_common-1.2.4.1.dist-info/METADATA,sha256=S0peolvSbmcmwEmaWduuvvFyrSH583K2eLFhE4HYv9Q,61
|
|
115
|
+
mns_common-1.2.4.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
116
|
+
mns_common-1.2.4.1.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
117
|
+
mns_common-1.2.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|