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/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="注:市值金额:十亿,当地货币单位\n"
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="证券估值走势对比:"+t
1023
+ titletxt="证券估值走势:"+t
1019
1024
 
1020
1025
  footnote1=""
1021
1026
  if i1=='MV' or i2=='MV':
1022
1027
  if preprocess=='none':
1023
- footnote1="注:市值金额:十亿,当地货币单位\n"
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="证券估值走势对比:"+i
1052
- titletxt="证券估值走势对比:"+ectranslate(i)
1060
+ #titletxt="证券估值走势:"+i
1061
+ titletxt="证券估值走势:"+ectranslate(i)
1053
1062
 
1054
1063
  footnote1=""
1055
1064
  if i=='MV':
1056
1065
  if preprocess=='none':
1057
- footnote1="注:市值金额:十亿,当地货币单位\n"
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="注:市值金额:十亿,当地货币单位\n"
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="注:市值金额:十亿,当地货币单位\n"
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.5.12
3
+ Version: 3.6.1
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
@@ -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=lUuCPVSxebkA2yye1PXu1V2Jd2UKEwD_kIA25DCIDTs,29750
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=rya9u6jzNnuw1Io4Ub6Da8h276DCzbyL3hjWpzHY0mY,87873
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=0eIWy5-0L8fECVwakVoA8EUO-_5u5jGW66dVLRi1_PY,120954
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=eg8TB1GBjUJK9NiE0no4JrsQWVe6J5C0ffJDaCh2FSA,81395
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=JHrO5zDBYMLbpvotdaqaUcFrxm2di60kMVOdeom8t8A,26336
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=oUPX2yHGclBoO97d5XocvdSJ8grwpDoJ8aJtOlu4oas,155637
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=wj9ct1j967u1KOjCJVoeopSaypWWWTxzEeJKeUACp4c,241177
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=WCqL5zYkZ_Y3MLeoWXTu3G1CknwGdYzhpszbT6cEoYk,49255
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.5.12.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
144
- siat-3.5.12.dist-info/METADATA,sha256=Shgl7GEqy3CgeZ7j_sOjjmX34n1dkjSUh4rhQ_JCBfg,8010
145
- siat-3.5.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
146
- siat-3.5.12.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
147
- siat-3.5.12.dist-info/RECORD,,
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