data = pro.stock_basic(exchange='SSE', list_status='D', fields='ts_code,symbol,name,area,industry,fullname,enname,market,list_status,list_date,delist_date,is_hs')
获取上交所已退市股票,找到最后一只股票,
print(data.iloc[-1])
结果显示:
ts_code T00018.SH
symbol T00018
name 上港集箱(退)
area None
industry None
fullname 上海港集装箱股份有限公司
enname Shanghai Port Container Co., Ltd.
market None
list_status D
list_date 20000719
delist_date 20061020
is_hs N
Name: 89, dtype: object
data = pro.stock_basic(exchange='SSE', list_status='D', fields='ts_code,symbol,name,area,industry,fullname,enname,market,list_status,list_date,delist_date,is_hs')
获取上交所已退市股票,找到最后一只股票,
print(data.iloc[-1])
结果显示:
ts_code T00018.SH symbol T00018 name 上港集箱(退) area None industry None fullname 上海港集装箱股份有限公司 enname Shanghai Port Container Co., Ltd. market None list_status D list_date 20000719 delist_date 20061020 is_hs N Name: 89, dtype: object
股票代码 T00018.SH 错了, 应该是 600018.SH, 且该股票已经重新上市。
我的 TushareID: 438046
希望 bug 能早日修复,并给我一些积分,感谢。