siat 1.7.45__py3-none-any.whl → 1.7.47__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/economy.py +7 -2
- siat/stock.py +1 -1
- siat/translate.py +3 -0
- {siat-1.7.45.dist-info → siat-1.7.47.dist-info}/METADATA +1 -3
- {siat-1.7.45.dist-info → siat-1.7.47.dist-info}/RECORD +7 -7
- {siat-1.7.45.dist-info → siat-1.7.47.dist-info}/WHEEL +1 -1
- {siat-1.7.45.dist-info → siat-1.7.47.dist-info}/top_level.txt +0 -0
siat/economy.py
CHANGED
@@ -191,7 +191,7 @@ if __name__=='__main__':
|
|
191
191
|
get_econ_factors('2010-1-1','2020-8-31','?','Constant GDP')
|
192
192
|
get_econ_factors('2010-1-1','2020-8-31','China','?')
|
193
193
|
#==============================================================================
|
194
|
-
def economy_trend(start,end,scope='China',factor='GDP',datatag=False,power=
|
194
|
+
def economy_trend(start,end,scope='China',factor='GDP',datatag=False,power=0,zeroline=False):
|
195
195
|
"""
|
196
196
|
功能:绘制宏观经济指标,单线,有趋势线
|
197
197
|
"""
|
@@ -209,7 +209,7 @@ def economy_trend(start,end,scope='China',factor='GDP',datatag=False,power=3,zer
|
|
209
209
|
|
210
210
|
#绘图
|
211
211
|
ylabeltxt=ectranslate(factor)
|
212
|
-
titletxt=ectranslate(list(ds['name'])[0])+'
|
212
|
+
titletxt=ectranslate(list(ds['name'])[0])+'变化趋势:'+ectranslate(scope)
|
213
213
|
|
214
214
|
import datetime
|
215
215
|
today=datetime.date.today()
|
@@ -1086,10 +1086,15 @@ def pmi_china(fromdate,todate,loc='lower center'):
|
|
1086
1086
|
colname1="非制造业PMI"
|
1087
1087
|
label1="非制造业"
|
1088
1088
|
titletxt="中国采购经理人指数PMI:非制造业"
|
1089
|
+
plot_line2(df2,ticker1,colname1,label1, \
|
1090
|
+
df2,ticker2,colname2,label2, \
|
1091
|
+
ylabeltxt,titletxt,footnote,loc1=loc)
|
1092
|
+
"""
|
1089
1093
|
plot2_line2(df2,ticker1,colname1,label1, \
|
1090
1094
|
df2,ticker2,colname2,label2, \
|
1091
1095
|
ylabeltxt,titletxt,footnote,loc1=loc, \
|
1092
1096
|
date_range=True,date_freq='1M',date_fmt='%Y-%m')
|
1097
|
+
"""
|
1093
1098
|
#返回数据
|
1094
1099
|
return df2
|
1095
1100
|
|
siat/stock.py
CHANGED
@@ -1220,7 +1220,7 @@ def compare_msecurity(tickers,measure,start,end, \
|
|
1220
1220
|
axhline_value=0,axhline_label='', \
|
1221
1221
|
preprocess='none',linewidth=1.5, \
|
1222
1222
|
scaling_option='start', \
|
1223
|
-
|
1223
|
+
graph=True):
|
1224
1224
|
"""
|
1225
1225
|
功能:比较并绘制多条证券指标曲线(多于2条),个数可为双数或单数
|
1226
1226
|
注意:
|
siat/translate.py
CHANGED
@@ -761,6 +761,8 @@ def codetranslate0(code):
|
|
761
761
|
|
762
762
|
['SIVB','硅谷银行'],['WFC','富国银行'],['SBNY','签字银行'],
|
763
763
|
['FRC','第一共和银行'],['CS','瑞士信贷'],['UBS','瑞银'],
|
764
|
+
['SI','加密友好银行'],
|
765
|
+
|
764
766
|
|
765
767
|
['8306.T','三菱日联金融'],['MITSUBISHI UFJ FINANCIAL GROUP','三菱日联金融'],
|
766
768
|
['8411.T','日股瑞穗金融'],['MIZUHO FINANCIAL GROUP','瑞穗金融'],
|
@@ -1255,6 +1257,7 @@ def codetranslate1(code):
|
|
1255
1257
|
|
1256
1258
|
['SIVB','Silicon Valley Bank'],['WFC','Wells Fargo'],['SBNY','Signature Bank'],
|
1257
1259
|
['FRC','First Republic Bank'],['CS','Credit Suisse'],['UBS','UBS Group'],
|
1260
|
+
['SI','Silvergate Capital'],
|
1258
1261
|
|
1259
1262
|
['8306.T','MITSUBISHI UFJ'],['MITSUBISHI UFJ FINANCIAL GROUP','MITSUBISHI UFJ'],
|
1260
1263
|
['8411.T','MIZUHO FINANCIAL'],['MIZUHO FINANCIAL GROUP','MIZUHO FINANCIAL'],
|
@@ -1,12 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: siat
|
3
|
-
Version: 1.7.
|
3
|
+
Version: 1.7.47
|
4
4
|
Summary: Securities Investment Analysis Tools (siat)
|
5
5
|
Home-page: https://pypi.org/project/siat/
|
6
6
|
Author: Prof. WANG Dehong, Business School, BFSU (北京外国语大学 国际商学院 王德宏 教授)
|
7
7
|
Author-email: wdehong2000@163.com
|
8
8
|
License: Copyright (C) WANG Dehong, 2023. For educational purpose only!
|
9
|
-
Platform: UNKNOWN
|
10
9
|
Requires-Dist: pandas-datareader
|
11
10
|
Requires-Dist: yfinance
|
12
11
|
Requires-Dist: plotly-express
|
@@ -37,4 +36,3 @@ Requires-Dist: prettytable
|
|
37
36
|
The author is not responsible for the results of applying this plug-in in real
|
38
37
|
investment activities.
|
39
38
|
|
40
|
-
|
@@ -22,7 +22,7 @@ siat/cryptocurrency.py,sha256=SKh_S85cqd2tRgKBKls1Fpd6HdFd9JfmUTCa2e3mpsE,27351
|
|
22
22
|
siat/cryptocurrency_test.py,sha256=3AikTNJ7j-HwLGLIYEfyXZ3bLVuLeru9mwiwHQi2SdA,2669
|
23
23
|
siat/derivative.py,sha256=qV8n09799eqLc26ojR6vN5n_X-xd7rGwdYjgq-wBih8,41483
|
24
24
|
siat/economy-20230125.py,sha256=vxZZlPnLkh7SpGMVEPLwxjt0yYLSVmdZrO-s2NYLyoM,73848
|
25
|
-
siat/economy.py,sha256=
|
25
|
+
siat/economy.py,sha256=sXg0TBp9lh2Hfx5lq97Lk-Zq1OOj3llJqwYBmvoanHk,73720
|
26
26
|
siat/economy_test.py,sha256=6vjNlPz7W125pJb7simCddobSEp3jmLIMvVkLRZ7zW8,13339
|
27
27
|
siat/esg.py,sha256=Kzui78HKwnLvtxWcjjnSjME6IZKK9cR3zSZYqTtAO0k,18941
|
28
28
|
siat/esg_test.py,sha256=Z9m6GUt8O7oHZSEG9aDYpGdvvrv2AiRJdHTiU6jqmZ0,2944
|
@@ -80,7 +80,7 @@ siat/security_prices.py,sha256=oe_QLqmQtrWOP2oP-hQc9-TaGoMpiMfvLG38lkZTqfI,69727
|
|
80
80
|
siat/security_prices_test.py,sha256=OEphoJ87NPKoNow1QA8EU_5MUYrJF-qKoWKNapVfZNI,10779
|
81
81
|
siat/setup.py,sha256=up65rQGLmTBkhtaMLowjoQXYmIsnycnm4g1SYmeQS6o,1335
|
82
82
|
siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuYU-Esg,1418
|
83
|
-
siat/stock.py,sha256=
|
83
|
+
siat/stock.py,sha256=I-FSS8jLmegIZjMPZhJ36MlZeeRgiMlE2Gt9aAO1oVk,117152
|
84
84
|
siat/stock_advice_linear.py,sha256=-twT7IGP-NEplkL1WPSACcNJjggRB2j4mlAQCkzOAuo,31655
|
85
85
|
siat/stock_base.py,sha256=uISvbRyOGy8p9QREA96CVydgflBkn5L3OXOGKl8oanc,1312
|
86
86
|
siat/stock_china.py,sha256=au0XL1DVR3e1JZdU2gxyepJMPLy0dIb-LPSAiHERnOc,68107
|
@@ -99,12 +99,12 @@ siat/transaction_test.py,sha256=Z8g1LJCN4-mnUByXMUMoFmN0t105cbmsz2QmvSuIkbU,1858
|
|
99
99
|
siat/translate-20230125.py,sha256=NPPSXhT38s5t9fzMvl_fvi4ckSB73ThLmZetVI-xGdU,117953
|
100
100
|
siat/translate-20230206.py,sha256=-vtI125WyaJhmPotOpDAmclt_XnYVaWU9ByLWZ6FyYE,118133
|
101
101
|
siat/translate-20230215.py,sha256=TJgtPE3n8IjljmZ4Pefy8dmHoNdFF-1zpML6BhA9FKE,121657
|
102
|
-
siat/translate.py,sha256=
|
102
|
+
siat/translate.py,sha256=HmVTaKxiV39BAnkidWhcXN0yNqi_WUIi8rrWyYHChyQ,124748
|
103
103
|
siat/universal_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
|
104
104
|
siat/valuation_china.py,sha256=U9FQgFcbJcS-S0cwy8iJ9Z0Rf8sxCN5Pxhm1DItUUgQ,51206
|
105
105
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
106
106
|
siat/var_model_validation.py,sha256=zB_Skk_tmzIR15l6oAW3am4HBGVIG-eZ8gJhCdXZ8Qw,14859
|
107
|
-
siat-1.7.
|
108
|
-
siat-1.7.
|
109
|
-
siat-1.7.
|
110
|
-
siat-1.7.
|
107
|
+
siat-1.7.47.dist-info/METADATA,sha256=MGvcCH1qOJbiYXFVQQKmJdHYZ1Iw9B4Fj7gvEF2WdeA,1381
|
108
|
+
siat-1.7.47.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
109
|
+
siat-1.7.47.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
110
|
+
siat-1.7.47.dist-info/RECORD,,
|
File without changes
|