siat 3.10.11__py3-none-any.whl → 3.10.12__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
@@ -449,7 +449,8 @@ def cvt_stooq_suffix(symbol):
449
449
  """
450
450
  import pandas as pd
451
451
  suffix=pd.DataFrame([
452
- ['SS','CN'], ['SH','CN'], ['SZ','CN'], ['BJ','CN'], ['T','JP'],
452
+ ['SS','CN'], ['SH','CN'], ['SZ','CN'], ['BJ','CN'],
453
+ ['T','JP'],['L','UK'],
453
454
 
454
455
  ], columns=['yahoo','stooq'])
455
456
 
@@ -496,10 +497,14 @@ if __name__=='__main__':
496
497
  cvt_stooq_symbol('^GSPC')
497
498
  cvt_stooq_symbol('^IXIC')
498
499
  cvt_stooq_symbol('000001.SS')
500
+ cvt_stooq_symbol('600619.SS')
501
+
499
502
  #==================================================================================
500
503
  if __name__=='__main__':
501
504
  ticker='600519.SS'
502
- ticker='0LNG.UK'
505
+ ticker='0LNG.L'
506
+
507
+ cvt_stooq_ticker(ticker)
503
508
 
504
509
  def cvt_stooq_ticker(ticker):
505
510
  """
@@ -509,7 +514,7 @@ def cvt_stooq_ticker(ticker):
509
514
  """
510
515
  #直接转换
511
516
  result,ticker_stooq=cvt_stooq_symbol(ticker)
512
- if result:
517
+ if not result:
513
518
  return ticker_stooq
514
519
 
515
520
  #拆分前缀后缀
@@ -552,6 +557,7 @@ if __name__=='__main__':
552
557
  ticker='INPYCN.M'
553
558
  ticker='TRBNCN.M'
554
559
  ticker='RSAYCN.M'
560
+ ticker='600519.SS'
555
561
 
556
562
  ticker='GC.F' #无法下载
557
563
  ticker='XAUCNY' #一盎司黄金的现货人民币价格
@@ -559,8 +565,7 @@ if __name__=='__main__':
559
565
 
560
566
  ticker=['AAPL','MSFT']
561
567
 
562
- start='2023-1-1'
563
- end='2024-2-19'
568
+ start='2025-6-1'; end='2025-6-1'
564
569
 
565
570
  p=get_price_stooq(ticker,start,end)
566
571
 
siat/security_trend2.py CHANGED
@@ -151,6 +151,7 @@ def security_trend(ticker,indicator='Close',adjust='', \
151
151
 
152
152
  annotate=False,annotate_value=False, \
153
153
  mark_top=False,mark_bottom=False, \
154
+ mark_high=False,mark_low=False, \
154
155
  mark_start=False,mark_end=False, \
155
156
 
156
157
  printout=False,source='auto', \
@@ -238,6 +239,9 @@ def security_trend(ticker,indicator='Close',adjust='', \
238
239
  """
239
240
  DEBUG=False
240
241
 
242
+ if mark_high: mark_top=True
243
+ if mark_low: mark_bottom=True
244
+
241
245
  print(f" Looking for info of specified securities ...")
242
246
 
243
247
  #critical_value=attention_value
siat/stooq.py CHANGED
@@ -60,6 +60,7 @@ class StooqDailyReader(_DailyBaseReader):
60
60
  "f",
61
61
  "b",
62
62
  "m",
63
+ "cn",
63
64
  ]:
64
65
  symbol = ".".join([symbol, "US"])
65
66
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.10.11
3
+ Version: 3.10.12
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
@@ -8,15 +8,15 @@ Author-email: wdehong2000@163.com
8
8
  License: Copyright (C) WANG Dehong, 2024. For educational purpose only!
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
- Requires-Dist: pandas_datareader
11
+ Requires-Dist: pandas-datareader
12
12
  Requires-Dist: yfinance
13
13
  Requires-Dist: tqdm
14
- Requires-Dist: plotly_express
14
+ Requires-Dist: plotly-express
15
15
  Requires-Dist: akshare
16
16
  Requires-Dist: urllib3
17
17
  Requires-Dist: mplfinance
18
18
  Requires-Dist: statsmodels
19
- Requires-Dist: yahoo_earnings_calendar
19
+ Requires-Dist: yahoo-earnings-calendar
20
20
  Requires-Dist: pypinyin
