siat 3.1.5__py3-none-any.whl → 3.1.6__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/common.py +7 -1
- siat/fund_china.py +2 -2
- siat/stock.py +12 -6
- {siat-3.1.5.dist-info → siat-3.1.6.dist-info}/METADATA +1 -1
- {siat-3.1.5.dist-info → siat-3.1.6.dist-info}/RECORD +7 -7
- {siat-3.1.5.dist-info → siat-3.1.6.dist-info}/WHEEL +0 -0
- {siat-3.1.5.dist-info → siat-3.1.6.dist-info}/top_level.txt +0 -0
siat/common.py
CHANGED
@@ -399,7 +399,13 @@ def date_adjust2(basedate,adjust_year=0,adjust_month=0,adjust_day=0, \
|
|
399
399
|
new_year=new_year + 1
|
400
400
|
|
401
401
|
#合成中间日期:新年份,新月份,原日期
|
402
|
-
|
402
|
+
while True:
|
403
|
+
try:
|
404
|
+
ndym=datetime(new_year,new_month,bd_day)
|
405
|
+
break
|
406
|
+
except:
|
407
|
+
bd_day=bd_day - 1
|
408
|
+
continue
|
403
409
|
|
404
410
|
#调整日期
|
405
411
|
nd=ndym + timedelta(days=adjust_day)
|
siat/fund_china.py
CHANGED
@@ -202,7 +202,7 @@ def fund_stock_holding_compare_china(fund,quarter1,quarter2,rank=10):
|
|
202
202
|
print("\n*** 注:持股数为万股,持仓市值为万元,持仓比例为占基金资产净值比例%,包括A股与非A股")
|
203
203
|
print(" 数据来源:天天基金/东方财富, 期间持仓股票总计"+str(len(df_merge))+"只,",today)
|
204
204
|
"""
|
205
|
-
titletxt="
|
205
|
+
titletxt="基金持仓转移矩阵:"+name+','+s1+"对比"+s2+"(按后者持仓比例降序排列,"+order+str(rank)+"名成份证券)"
|
206
206
|
|
207
207
|
footnote1="【注】持仓数为万股,持仓市值为万元,持仓比例为占基金资产净值比例%;"
|
208
208
|
footnote2="期间内(曾经)持仓证券数合计"+str(len(df_merge))+"只"+'\n'
|
@@ -373,7 +373,7 @@ def fund_stock_holding_rank_china(fund,rank=10,year_num=2):
|
|
373
373
|
name=get_fund_name_china2(fund)
|
374
374
|
|
375
375
|
#print("=== 基金持仓股票排行分析:"+name+",按照占净值比例高低排列 ===\n")
|
376
|
-
titletxt="
|
376
|
+
titletxt="基金持仓转移详情:"+name+",按照占净值比例降序排列,前"+str(rank)+"名成份证券"
|
377
377
|
import datetime; todaydt = datetime.date.today()
|
378
378
|
#print("\n*** 注:包括A股与非A股。持股结构:股票简称(占净值比例%,持股数万股),",str(todaydt))
|
379
379
|
footnote="【注】持仓结构:证券简称(占净值比例%,持仓数万股),"+str(todaydt)+"统计"
|
siat/stock.py
CHANGED
@@ -1645,7 +1645,7 @@ def compare_msecurity(tickers,measure,start,end, \
|
|
1645
1645
|
if (len(tickersplit) > 1) and (measure == 'Close'):
|
1646
1646
|
if tickersplit[1].upper() in ['M','B']:
|
1647
1647
|
#y_label='指标'
|
1648
|
-
y_label=''
|
1648
|
+
y_label='指标对比'
|
1649
1649
|
|
1650
1650
|
x_label1cn="数据来源: 综合新浪/东方财富/stooq/yahoo等,"
|
1651
1651
|
x_label1en="Source: integrating sina/stooq/yahoo, "
|
@@ -1653,12 +1653,18 @@ def compare_msecurity(tickers,measure,start,end, \
|
|
1653
1653
|
import datetime; todaydt = datetime.date.today()
|
1654
1654
|
x_label=x_label1+str(todaydt)
|
1655
1655
|
|
1656
|
-
title_txt1=text_lang("
|
1657
|
-
|
1656
|
+
title_txt1=text_lang("证券趋势对比分析","Trend Comparative Analysis")
|
1657
|
+
if y_label != '':
|
1658
|
+
title_txt=title_txt1+": "+y_label
|
1659
|
+
else:
|
1660
|
+
title_txt=title_txt1
|
1661
|
+
|
1658
1662
|
if preprocess == 'scaling' and scaling_option == 'change%':
|
1659
|
-
title_txt2=text_lang("
|
1660
|
-
title_txt
|
1661
|
-
|
1663
|
+
title_txt2=text_lang("涨跌幅度","Changes")
|
1664
|
+
if ':' in title_txt:
|
1665
|
+
title_txt=title_txt+', '+title_txt2
|
1666
|
+
else:
|
1667
|
+
title_txt=title_txt+': '+title_txt2
|
1662
1668
|
|
1663
1669
|
# 标准化处理
|
1664
1670
|
dfs2,axhline_label,x_label,y_label,plus_sign=df_preprocess(dfs,measure, \
|
@@ -17,7 +17,7 @@ siat/capm_beta.py,sha256=cxXdRVBQBllhbfz1LeTJAIWvyRYhW54nhtNUXv4HwS0,29063
|
|
17
17
|
siat/capm_beta2.py,sha256=UOI4sCz3ld7yezlARqPHvgHzfduDiGeRqNa82dDTCZ8,25849
|
18
18
|
siat/capm_beta_test.py,sha256=ImR0c5mc4hIl714XmHztdl7qg8v1E2lycKyiqnFj6qs,1745
|
19
19
|
siat/cmat_commons.py,sha256=Nj9Kf0alywaztVoMVeVVL_EZk5jRERJy8R8kBw88_Tg,38116
|
20
|
-
siat/common.py,sha256=
|
20
|
+
siat/common.py,sha256=Jjr8Fozk8JpHRMxOuK_a_BXMetV5O8QrmBNFQuGAJZA,143378
|
21
21
|
siat/compare_cross.py,sha256=3iP9TH2h3w27F2ARZc7FjKcErYCzWRc-TPiymOyoVtw,24171
|
22
22
|
siat/compare_cross_test.py,sha256=xra5XYmQGEtfIZL2h-GssdH2hLdFIhG3eoCrkDrL3gY,3473
|
23
23
|
siat/concepts_iwencai.py,sha256=m1YEDtECRT6FqtzlKm91pt2I9d3Z_XoP59BtWdRdu8I,3061
|
@@ -52,7 +52,7 @@ siat/financials_test.py,sha256=HJ3CPo_Xckz2wXi3AEP6ZNWCF1Duc1pLi0Y10USiImc,23829
|
|
52
52
|
siat/fred_test.py,sha256=KF50ssSbsfpa_kT6iuomD0vG4eXztAcOasZxg1OGX5w,1201
|
53
53
|
siat/fund.py,sha256=wMDORsCBV8ZXfgwbtq-0bu3qqWY66dHnbqgllW0gWCo,24637
|
54
54
|
siat/fund_china.pickle,sha256=QI3IjV46EeJ5ryO3xocmByc-6b_6_nDxgcXDhBHzop0,2380915
|
55
|
-
siat/fund_china.py,sha256=
|
55
|
+
siat/fund_china.py,sha256=Sa9_s1A_dTT_sBu_pYYw2WaNZF0MIrNy-5X2FO4Lm00,97528
|
56
56
|
siat/fund_china_test.py,sha256=-Bh6m0J0GPpIbYXx-H2vpzJoNFI6pE2C2jVPa8DazgE,6649
|
57
57
|
siat/fund_test.py,sha256=V4ADb8Gsp8gyeFTwcgRsJBpnUih_O-Q2V1ILc5oKjK8,1116
|
58
58
|
siat/future_china.py,sha256=F-HsIf2Op8Z22RzTjet1g8COzldgnMjFNSXsAkeGyWo,17595
|
@@ -101,7 +101,7 @@ siat/security_trend.py,sha256=o0vpWdrJkmODCP94X-Bvn-w7efHhj9HpUYBHtLl55D0,17240
|
|
101
101
|
siat/security_trend2.py,sha256=4yBY3ve0Kddu95JemS02gfLbrHVN2_gl_irr5pA4F6w,24626
|
102
102
|
siat/setup.py,sha256=up65rQGLmTBkhtaMLowjoQXYmIsnycnm4g1SYmeQS6o,1335
|
103
103
|
siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuYU-Esg,1418
|
104
|
-
siat/stock.py,sha256=
|
104
|
+
siat/stock.py,sha256=GkGRY06uIKFuXg0Rw2rhUPFw2LY0VHIV-FMQYcpEP9Q,139380
|
105
105
|
siat/stock_advice_linear.py,sha256=-twT7IGP-NEplkL1WPSACcNJjggRB2j4mlAQCkzOAuo,31655
|
106
106
|
siat/stock_base.py,sha256=uISvbRyOGy8p9QREA96CVydgflBkn5L3OXOGKl8oanc,1312
|
107
107
|
siat/stock_china.py,sha256=zyUyghIrkkkYWlHRRP7Hoblxzfp-jrck60pTJpwMahg,91553
|
@@ -132,7 +132,7 @@ siat/valuation.py,sha256=NKfeZMdDJOW42oLVHob6eSVBXUqlN1OCnnzwyGAst8c,48855
|
|
132
132
|
siat/valuation_china.py,sha256=Tde2LzPDQy3Z7xOQQDw4ckQMPdROp_z0-GjFE6Z5_lI,67639
|
133
133
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
134
134
|
siat/var_model_validation.py,sha256=f-oDewg7bPzyNanz_Y_jLH68NowAA3gXFehW_weKGG0,14898
|
135
|
-
siat-3.1.
|
136
|
-
siat-3.1.
|
137
|
-
siat-3.1.
|
138
|
-
siat-3.1.
|
135
|
+
siat-3.1.6.dist-info/METADATA,sha256=7I1oTuPz1RUF3cmw1c0t_zAdexvckE9P8x9U5sCp16c,1447
|
136
|
+
siat-3.1.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
137
|
+
siat-3.1.6.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
138
|
+
siat-3.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|