siat 3.4.3__py3-none-any.whl → 3.4.5__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/financials_china2.py CHANGED
@@ -2143,15 +2143,18 @@ def fs_analysis_china(tickers,fsdates=[],analysis_type='balance sheet', \
2143
2143
  elif ('dupont' in analysis_type1) and ('decompose' in analysis_type1):
2144
2144
  # 股票需为单只股票列表
2145
2145
  if not isinstance(tickers,str):
2146
- print(" #Warning(fs_analysis_china): must be one ticker for",tickers)
2147
- return
2146
+ if isinstance(tickers,list):
2147
+ tickers=tickers[0]
2148
+ else:
2149
+ print(" #Warning(fs_analysis_china): must be one ticker for",tickers)
2150
+ return
2148
2151
  # 日期需为一个日期
2149
2152
  if not isinstance(fsdates,str):
2150
- fsdates=fsdates[0]
2151
- """
2152
- print(" #Warning(fs_analysis_china): must one date for",fsdates)
2153
- return
2154
- """
2153
+ if isinstance(fsdates,list):
2154
+ fsdates=fsdates[0]
2155
+ else:
2156
+ print(" #Warning(fs_analysis_china): must one date for",fsdates)
2157
+ return
2155
2158
 
2156
2159
  # 单只股票的多层杜邦分解
2157
2160
  from siat.financials_china import dupont_decompose_china
siat/stock.py CHANGED
@@ -2453,10 +2453,10 @@ def candlestick_demo(stkcd,fromdate,todate, \
2453
2453
  low_txt=text_lang('最低价','Low')
2454
2454
  close_txt=text_lang('收盘价','Close')
2455
2455
 
2456
- plt.plot(p.index,p['Open'],color='green',ls="--",label=open_txt,marker='>',markersize=10,linewidth=2)
2457
- plt.plot(p.index,p['High'],color='cyan',ls="-.",label=high_txt,marker='^',markersize=10,linewidth=2)
2458
- plt.plot(p.index,p['Low'],color='k',ls=":",label=low_txt,marker='v',markersize=10,linewidth=2)
2459
- plt.plot(p.index,p['Close'],color='blue',ls="-",label=close_txt,marker='<',markersize=10,linewidth=2)
2456
+ plt.plot(p.index,p['Open'],color='green',ls="--",label=open_txt,marker='>',markersize=10,linewidth=2,alpha=0.5)
2457
+ plt.plot(p.index,p['High'],color='cyan',ls="-.",label=high_txt,marker='^',markersize=10,linewidth=2,alpha=0.5)
2458
+ plt.plot(p.index,p['Low'],color='k',ls=":",label=low_txt,marker='v',markersize=10,linewidth=2,alpha=0.5)
2459
+ plt.plot(p.index,p['Close'],color='blue',ls="-",label=close_txt,marker='<',markersize=10,linewidth=2,alpha=0.5)
2460
2460
 
2461
2461
  #绘制蜡烛图
2462
2462
  try:
@@ -2468,7 +2468,7 @@ def candlestick_demo(stkcd,fromdate,todate, \
2468
2468
  return None
2469
2469
 
2470
2470
  #candlestick_ohlc(ax,b,colorup=colorup,colordown=colordown,width=width,alpha=0.5)
2471
- candlestick_ohlc(ax,b,colorup=colorup,colordown=colordown,width=width)
2471
+ candlestick_ohlc(ax,b,colorup=colorup,colordown=colordown,width=width,alpha=0.5)
2472
2472
 
2473
2473
  ax.xaxis_date() #draw dates in x axis
2474
2474
  ax.autoscale_view()
siat/stock_technical.py CHANGED
@@ -2267,7 +2267,7 @@ def security_bollinger(ticker,fromdate,todate,boll_days=20, \
2267
2267
 
2268
2268
  y_label=text_lang('价格',"Price")
2269
2269
  import datetime; today = datetime.date.today()
2270
- x_label=text_lang("数据来源:综合新浪/东方财富/stooq/雅虎财经,","Data source: Sina/EM/Stooq/Yahoo, ")+str(today)
2270
+ x_label=text_lang("数据来源:Sina/EM/Stooq/Yahoo,","Data source: Sina/EM/Stooq/Yahoo, ")+str(today)
2271
2271
 
2272
2272
  axhline_value=0
2273
2273
  axhline_label=''
@@ -2444,7 +2444,7 @@ def security_bubble(ticker,fromdate,todate,boll_years=7, \
2444
2444
 
2445
2445
  y_label=indicatorname
2446
2446
  import datetime; today = datetime.date.today()
2447
- x_label="数据来源:综合新浪/东方财富/stooq/雅虎财经,"+str(today)+",估值前置窗口期"+str(boll_years)+"年"
2447
+ x_label="数据来源:Sina/EM/Stooq/Yahoo,"+str(today)+",估值前置窗口期"+str(boll_years)+"年"
2448
2448
 
2449
2449
  axhline_value=0
2450
2450
  axhline_label=''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.4.3
3
+ Version: 3.4.5
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
@@ -42,7 +42,7 @@ siat/financials.py,sha256=mbEZSNeHMMFcnPUryQWvdmNlWQvpnOG9eItgS7IVw3k,80458
42
42
  siat/financials2 - 副本.py,sha256=dKlNjIfKeoSy055fQ6E6TUj9HEoO5Ney9grD84J5kfk,14389
43
43
  siat/financials2.py,sha256=7mnsTncKsgwFu8PP4refh5C5iMIO9P0KOMSF87ZyncY,45736
44
44
  siat/financials_china.py,sha256=BkfY8A3YH2_NRyqIwGZ3MA1dq75VGhMaTqE0SAlbYrk,191413
45
- siat/financials_china2.py,sha256=UgLKLoRbWkKLdpQYBN6pkK55DLoBRdEFminkUuU56qI,92718
45
+ siat/financials_china2.py,sha256=tUvWZhUORrZ0EuCVVkJifbO-8d_hXUyA73OPmOX1CL0,92862
46
46
  siat/financials_china2_test.py,sha256=Erz5k4LyOplBBvYls2MypuqHpVNJ3daiLdyeJezNPu0,2722
47
47
  siat/financials_china2_test2.py,sha256=C8CuYTMHN4Mhp-sTu-Bmg0zMXRCaYV6ezGDoYartRYQ,3507
48
48
  siat/financials_china2_test3.py,sha256=UXYSA80DNSPRhHpovc2MA9JkpILWMAQaRatbWCHBNPs,3118
@@ -105,7 +105,7 @@ siat/security_trend2-20240620.py,sha256=QVnEcb7AyVbO77jVqfFsJffGXrX8pgJ9xCfoAKmW
105
105
  siat/security_trend2.py,sha256=lUMab8HilXIUPo_z9ZkztMiZ5kf3jAbbCwPPkYbQ1TI,25288
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=ouP2nnjYqgzAol0ljQHnnMPfG63U0NrEdME75w2J_ps,152394
108
+ siat/stock.py,sha256=22HTy0BfmynrkWuprNGlfRsYuWdTyCV0CJ9t_w5x238,152444
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
@@ -117,7 +117,7 @@ siat/stock_prices_kneighbors.py,sha256=WfZvo5EyeBsm-T37zDj7Sl9dPSRq5Bx4JxIJ9IUum
117
117
  siat/stock_prices_linear.py,sha256=-OUKRr27L2aStQgJSlJOrJ4gay_G7P-m-7t7cU2Yoqk,13991
118
118
  siat/stock_profile.py,sha256=B3eIwzEmiCqiCaxIlhfdEPsQBoW1PFOe1hkiY3mVF6Y,26038
119
119
  siat/stock_technical-20240620.py,sha256=A4x18mZgYSA8SSiDz4u_O3gd5oVRgbI6JIiBfFY0tVw,116013
120
- siat/stock_technical.py,sha256=bB53TCI3DE5pEwleEQjjrsuzMwhaEcmDmSuXt2xKceo,136112
120
+ siat/stock_technical.py,sha256=WpiB-e1u3PqUqu8uyY0xFP2rxXNvY9L9f7DZ7V4LQnU,136062
121
121
  siat/stock_test.py,sha256=E9YJAvOw1VEGJSDI4IZuEjl0tGoisOIlN-g9UqA_IZE,19475
122
122
  siat/stooq.py,sha256=dOc_S5HLrYg48YAKTCs1eX8UTJOOkPM8qLL2KupqlLY,2470
123
123
  siat/temp.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
@@ -139,7 +139,7 @@ siat/valuation_china.py,sha256=EkZQaVkoBjM0c4MCNbaX-bMnlG0e3FXeaWczZDnkptU,67784
139
139
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
140
140
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
141
141
  siat/yf_name.py,sha256=H1EM8YYXA8nQHIqsJlso0I3HKPiJLT3QujO4gRVQXWs,13945
142
- siat-3.4.3.dist-info/METADATA,sha256=BdluGvWZfaW-u4lZ4vOXaiYFqvURkobsftROJxS5Fh8,7309
143
- siat-3.4.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
144
- siat-3.4.3.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
145
- siat-3.4.3.dist-info/RECORD,,
142
+ siat-3.4.5.dist-info/METADATA,sha256=s7PokbLSpdGtRVg9ClmidJgxgmcaYFvsOPze9QP-UlQ,7309
143
+ siat-3.4.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
144
+ siat-3.4.5.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
145
+ siat-3.4.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5