siat 3.10.24__py3-none-any.whl → 3.10.25__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/security_prices.py CHANGED
@@ -1571,24 +1571,24 @@ def get_dividend_yq(ticker,start,end,facecolor="papayawhip"):
1571
1571
  print(f" No dividend info found for {ticker} during {start} to {end}")
1572
1572
  return None
1573
1573
 
1574
- div2['dividends']=div2['dividends'].apply(lambda x: round(x,4))
1574
+ div2['dividends']=div2['dividends'].apply(lambda x: str(round(x,5)))
1575
1575
  div2['Close']=div2['Close'].apply(lambda x: round(x,2))
1576
1576
  div2['Adj Close']=div2['Adj Close'].apply(lambda x: round(x,2))
1577
- div2.rename(columns={"date":text_lang("除息日期","ex-Dividend Date"), \
1578
- "dividends":text_lang("每股分红(本币,税前)","Dividend per Share (Pre-tax)"), \
1577
+ div2.rename(columns={"date":text_lang("除息日期","Ex-Dividend"), \
1578
+ "dividends":text_lang("每股分红(本币,税前)","Div per Share (Pre-tax)"), \
1579
1579
  "Close":text_lang("收盘价","Close Price"), \
1580
- "Adj Close":text_lang("前复权价","Adjusted Close Price")}, \
1580
+ "Adj Close":text_lang("调整收盘价(前复权价)","Adjusted Close Price")}, \
1581
1581
  inplace=True)
1582
1582
 
1583
1583
  titletxt=ticker_name(ticker,"stock")+": "+text_lang("股票分红历史","Stock Dividend History")
1584
1584
  import datetime
1585
1585
  todaydt = datetime.date.today()
1586
- footnote_cn=f"期间:{start}至{end}, 数据来源:雅虎, {todaydt}"
1587
- footnote_en=f"Period:{start} to {end}. Data source:Yahoo, {todaydt}"
1586
+ footnote_cn=f"【注】期间:{start}至{end}, 数据来源:雅虎, {todaydt}"
1587
+ footnote_en=f"[Note]Period:{start} to {end}. Data source:Yahoo, {todaydt}"
1588
1588
  footnote=text_lang(footnote_cn,footnote_en)
1589
1589
  df_display_CSS(div2,titletxt=titletxt,footnote=footnote,facecolor=facecolor,decimals=2, \
1590
1590
  first_col_align='center',second_col_align='center', \
1591
- last_col_align='right',other_col_align='center')
1591
+ last_col_align='center',other_col_align='center')
1592
1592
 
1593
1593
 
1594
1594
  return div2
@@ -1627,14 +1627,14 @@ def get_split_yq(ticker,start,end,facecolor="papayawhip"):
1627
1627
  div2.rename(columns={"date":text_lang("分拆日期","Split Date"), \
1628
1628
  "splits":text_lang("分拆比例","Split Ratio"), \
1629
1629
  "Close":text_lang("收盘价","Close Price"), \
1630
- "Adj Close":text_lang("前复权价","Adjusted Close Price")}, \
1630
+ "Adj Close":text_lang("调整收盘价(前复权价)","Adjusted Close Price")}, \
1631
1631
  inplace=True)
1632
1632
 
1633
1633
  titletxt=ticker_name(ticker,"stock")+": "+text_lang("股票分拆历史","Stock Split History")
1634
1634
  import datetime
1635
1635
  todaydt = datetime.date.today()
1636
- footnote_cn=f"期间:{start}至{end}, 数据来源:雅虎, {todaydt}"
1637
- footnote_en=f"Period:{start} to {end}. Data source:Yahoo, {todaydt}"
1636
+ footnote_cn=f"【注】期间:{start}至{end}, 数据来源:雅虎, {todaydt}"
1637
+ footnote_en=f"[Note]Period:{start} to {end}. Data source:Yahoo, {todaydt}"
1638
1638
  footnote=text_lang(footnote_cn,footnote_en)
