Skip to content

Commit

Permalink
fix(sw_index_second_spot): fix sw_index_second_spot interface
Browse files Browse the repository at this point in the history
fix sw_index_second_spot interface
  • Loading branch information
ak-quant committed May 6, 2022
1 parent 5b3a70f commit 864499c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1979,9 +1979,10 @@
1.5.57 add: add stock_profit_sheet_by_report_em interface
1.5.58 add: add stock_profit_sheet_by_quarterly_em interface
1.5.59 add: add stock_profit_sheet_by_yearly_em interface
1.5.60 fix: fix sw_index_second_spot interface
"""

__version__ = "1.5.59"
__version__ = "1.5.60"
__author__ = "AKFamily"

import sys
Expand Down
6 changes: 3 additions & 3 deletions akshare/air/air_zhenqi.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ def air_quality_rank(date: str = "") -> pd.DataFrame:
print(air_quality_watch_point_df)

air_quality_hist_df = air_quality_hist(
city="杭州",
city="北京",
period="day",
start_date="20220309",
end_date="20220409",
start_date="20200320",
end_date="20200427",
)
print(air_quality_hist_df)

Expand Down
6 changes: 3 additions & 3 deletions akshare/index/index_sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ def sw_index_second_spot() -> pd.DataFrame:
:rtype: pandas.DataFrame
"""
result = []
for i in range(1, 6):
for i in range(1, 8):
payload = {
"tablename": "swzs",
"key": "L1",
"p": "1",
"where": "L1 in('801011','801012','801013','801014','801015','801016','801021','801022','801023','801032','801033','801034','801035','801036','801037','801041','801051','801072','801073','801074','801075','801081','801082','801083','801084','801092','801093','801094','801101','801102','801111','801112','801123','801131','801132','801141','801142','801143','801151','801152','801153','801154','801155','801156','801161','801162','801163','801164','801171','801172','801173','801174','801175','801176','801177','801178','801181','801182','801191','801192','801193','801194','801202','801211','801212','801213','801214','801222','801223','801053','801054','801055','801076','801203','801204','801205','801711','801712','801713','801721','801722','801723','801724','801725','801731','801732','801733','801734','801741','801742','801743','801744','801751','801752','801761','801881','801017','801018')",
"where": "L1 in('801012','801014','801015','801016','801017','801018','801032','801033','801034','801036','801037','801038','801039','801043','801044','801045','801051','801053','801054','801055','801056','801072','801074','801076','801077','801078','801081','801082','801083','801084','801085','801086','801092','801093','801095','801096','801101','801102','801103','801104','801111','801112','801113','801114','801115','801116','801124','801125','801126','801127','801128','801129','801131','801132','801133','801141','801142','801143','801145','801151','801152','801153','801154','801155','801156','801161','801163','801178','801179','801181','801183','801191','801193','801194','801202','801203','801204','801206','801218','801219','801223','801231','801711','801712','801713','801721','801722','801723','801724','801726','801731','801733','801735','801736','801737','801738','801741','801742','801743','801744','801745','801764','801765','801766','801767','801769','801782','801783','801784','801785','801881','801951','801952','801962','801963','801971','801972','801981','801982','801991','801992','801993','801994','801995')",
"orderby": "",
"fieldlist": "L1,L2,L3,L4,L5,L6,L7,L8,L11",
"pagecount": "98",
"pagecount": "124",
"timed": "",
}
payload.update({"p": i})
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

## 更新说明

1.5.60 fix: fix sw_index_second_spot interface

1. 修复 sw_index_second_spot 接口,更新接口提交采纳数

1.5.59 add: add stock_profit_sheet_by_yearly_em interface

1. 新增 stock_profit_sheet_by_yearly_em 接口,获取利润表-按年度数据
Expand Down Expand Up @@ -513,6 +517,8 @@

## 版本更新说明

1.5.60 fix: fix sw_index_second_spot interface

1.5.59 add: add stock_profit_sheet_by_yearly_em interface

1.5.58 add: add stock_profit_sheet_by_quarterly_em interface
Expand Down

0 comments on commit 864499c

Please sign in to comment.