Skip to content

Commit

Permalink
fix: fix stock_sse_deal_daily
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Jan 20, 2025
1 parent 44316f1 commit b1f39e8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2988,9 +2988,10 @@
1.15.76 fix: fix futures_zh_minute_sina interface
1.15.77 fix: fix option_czce_daily interface
1.15.78 fix: fix stock_yzxdr_em interface
1.15.79 fix: fix stock_new_a_spot_em interface
"""

__version__ = "1.15.78"
__version__ = "1.15.79"
__author__ = "AKFamily"

import sys
Expand Down
7 changes: 4 additions & 3 deletions akshare/stock/stock_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ def stock_sse_summary() -> pd.DataFrame:
return temp_df


def stock_sse_deal_daily(date: str = "20180117") -> pd.DataFrame:
def stock_sse_deal_daily(date: str = "20060712") -> pd.DataFrame:
"""
上海证券交易所-数据-股票数据-成交概况-股票成交概况-每日股票情况
http://www.sse.com.cn/market/stockdata/overview/day/
https://www.sse.com.cn/market/stockdata/overview/day/
:return: 每日股票情况
:rtype: pandas.DataFrame
"""
Expand All @@ -242,7 +242,8 @@ def stock_sse_deal_daily(date: str = "20180117") -> pd.DataFrame:
}
headers = {
"Referer": "http://www.sse.com.cn/",
"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",
"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",
}
r = requests.get(url, params=params, headers=headers)
data_json = r.json()
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@

## 更新说明详情

1.15.79 fix: fix stock_new_a_spot_em interface

1. 修复 stock_new_a_spot_em 接口

1.15.78 fix: fix stock_yzxdr_em interface

1. 修复 stock_yzxdr_em 接口
Expand Down Expand Up @@ -5003,6 +5007,8 @@

## 版本更新说明

1.15.79 fix: fix stock_new_a_spot_em interface

1.15.78 fix: fix stock_yzxdr_em interface

1.15.77 fix: fix option_czce_daily interface
Expand Down
25 changes: 13 additions & 12 deletions docs/data/stock/stock.md
Original file line number Diff line number Diff line change
Expand Up @@ -810,18 +810,19 @@ print(stock_new_a_spot_em_df)
数据示例

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

###### 创业板
Expand Down

0 comments on commit b1f39e8

Please sign in to comment.