1639
1639
  df_display_CSS(div2,titletxt=titletxt,footnote=footnote,facecolor=facecolor,decimals=2, \
1640
1640
  first_col_align='center',second_col_align='center', \
siat/stock_china.py CHANGED
@@ -1432,7 +1432,7 @@ def stock_profile_china(ticker,category='profile', \
1432
1432
  print(titletxt)
1433
1433
  print(" #Warning(stock_profile_china): dividend info not found for stock",ticker)
1434
1434
  """
1435
- print(f" {tickername}:{start}后未找到分红信息")
1435
+ print(f" {tickername}:no dividend info found after {start}")
1436
1436
  return
1437
1437
 
1438
1438
  if len(df3)==0:
@@ -1441,7 +1441,7 @@ def stock_profile_china(ticker,category='profile', \
1441
1441
  print(titletxt)
1442
1442
  print(" No dividend record found for stock",ticker)
1443
1443
  """
1444
- print(f" {tickername}:{start}后未找到分红信息")
1444
+ print(f" {tickername}:no dividend info found after {start}")
1445
1445
  return
1446
1446
 
1447
1447
  # 整理信息
@@ -1460,9 +1460,9 @@ def stock_profile_china(ticker,category='profile', \
1460
1460
  dftmp4=dftmp3[dftmp3['公告日期'] >= startpd.date()]
1461
1461
 
1462
1462
  if len(dftmp4) == 0:
1463
- print(f" {tickername}:{start}后未找到分红信息")
1463
+ print(f" {tickername}:no dividend info found after {start}")
1464
1464
  else:
1465
- titletxt=ticker_name(ticker,'stock')+':分红历史'
1465
+ titletxt=ticker_name(ticker,'stock')+': '+text_lang('分红历史','Dividend History')
1466
1466
  """
1467
1467
  if prettytab:
1468
1468
  pandas2prettytable(dftmp3,titletxt,firstColSpecial=False,leftColAlign='l',otherColAlign='c',tabborder=tabborder)
@@ -1473,7 +1473,16 @@ def stock_profile_china(ticker,category='profile', \
1473
1473
  print(dftmp3.to_markdown(tablefmt='Simple',index=False,colalign=alignlist))
1474
1474
  print('【注】送股/转增:股数/10股,派息:元(税前)/10股,数据来源:新浪财经,',str(today))
1475
1475
  """
1476
- footnote='【注】送股/转增:股数/10股,派息:元(税前)/10股,数据来源:新浪财经,'+str(stoday)
1476
+ footnotecn='【注】送股/转增:股数/10股,派息(元,税前)/10股,数据来源:新浪财经,'+str(stoday)
1477
+ footnoteen='[Note]Stock div/capitalization/cash div(RMB, pre-tax) per 10 shares, data source: Sina Finance, '+str(stoday)
1478
+ footnote=text_lang(footnotecn,footnoteen)
1479
+
1480
+ if check_language() == 'English':
1481
+ dftmp4.rename(columns={'公告日期':'Disclosure','送股':'Stock Div', \
1482
+ '转增':'Capitalization','派息':'Cash Div', \
1483
+ '股权登记日':'Record','除权除息日':'Ex-Dividend', \
1484
+ '红股上市日':'Stock Div Listing'},inplace=True)
1485
+
1477
1486
  df_display_CSS(df=dftmp4,titletxt=titletxt,footnote=footnote, \
1478
1487
  first_col_align='center',second_col_align='center', \
1479
1488
  last_col_align='center',other_col_align='center', \
@@ -1483,7 +1492,7 @@ def stock_profile_china(ticker,category='profile', \
1483
1492
  data_font_size=data_font_size)
1484
1493
 
1485
1494
  # 配股
1486
- titletxt=ticker_name(ticker,'stock')+':配股历史'
1495
+ titletxt=ticker_name(ticker,'stock')+': '+text_lang('配股历史','Rights Issue History')
1487
1496
  try:
1488
1497
  df3p=ak.stock_history_dividend_detail(symbol=ticker1, indicator="配股")
1489
1498
  except:
@@ -1526,8 +1535,17 @@ def stock_profile_china(ticker,category='profile', \
1526
1535
  print(dftmp3.to_markdown(tablefmt='Simple',index=False,colalign=alignlist))
1527
1536
  print('【注】配股方案:每10股的配股数,配股价格为元。数据来源:新浪财经,',str(today))
1528
1537
  """
1529
- footnote='【注】配股方案:每10股的配股数,配股价格为元。数据来源:新浪财经,'+str(stoday)
1530
- df_display_CSS(df=dftmp3,titletxt=titletxt,footnote=footnote, \
1538
+ footnotecn='【注】配股方案:每10股的配股数,配股价格为元。数据来源:新浪财经,'+str(stoday)
1539
+ footnoteen='Rights issue ratio: per 10 shares, subscription price in RMB, data source: Sina Finance, '+str(stoday)
1540
+ footnote=text_lang(footnotecn,footnoteen)
1541
+
1542
+ if check_language() == 'English':
1543
+ dftmp4.rename(columns={'公告日期':'Disclosure','配股方案':'Rights Issue Ratio', \
1544
+ '配股价格':'Subscription Price','股权登记日':'Record', \
1545
+ '除权日':'Ex-Rights','缴款起始日':'Subscription Start', \
1546
+ '缴款终止日':'Subscription End','配股上市日':'Rights Listing'},inplace=True)
1547
+
1548
+ df_display_CSS(df=dftmp4,titletxt=titletxt,footnote=footnote, \
1531
1549
  first_col_align='center',second_col_align='center', \
1532
1550
  last_col_align='center',other_col_align='center', \
1533
1551
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.10.24
3
+ Version: 3.10.25
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
@@ -103,7 +103,7 @@ siat/sector_china.py,sha256=9zjdORWx5ia_gUezidhOKWmCnVDwWcnnjjugHudelaQ,157411
103
103
  siat/sector_china_test.py,sha256=1wq7ef8Bb_L8F0h0W6FvyBrIcBTEbrTV7hljtpj49U4,5843
104
104
  siat/security_price.py,sha256=2oHskgiw41KMGfqtnA0i2YjNNV6cYgtlUK0j3YeuXWs,29185
105
105
  siat/security_price2.py,sha256=uC-wA6w3IlA9ZOJYINqIB7LexCbrnnqTkHTPuCSCwpo,27697
106
- siat/security_prices.py,sha256=C5fhNlkZF3EmDgc5V8saqWYSa6SLdJs1Ax7NQoBR_cg,116618
106
+ siat/security_prices.py,sha256=CQOl0vb7Bzpj_Zc6d2newqpYoO4KG_H5Cbt6D0OrHR4,116678
107
107
  siat/security_prices_test.py,sha256=OEphoJ87NPKoNow1QA8EU_5MUYrJF-qKoWKNapVfZNI,10779
108
108
  siat/security_trend.py,sha256=o0vpWdrJkmODCP94X-Bvn-w7efHhj9HpUYBHtLl55D0,17240
109
109
  siat/security_trend2-20240620.py,sha256=QVnEcb7AyVbO77jVqfFsJffGXrX8pgJ9xCfoAKmWBPk,24854
@@ -113,7 +113,7 @@ siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuY
113
113
  siat/stock.py,sha256=iSObjGX9D8HwVnqQZkpz-spzolqkUYBYWo9ylg37RLg,160210
114
114
  siat/stock_advice_linear.py,sha256=-twT7IGP-NEplkL1WPSACcNJjggRB2j4mlAQCkzOAuo,31655
115
115
  siat/stock_base.py,sha256=uISvbRyOGy8p9QREA96CVydgflBkn5L3OXOGKl8oanc,1312
116
- siat/stock_china.py,sha256=WeHhZ7GlsKdkfkBoaXrk3hCmK6PmHjNcdJKUN2S2xEE,94967
116
+ siat/stock_china.py,sha256=vHIc2UuXIGRkRvyL4fjTaNAoyFaq022p9FxPah6dscI,96399
117
117
  siat/stock_china_test.py,sha256=eO4HWsSvc6qezl0LndjtL24lViEyrBjH_sx2c2Y2Q2M,1294
118
118
  siat/stock_info.pickle,sha256=XqcFwQrXoBXAzZnE6rnfpI7zETXZS2usqzsx2ff7MEg,1319005
119
119
  siat/stock_info_test.py,sha256=gfG3DbhDACbtD8wnv_R6zhj0t11XaC8NX8uLD9Qv3Fo,6122
@@ -145,8 +145,8 @@ siat/valuation_china.py,sha256=eSKIDckyjG8QkENlW_OKkqbQHno8pzDcomBO9iGNJVM,83079
145
145
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
146
146
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
147
147
  siat/yf_name.py,sha256=laNKMTZ9hdenGX3IZ7G0a2RLBKEWtUQJFY9CWuk_fp8,24058
148
- siat-3.10.24.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
- siat-3.10.24.dist-info/METADATA,sha256=SAbYZhLq09GVuxGheLXjWBJWUWUkHkzFWrqr5lJ53IE,8222
150
- siat-3.10.24.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
151
- siat-3.10.24.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
- siat-3.10.24.dist-info/RECORD,,
148
+ siat-3.10.25.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
+ siat-3.10.25.dist-info/METADATA,sha256=8zLTAuDSMWnx-3RecjWbBGR39G-BFva0o-i4xxHoZ5w,8222
150
+ siat-3.10.25.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
151
+ siat-3.10.25.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
+ siat-3.10.25.dist-info/RECORD,,
File without changes