Skip to content

Commit b1f39e8

Browse files
author
jindaxiang
committed
fix: fix stock_sse_deal_daily
1 parent 44316f1 commit b1f39e8

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

akshare/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2988,9 +2988,10 @@
29882988
1.15.76 fix: fix futures_zh_minute_sina interface
29892989
1.15.77 fix: fix option_czce_daily interface
29902990
1.15.78 fix: fix stock_yzxdr_em interface
2991+
1.15.79 fix: fix stock_new_a_spot_em interface
29912992
"""
29922993

2993-
__version__ = "1.15.78"
2994+
__version__ = "1.15.79"
29942995
__author__ = "AKFamily"
29952996

29962997
import sys

akshare/stock/stock_summary.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ def stock_sse_summary() -> pd.DataFrame:
225225
return temp_df
226226

227227

228-
def stock_sse_deal_daily(date: str = "20180117") -> pd.DataFrame:
228+
def stock_sse_deal_daily(date: str = "20060712") -> pd.DataFrame:
229229
"""
230230
上海证券交易所-数据-股票数据-成交概况-股票成交概况-每日股票情况
231-
http://www.sse.com.cn/market/stockdata/overview/day/
231+
https://www.sse.com.cn/market/stockdata/overview/day/
232232
:return: 每日股票情况
233233
:rtype: pandas.DataFrame
234234
"""
@@ -242,7 +242,8 @@ def stock_sse_deal_daily(date: str = "20180117") -> pd.DataFrame:
242242
}
243243
headers = {
244244
"Referer": "http://www.sse.com.cn/",
245-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
245+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
246+
"Chrome/89.0.4389.90 Safari/537.36",
246247
}
247248
r = requests.get(url, params=params, headers=headers)
248249
data_json = r.json()

docs/changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080

8181
## 更新说明详情
8282

83+
1.15.79 fix: fix stock_new_a_spot_em interface
84+
85+
1. 修复 stock_new_a_spot_em 接口
86+
8387
1.15.78 fix: fix stock_yzxdr_em interface
8488

8589
1. 修复 stock_yzxdr_em 接口
@@ -5003,6 +5007,8 @@
50035007

50045008
## 版本更新说明
50055009

5010+
1.15.79 fix: fix stock_new_a_spot_em interface
5011+
50065012
1.15.78 fix: fix stock_yzxdr_em interface
50075013

50085014
1.15.77 fix: fix option_czce_daily interface

docs/data/stock/stock.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -810,18 +810,19 @@ print(stock_new_a_spot_em_df)
810810
数据示例
811811

812812
```
813-
序号 代码 名称 最新价 ... 涨速 5分钟涨跌 60日涨跌幅 年初至今涨跌幅
814-
0 1 688327 C云从-UW 32.30 ... 3.23 3.03 110.15 110.15
815-
1 2 688045 必易微 71.40 ... 0.00 -0.04 29.47 29.47
816-
2 3 301191 菲菱科思 80.92 ... 0.00 0.00 12.39 12.39
817-
3 4 301183 东田微 38.27 ... 0.16 -0.47 66.97 66.97
818-
4 5 301107 瑜欣电子 44.12 ... -0.16 -0.81 72.07 72.07
819-
.. ... ... ... ... ... ... ... ... ...
820-
386 387 301011 华立科技 31.01 ... -0.03 0.06 -32.63 -48.49
821-
387 388 301009 可靠股份 12.90 ... 0.00 0.08 -32.03 -29.82
822-
388 389 688067 爱威科技 23.07 ... 0.39 -0.09 -18.82 -17.04
823-
389 390 688700 东威科技 70.59 ... -0.04 -0.01 18.26 3.66
824-
390 391 603529 爱玛科技 60.74 ... 0.00 0.02 63.50 33.29
813+
序号 代码 名称 最新价 涨跌幅 ... 流通市值 涨速 5分钟涨跌 60日涨跌幅 年初至今涨跌幅
814+
0 1 688583 C思看 91.96 2.17 ... 1175280710 0.09 0.17 174.84 174.84
815+
1 2 301601 C惠通 39.69 1.69 ... 1189592887 0.05 -0.08 236.36 236.36
816+
2 3 688758 赛分科技 15.87 1.54 ... 626933019 0.06 0.00 267.36 267.36
817+
3 4 301458 钧崴电子 40.15 19.99 ... 2452564476 0.00 0.00 286.06 286.06
818+
4 5 603072 天和磁材 38.01 -0.99 ... 2460981244 0.00 0.16 209.02 209.02
819+
.. .. ... ... ... ... ... ... ... ... ... ...
820+
68 69 301591 肯特股份 36.84 6.17 ... 774745200 -0.08 -0.19 -4.56 -3.79
821+
69 70 688584 上海合晶 18.62 -0.96 ... 1048019122 -0.11 -0.21 5.32 -4.81
822+
70 71 301589 诺瓦星云 163.23 1.45 ... 3018057408 -0.06 0.19 -13.63 -5.97
823+
71 72 688709 成都华微 29.38 1.31 ... 2265703747 0.20 -0.03 33.24 -4.86
824+
72 73 301502 华阳智能 41.98 -0.52 ... 599096580 0.43 0.55 -7.49 -2.60
825+
[73 rows x 24 columns]
825826
```
826827

827828
###### 创业板

0 commit comments

Comments
 (0)