siat 3.1.22__py3-none-any.whl → 3.1.28__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/markowitz2-20240620.py +2614 -0
- siat/markowitz2.py +52 -4
- siat/sector_china.py +17 -9
- siat/security_price2.py +11 -0
- siat/stock_technical.py +84 -50
- siat/valuation_china.py +7 -5
- {siat-3.1.22.dist-info → siat-3.1.28.dist-info}/METADATA +1 -1
- {siat-3.1.22.dist-info → siat-3.1.28.dist-info}/RECORD +10 -9
- {siat-3.1.22.dist-info → siat-3.1.28.dist-info}/WHEEL +0 -0
- {siat-3.1.22.dist-info → siat-3.1.28.dist-info}/top_level.txt +0 -0
siat/valuation_china.py
CHANGED
@@ -921,7 +921,7 @@ def compare_industry_valuation_sw(industries,start,end,vtypes='PE', \
|
|
921
921
|
df=pd.DataFrame()
|
922
922
|
for i in industries:
|
923
923
|
# debug
|
924
|
-
print("
|
924
|
+
print(" Searching valuation info for",i,'\b, which may take time ...')
|
925
925
|
dft=industry_valuation_history_sw(i,start=start,end=end,vtype=vtype,graph=False)
|
926
926
|
if not (dft is None):
|
927
927
|
dft.rename(columns={vtypec:i},inplace=True)
|
@@ -1297,7 +1297,7 @@ if __name__=='__main__':
|
|
1297
1297
|
|
1298
1298
|
lo_est_betas_list,betas_list,idfall=valuation2return_sw(start,end,valuation=valuation,return_delay=return_delay)
|
1299
1299
|
|
1300
|
-
def valuation2return_sw(start,end,itype='
|
1300
|
+
def valuation2return_sw(start,end,itype='1',industries='all'):
|
1301
1301
|
"""
|
1302
1302
|
功能:测试三种估值指标对滞后一段时间收益率的影响。
|
1303
1303
|
测试行业哑元变量对估值指标的调节作用,借此判断。若正向(负向)影响,行业估值未低估(高估)
|
@@ -1366,20 +1366,22 @@ def valuation2return_sw(start,end,itype='I',industries='all'):
|
|
1366
1366
|
sys.stdout.close()
|
1367
1367
|
sys.stdout = self._original_stdout
|
1368
1368
|
|
1369
|
-
# 步骤1
|
1369
|
+
# 步骤1:获取行业历史数据,本步骤所需时间较长==================================
|
1370
|
+
print("Step1: retrieving industry information, it may take up to hours ...")
|
1370
1371
|
industry_data=get_industry_sw(itype=itype)
|
1371
1372
|
if not (industries.lower() == 'all'):
|
1372
1373
|
industry_codes=industry_sw_codes(industries)
|
1373
1374
|
else:
|
1374
1375
|
industry_codes=list(set(list(industry_data['ticker'])))
|
1375
1376
|
|
1376
|
-
# 步骤2
|
1377
|
+
# 步骤2:计算基础数据,本步骤所需时间较长======================================
|
1378
|
+
print("Step2: Calculating industry valuations, it may take great time ...")
|
1377
1379
|
idf,idfall=calc_industry_sw(industry_data,start,end)
|
1378
1380
|
|
1379
1381
|
# 步骤3:构造回归数据,进行回归,记录回归结果
|
1380
1382
|
import pandas as pd
|
1381
1383
|
coefdflist=[]
|
1382
|
-
print("
|
1384
|
+
print("Step3: Analyzing industry performance, it may need quite some time ...")
|
1383
1385
|
|
1384
1386
|
total=len(measure_list)*len(valuation_list)
|
1385
1387
|
for m in measure_list:
|
@@ -66,7 +66,8 @@ siat/holding_risk_test.py,sha256=FRlw_9wFG98BYcg_cSj95HX5WZ1TvkGaOUdXD7-V86s,474
|
|
66
66
|
siat/local_debug_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
|
67
67
|
siat/market_china.py,sha256=nabx24qm7N51OafTrwUw542pNeFJ3JaQ1wqyv-nLN5I,37883
|
68
68
|
siat/markowitz.py,sha256=c06gCRhMABnrb30F-npJsKVv8nFfEoNNR3bzrkMCyGg,97406
|
69
|
-
siat/markowitz2.py,sha256=
|
69
|
+
siat/markowitz2-20240620.py,sha256=irZAPnjaatFsKQmFRMENP-cO6bEUl2narYtkU5NKTWI,108019
|
70
|
+
siat/markowitz2.py,sha256=0FfGv8JzBWTjq3mjCDmT5K-lqpW6RvIggFD4h4SAGzM,109539
|
70
71
|
siat/markowitz_ccb_test.py,sha256=xBkkoaNHdq9KSUrNuHGgKTdNYUvgi84kNYcf719eoyE,1593
|
71
72
|
siat/markowitz_ef_test.py,sha256=wjNlICkgRIqnonPeSIHo4Mu2GRtb9dr21wDt2kMNEcI,4032
|
72
73
|
siat/markowitz_old.py,sha256=Lf7O_4QWT8RsdkHiUyc_7kKY3eZjKDtFR89Fz3pwYnY,33046
|
@@ -91,10 +92,10 @@ siat/risk_evaluation.py,sha256=I6B3gty-t--AkDCO0tKF-291YfpnF-IkXcFjqNKCt9I,76286
|
|
91
92
|
siat/risk_evaluation_test.py,sha256=YEXM96gKzTfwN4U61AS4Rr1tV7KgUvn4rRC6f3iMw9s,3731
|
92
93
|
siat/risk_free_rate.py,sha256=ZMr4cHikPvXvywr54gGqiI3Nvb69am6tq3zj2hwzANE,12384
|
93
94
|
siat/risk_free_rate_test.py,sha256=CpmhUf8aEAEZeNu4gvWP2Mz2dLoIgBX5bI41vfUBEr8,4285
|
94
|
-
siat/sector_china.py,sha256=
|
95
|
+
siat/sector_china.py,sha256=nP6kfYsnaQWZj8dK-zklwSDW8FDS-obZWp_zL0ec2Ig,118603
|
95
96
|
siat/sector_china_test.py,sha256=1wq7ef8Bb_L8F0h0W6FvyBrIcBTEbrTV7hljtpj49U4,5843
|
96
97
|
siat/security_price.py,sha256=2oHskgiw41KMGfqtnA0i2YjNNV6cYgtlUK0j3YeuXWs,29185
|
97
|
-
siat/security_price2.py,sha256=
|
98
|
+
siat/security_price2.py,sha256=581xPduTjxEEHSkDNGn4v7VxsZ2C6vHeGJ51XB1GLuQ,25825
|
98
99
|
siat/security_prices.py,sha256=a5U5qM5iX3Fl2GM8X1ceM5TGE5z32Q3ovMewKgE-6pg,103410
|
99
100
|
siat/security_prices_test.py,sha256=OEphoJ87NPKoNow1QA8EU_5MUYrJF-qKoWKNapVfZNI,10779
|
100
101
|
siat/security_trend.py,sha256=o0vpWdrJkmODCP94X-Bvn-w7efHhj9HpUYBHtLl55D0,17240
|
@@ -112,7 +113,7 @@ siat/stock_list_china_test.py,sha256=gv14UwMMvkZqtb6G7DCTSuehIwVHuVwu7w60p6gyHoo
|
|
112
113
|
siat/stock_prices_kneighbors.py,sha256=WfZvo5EyeBsm-T37zDj7Sl9dPSRq5Bx4JxIJ9IUum6s,36738
|
113
114
|
siat/stock_prices_linear.py,sha256=-OUKRr27L2aStQgJSlJOrJ4gay_G7P-m-7t7cU2Yoqk,13991
|
114
115
|
siat/stock_profile.py,sha256=B3eIwzEmiCqiCaxIlhfdEPsQBoW1PFOe1hkiY3mVF6Y,26038
|
115
|
-
siat/stock_technical.py,sha256=
|
116
|
+
siat/stock_technical.py,sha256=A4x18mZgYSA8SSiDz4u_O3gd5oVRgbI6JIiBfFY0tVw,116013
|
116
117
|
siat/stock_test.py,sha256=E9YJAvOw1VEGJSDI4IZuEjl0tGoisOIlN-g9UqA_IZE,19475
|
117
118
|
siat/stooq.py,sha256=dOc_S5HLrYg48YAKTCs1eX8UTJOOkPM8qLL2KupqlLY,2470
|
118
119
|
siat/temp.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
@@ -130,10 +131,10 @@ siat/translate.py,sha256=mldxeFwkxFrh_7EV1O_nRju8W0wIPnKAtN_mbN621w8,215280
|
|
130
131
|
siat/translate_20240606.py,sha256=63IyHWEU3Uz9mjwyuAX3fqY4nUMdwh0ICQAgmgPXP7Y,215121
|
131
132
|
siat/universal_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
|
132
133
|
siat/valuation.py,sha256=NKfeZMdDJOW42oLVHob6eSVBXUqlN1OCnnzwyGAst8c,48855
|
133
|
-
siat/valuation_china.py,sha256=
|
134
|
+
siat/valuation_china.py,sha256=EkZQaVkoBjM0c4MCNbaX-bMnlG0e3FXeaWczZDnkptU,67784
|
134
135
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
135
136
|
siat/var_model_validation.py,sha256=f-oDewg7bPzyNanz_Y_jLH68NowAA3gXFehW_weKGG0,14898
|
136
|
-
siat-3.1.
|
137
|
-
siat-3.1.
|
138
|
-
siat-3.1.
|
139
|
-
siat-3.1.
|
137
|
+
siat-3.1.28.dist-info/METADATA,sha256=74IePv7Bc_JMuhwxyIrBUnhSp7ECuFEUoRRSQ8BnN-w,1448
|
138
|
+
siat-3.1.28.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
139
|
+
siat-3.1.28.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
140
|
+
siat-3.1.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|