21
21
  Requires-Dist: seaborn
22
22
  Requires-Dist: numpy
@@ -32,24 +32,16 @@ Requires-Dist: graphviz
32
32
  Requires-Dist: luddite
33
33
  Requires-Dist: pendulum
34
34
  Requires-Dist: itables
35
- Requires-Dist: py_trans
35
+ Requires-Dist: py-trans
36
36
  Requires-Dist: bottleneck
37
37
  Requires-Dist: translate
38
38
  Requires-Dist: translators
39
39
  Requires-Dist: nbconvert
40
- Requires-Dist: ipywidgets==8.1.6
40
+ Requires-Dist: ipywidgets ==8.1.6
41
41
  Requires-Dist: playwright
42
- Requires-Dist: yahooquery==2.3.7
43
- Requires-Dist: alpha_vantage
42
+ Requires-Dist: yahooquery ==2.3.7
43
+ Requires-Dist: alpha-vantage
44
44
  Requires-Dist: tiingo[pandas]
45
- Dynamic: author
46
- Dynamic: author-email
47
- Dynamic: description
48
- Dynamic: description-content-type
49
- Dynamic: home-page
50
- Dynamic: license
51
- Dynamic: requires-dist
52
- Dynamic: summary
53
45
 
54
46
 
55
47
  # What is siat?
@@ -103,11 +103,11 @@ 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=W6_K6mbwlPTrhxQDIGPjfx--jGD8Tdijxt-qOXeXcjk,111941
106
+ siat/security_prices.py,sha256=QD5ane5AqxuBtTLI986fRflQKHB1Q22lrIehncnOcCM,112061
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
110
- siat/security_trend2.py,sha256=CS2dMIC4dtTrFJ-X6DmVeujw_twzbJ0ou9cYuhbG7FM,31144
110
+ siat/security_trend2.py,sha256=F52KQbW5y7j5Ltmsy_YIddA0Jqb34IkBym7IfD-8PwI,31282
111
111
  siat/setup.py,sha256=up65rQGLmTBkhtaMLowjoQXYmIsnycnm4g1SYmeQS6o,1335
112
112
  siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuYU-Esg,1418
113
113
  siat/stock.py,sha256=ZTsewPKh_sDz-nd4GxR9af7V1ajTSqTAYUop_sf3PcM,160225
@@ -124,7 +124,7 @@ siat/stock_profile.py,sha256=BuvdrQ3bqIAUCaM2GxPR6_rUhigQQa_YMeUov2zY6Y0,26084
124
124
  siat/stock_technical-20240620.py,sha256=A4x18mZgYSA8SSiDz4u_O3gd5oVRgbI6JIiBfFY0tVw,116013
125
125
  siat/stock_technical.py,sha256=1P4FkOTPknG2m18NTgwMxN-NgwIAdW3qR09VoFz00Hc,140928
126
126
  siat/stock_test.py,sha256=E9YJAvOw1VEGJSDI4IZuEjl0tGoisOIlN-g9UqA_IZE,19475
127
- siat/stooq.py,sha256=SiRnSUu92pfzIZQ8N4Yo-9VOVSwUSqQE0wqXhF-4y9g,2493
127
+ siat/stooq.py,sha256=TTLjAAp-TcoEezgCPu6eM_5naI4yCshp1S7V3pyc-og,2519
128
128
  siat/temp.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
129
129
  siat/test2_graphviz.py,sha256=05w2YJuIBH0LsJjdA60EFn7rL0vCo-CA6EVJEQOXNE4,16648
130
130
  siat/test_graphviz.py,sha256=CETKpDL8PnysS-PD3fHkeAgagUxjaUl0CsXPiadQySg,16999
@@ -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.11.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
- siat-3.10.11.dist-info/METADATA,sha256=oCWBelUMSlhnoyP16cqkkknPak8vHOaUUD8cHfVx9YM,8397
150
- siat-3.10.11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
151
- siat-3.10.11.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
- siat-3.10.11.dist-info/RECORD,,
148
+ siat-3.10.12.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
+ siat-3.10.12.dist-info/METADATA,sha256=O87EdZttW9eSHY50pNz2z7eJGnNR3DC-1Y8fF7DtZrw,8222
150
+ siat-3.10.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
151
+ siat-3.10.12.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
+ siat-3.10.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5