siat 3.5.12__py3-none-any.whl → 3.6.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.
- siat/capm_beta2.py +39 -11
- siat/grafix.py +276 -20
- siat/option_china.py +1 -1
- siat/risk_adjusted_return2.py +55 -7
- siat/security_trend2.py +70 -14
- siat/stock.py +58 -3
- siat/translate.py +1 -1
- siat/valuation.py +29 -12
- {siat-3.5.12.dist-info → siat-3.6.1.dist-info}/METADATA +1 -1
- {siat-3.5.12.dist-info → siat-3.6.1.dist-info}/RECORD +13 -13
- {siat-3.5.12.dist-info → siat-3.6.1.dist-info}/LICENSE +0 -0
- {siat-3.5.12.dist-info → siat-3.6.1.dist-info}/WHEEL +0 -0
- {siat-3.5.12.dist-info → siat-3.6.1.dist-info}/top_level.txt +0 -0
siat/valuation.py
CHANGED
@@ -942,6 +942,8 @@ def security_valuation(tickers,indicators,start,end, \
|
|
942
942
|
preprocess='none',scaling_option='start', \
|
943
943
|
twinx=False,loc1='best',loc2='best', \
|
944
944
|
graph=True,facecolor='whitesmoke', \
|
945
|
+
attention_value='', \
|
946
|
+
attention_point='', \
|
945
947
|
annotate=False,annotate_value=False, \
|
946
948
|
mark_top=False,mark_bottom=False,mark_end=False):
|
947
949
|
"""
|
@@ -992,7 +994,7 @@ def security_valuation(tickers,indicators,start,end, \
|
|
992
994
|
footnote1=""
|
993
995
|
if i=='MV':
|
994
996
|
if preprocess=='none':
|
995
|
-
footnote1="
|
997
|
+
footnote1="注:市值金额:十亿,本币单位\n"
|
996
998
|
|
997
999
|
todaydt = datetime.date.today()
|
998
1000
|
footnote9="数据来源: Baidu/Stooq/FundDB/SWHY,"+str(todaydt)
|
@@ -1001,7 +1003,10 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1001
1003
|
draw_lines(df2,y_label=ylabeltxt,x_label=footnote, \
|
1002
1004
|
axhline_value=0,axhline_label='', \
|
1003
1005
|
title_txt=titletxt,data_label=False, \
|
1004
|
-
resample_freq='D',loc=loc1,facecolor=facecolor,
|
1006
|
+
resample_freq='D',loc=loc1,facecolor=facecolor, \
|
1007
|
+
attention_value=attention_value, \
|
1008
|
+
attention_point=attention_point, \
|
1009
|
+
annotate=annotate,annotate_value=annotate_value, \
|
1005
1010
|
mark_top=mark_top,mark_bottom=mark_bottom,mark_end=mark_end)
|
1006
1011
|
|
1007
1012
|
return df
|
@@ -1015,12 +1020,12 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1015
1020
|
df2_1.rename(columns={t:i1},inplace=True)
|
1016
1021
|
df2_2.rename(columns={t:i2},inplace=True)
|
1017
1022
|
|
1018
|
-
titletxt="
|
1023
|
+
titletxt="证券估值走势:"+t
|
1019
1024
|
|
1020
1025
|
footnote1=""
|
1021
1026
|
if i1=='MV' or i2=='MV':
|
1022
1027
|
if preprocess=='none':
|
1023
|
-
footnote1="
|
1028
|
+
footnote1="注:市值金额:十亿,本币单位\n"
|
1024
1029
|
|
1025
1030
|
todaydt = datetime.date.today()
|
1026
1031
|
footnote9="数据来源: Baidu/Stooq/FundDB/SWHY,"+str(todaydt)
|
@@ -1037,7 +1042,11 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1037
1042
|
ylabeltxt='',titletxt=titletxt,footnote=footnote, \
|
1038
1043
|
twinx=twinx, \
|
1039
1044
|
resample_freq='D',loc1=loc1,loc2=loc2, \
|
1040
|
-
color1='red',color2='blue',facecolor=facecolor
|
1045
|
+
color1='red',color2='blue',facecolor=facecolor, \
|
1046
|
+
yline=attention_value, \
|
1047
|
+
xline=attention_point
|
1048
|
+
)
|
1049
|
+
|
1041
1050
|
return df
|
1042
1051
|
|
1043
1052
|
# 绘制双线: 两只证券,一个指标。twinx双轴绘图
|
@@ -1048,13 +1057,13 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1048
1057
|
df2_1.rename(columns={t1:i},inplace=True)
|
1049
1058
|
df2_2.rename(columns={t2:i},inplace=True)
|
1050
1059
|
|
1051
|
-
#titletxt="
|
1052
|
-
titletxt="
|
1060
|
+
#titletxt="证券估值走势:"+i
|
1061
|
+
titletxt="证券估值走势:"+ectranslate(i)
|
1053
1062
|
|
1054
1063
|
footnote1=""
|
1055
1064
|
if i=='MV':
|
1056
1065
|
if preprocess=='none':
|
1057
|
-
footnote1="
|
1066
|
+
footnote1="注:市值金额:十亿,本币单位\n"
|
1058
1067
|
|
1059
1068
|
todaydt = datetime.date.today()
|
1060
1069
|
footnote9="数据来源: Baidu/Stooq/FundDB/SWHY,"+str(todaydt)
|
@@ -1074,7 +1083,10 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1074
1083
|
ylabeltxt=ylabeltxt,titletxt=titletxt,footnote=footnote, \
|
1075
1084
|
twinx=twinx, \
|
1076
1085
|
resample_freq='D',loc1=loc1,loc2=loc2, \
|
1077
|
-
color1='red',color2='blue',facecolor=facecolor
|
1086
|
+
color1='red',color2='blue',facecolor=facecolor, \
|
1087
|
+
yline=attention_value, \
|
1088
|
+
xline=attention_point
|
1089
|
+
)
|
1078
1090
|
|
1079
1091
|
return df
|
1080
1092
|
|
@@ -1089,7 +1101,7 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1089
1101
|
footnote1=""
|
1090
1102
|
if i=='MV':
|
1091
1103
|
if preprocess=='none':
|
1092
|
-
footnote1="
|
1104
|
+
footnote1="注:市值金额:十亿,本币单位\n"
|
1093
1105
|
|
1094
1106
|
todaydt = datetime.date.today()
|
1095
1107
|
footnote9="数据来源: Baidu/Stooq/FundDB/SWHY,"+str(todaydt)
|
@@ -1110,11 +1122,13 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1110
1122
|
annotate=annotate,annotate_value=annotate_value, \
|
1111
1123
|
plus_sign=plus_sign, \
|
1112
1124
|
facecolor=facecolor, \
|
1125
|
+
attention_value=attention_value, \
|
1126
|
+
attention_point=attention_point, \
|
1113
1127
|
mark_top=mark_top,mark_bottom=mark_bottom,mark_end=mark_end)
|
1114
1128
|
|
1115
1129
|
return df
|
1116
1130
|
|
1117
|
-
#
|
1131
|
+
# 绘制多线:一只证券,多个指标。简单多线绘图。可能数量级差异较大,意义有限
|
1118
1132
|
if name_num == 1 and indicator_num >= 2 and not twinx:
|
1119
1133
|
t=names1[0]
|
1120
1134
|
df2=None
|
@@ -1134,7 +1148,7 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1134
1148
|
footnote1=''
|
1135
1149
|
if 'MV' in indicators1:
|
1136
1150
|
if preprocess=='none':
|
1137
|
-
footnote1="
|
1151
|
+
footnote1="注:市值金额:十亿,本币单位\n"
|
1138
1152
|
|
1139
1153
|
todaydt = datetime.date.today()
|
1140
1154
|
footnote9="数据来源: Baidu/Stooq/FundDB/SWHY,"+str(todaydt)
|
@@ -1154,6 +1168,9 @@ def security_valuation(tickers,indicators,start,end, \
|
|
1154
1168
|
resample_freq='D',loc=loc1,plus_sign=plus_sign, \
|
1155
1169
|
annotate=annotate,annotate_value=annotate_value, \
|
1156
1170
|
facecolor=facecolor, \
|
1171
|
+
attention_value=attention_value, \
|
1172
|
+
attention_point=attention_point, \
|
1173
|
+
|
1157
1174
|
mark_top=mark_top,mark_bottom=mark_bottom,mark_end=mark_end)
|
1158
1175
|
|
1159
1176
|
return df
|
@@ -15,7 +15,7 @@ siat/bond_china.py,sha256=eYv-nMoWSS5fZ4VxnuJ29QFY9GUS6meGiIc0Xjm1fQI,3038
|
|
15
15
|
siat/bond_test.py,sha256=yUOFw7ddGU-kb1rJdnsjkJWziDNgUR7OLDA7F7Ub91A,5246
|
16
16
|
siat/bond_zh_sina.py,sha256=26BohGcS120utwqg9dJvdGm5OkuNpNu5bco80uOuQpU,4423
|
17
17
|
siat/capm_beta.py,sha256=cxXdRVBQBllhbfz1LeTJAIWvyRYhW54nhtNUXv4HwS0,29063
|
18
|
-
siat/capm_beta2.py,sha256=
|
18
|
+
siat/capm_beta2.py,sha256=kT1cEWs35swRECHzi0umZehLz8mEQpIHK9xSW8oG2co,31746
|
19
19
|
siat/capm_beta_test.py,sha256=ImR0c5mc4hIl714XmHztdl7qg8v1E2lycKyiqnFj6qs,1745
|
20
20
|
siat/cmat_commons.py,sha256=Nj9Kf0alywaztVoMVeVVL_EZk5jRERJy8R8kBw88_Tg,38116
|
21
21
|
siat/common.py,sha256=dqvWnw2gyMVo7l2dMyhJeaJZJIyUCVcTMTXC1ryHQos,160442
|
@@ -60,7 +60,7 @@ siat/future_china.py,sha256=F-HsIf2Op8Z22RzTjet1g8COzldgnMjFNSXsAkeGyWo,17595
|
|
60
60
|
siat/future_china_test.py,sha256=BrSzmDVaOHki6rntOtosmRn-6dkfOBuLulJNqh7MOpc,1163
|
61
61
|
siat/global_index_test.py,sha256=hnFp3wqqzzL-kAP8mgxDZ54Bd5Ijf6ENi5YJlGBgcXw,2402
|
62
62
|
siat/google_authenticator.py,sha256=ZUbZR8OW0IAKDbcYtlqGqIpZdERpFor9NccFELxg9yI,1637
|
63
|
-
siat/grafix.py,sha256=
|
63
|
+
siat/grafix.py,sha256=YDpAo2N-YD3G5tilMErYgPT30Fue05ogul6XI8tBebo,97976
|
64
64
|
siat/grafix_test.py,sha256=kXvcpLgQNO7wd30g_bWljLj5UH7bIVI0_dUtXbfiKR0,3150
|
65
65
|
siat/holding_risk.py,sha256=G3wpaewAKF9CwEqRpr4khyuDu9SU2EGyQUHdk7cmHOA,30693
|
66
66
|
siat/holding_risk_test.py,sha256=FRlw_9wFG98BYcg_cSj95HX5WZ1TvkGaOUdXD7-V86s,474
|
@@ -80,7 +80,7 @@ siat/markowitz_test2.py,sha256=FcVZqYU5va4567WGUVUJ7cMQdVbBGxeBAz82Y3BhCTI,2193
|
|
80
80
|
siat/ml_cases.py,sha256=FYDk0O7l9hhHlbrlOVGgbH-h2DA503lhKFi9XugH1f0,86874
|
81
81
|
siat/ml_cases_example.py,sha256=xRGb3YTQEDTOnaWNzZN_myU5umQnA2RdMNiPrxTmn9c,1673
|
82
82
|
siat/ml_cases_example1.py,sha256=xRGb3YTQEDTOnaWNzZN_myU5umQnA2RdMNiPrxTmn9c,1673
|
83
|
-
siat/option_china.py,sha256=
|
83
|
+
siat/option_china.py,sha256=vPALLZDN_oIOmwpaLdB5V6dH4OuA4Q4rSy1K0ADkqYI,120954
|
84
84
|
siat/option_china_test.py,sha256=UQ-YUHUjoGBQyanLcM-yzqeEIUQP_gCQIeT0W6rnUnA,16355
|
85
85
|
siat/option_pricing.py,sha256=VEqe7VbPkdWX8lS7fJaL1GF9cQx2HRe3UBI2XZJouBQ,73237
|
86
86
|
siat/option_pricing_test.py,sha256=eeorV5Ja5vjlRXnP6fWJHetGU5Vb8SnLopkC6RV3GfA,2203
|
@@ -88,7 +88,7 @@ siat/option_sina_api_test.py,sha256=dn-k_wrQnAaNKHoROvWJEc7lqlU0bwiV2Aa4usWAFGM,
|
|
88
88
|
siat/proxy_test.py,sha256=erQJrmGs2X46z8Gb1h-7GYQ0rTUcaR8dxHExWoBz2eM,2610
|
89
89
|
siat/quandl_test.py,sha256=EcPoXnLuqzPl5dKyVEZi3j3PJZFpsnU_iNPhLWC9p-A,1552
|
90
90
|
siat/risk_adjusted_return.py,sha256=oRUOagpQlGB56R1xIHZoYwAi42RqcZl0R-JCVBCKVe0,55086
|
91
|
-
siat/risk_adjusted_return2.py,sha256=
|
91
|
+
siat/risk_adjusted_return2.py,sha256=r5o0tVAJZmlWvdHYiN8SlCCaShEVYCyNCdPuFzoUO-Y,83913
|
92
92
|
siat/risk_adjusted_return_test.py,sha256=m_VHL5AtT74cJv5i7taTeTfnkX48y0AFJk5phawyYWg,3416
|
93
93
|
siat/risk_evaluation.py,sha256=I6B3gty-t--AkDCO0tKF-291YfpnF-IkXcFjqNKCt9I,76286
|
94
94
|
siat/risk_evaluation_test.py,sha256=YEXM96gKzTfwN4U61AS4Rr1tV7KgUvn4rRC6f3iMw9s,3731
|
@@ -102,10 +102,10 @@ siat/security_prices.py,sha256=Zhn6pvwLy996mbBHDorbqWQdQw9RHdr9m0yzke3ya8M,10859
|
|
102
102
|
siat/security_prices_test.py,sha256=OEphoJ87NPKoNow1QA8EU_5MUYrJF-qKoWKNapVfZNI,10779
|
103
103
|
siat/security_trend.py,sha256=o0vpWdrJkmODCP94X-Bvn-w7efHhj9HpUYBHtLl55D0,17240
|
104
104
|
siat/security_trend2-20240620.py,sha256=QVnEcb7AyVbO77jVqfFsJffGXrX8pgJ9xCfoAKmWBPk,24854
|
105
|
-
siat/security_trend2.py,sha256=
|
105
|
+
siat/security_trend2.py,sha256=Hu2drmy7ryy1q3VNRcPQZB4_LXzvAuZEU2QJgC1jlwE,29013
|
106
106
|
siat/setup.py,sha256=up65rQGLmTBkhtaMLowjoQXYmIsnycnm4g1SYmeQS6o,1335
|
107
107
|
siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuYU-Esg,1418
|
108
|
-
siat/stock.py,sha256=
|
108
|
+
siat/stock.py,sha256=0HnhZjbddNg1ZOeUgsSg0gdm4bqq-VACY-s8sJUpDdo,158372
|
109
109
|
siat/stock_advice_linear.py,sha256=-twT7IGP-NEplkL1WPSACcNJjggRB2j4mlAQCkzOAuo,31655
|
110
110
|
siat/stock_base.py,sha256=uISvbRyOGy8p9QREA96CVydgflBkn5L3OXOGKl8oanc,1312
|
111
111
|
siat/stock_china.py,sha256=zyUyghIrkkkYWlHRRP7Hoblxzfp-jrck60pTJpwMahg,91553
|
@@ -131,17 +131,17 @@ siat/transaction_test.py,sha256=Z8g1LJCN4-mnUByXMUMoFmN0t105cbmsz2QmvSuIkbU,1858
|
|
131
131
|
siat/translate-20230125.py,sha256=NPPSXhT38s5t9fzMvl_fvi4ckSB73ThLmZetVI-xGdU,117953
|
132
132
|
siat/translate-20230206.py,sha256=-vtI125WyaJhmPotOpDAmclt_XnYVaWU9ByLWZ6FyYE,118133
|
133
133
|
siat/translate-20230215.py,sha256=TJgtPE3n8IjljmZ4Pefy8dmHoNdFF-1zpML6BhA9FKE,121657
|
134
|
-
siat/translate.py,sha256=
|
134
|
+
siat/translate.py,sha256=4A5uovLiv2wwfMOc71hnKpxCMp8WV6mDohkARKBdSB8,241180
|
135
135
|
siat/translate_20240606.py,sha256=63IyHWEU3Uz9mjwyuAX3fqY4nUMdwh0ICQAgmgPXP7Y,215121
|
136
136
|
siat/translate_241003_keep.py,sha256=un7Fqe1v35MXsja5exZgjmLzrZtt66NARZIGlyFuGGU,218747
|
137
137
|
siat/universal_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
|
138
|
-
siat/valuation.py,sha256=
|
138
|
+
siat/valuation.py,sha256=4t3tLWNC-eh5dmtefzpQiElo0I_5l6zD8vzOXizhpdg,50309
|
139
139
|
siat/valuation_china.py,sha256=CVp1IwIsF3Om0J29RGkyxZLt4n9Ug-ua_RKhLwL9fUQ,69624
|
140
140
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
141
141
|
siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
|
142
142
|
siat/yf_name.py,sha256=7uLAcOc8XwfYDjuLqWDiUZHfdMpEbytW7E2ayNNT3f4,20069
|
143
|
-
siat-3.
|
144
|
-
siat-3.
|
145
|
-
siat-3.
|
146
|
-
siat-3.
|
147
|
-
siat-3.
|
143
|
+
siat-3.6.1.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
|
144
|
+
siat-3.6.1.dist-info/METADATA,sha256=baefddzhmDzGjz9TMSNKBzecLcSYV1WywCO5yV3WTcE,8009
|
145
|
+
siat-3.6.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
146
|
+
siat-3.6.1.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
147
|
+
siat-3.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|