waditu / tushare

TuShare is a utility for crawling historical data of China stocks
BSD 3-Clause "New" or "Revised" License
12.79k stars 4.28k forks source link

今天基础数据连不上,是什么情况? #1684

Closed arisliang closed 1 year ago

arisliang commented 1 year ago
pro = ts.pro_api()

#查询当前所有正常上市交易的股票列表

data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')

ConnectionError: HTTPConnectionPool(host='api.waditu.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000263BFDA1CA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

QuestMi commented 1 year ago

我也是遇到了这个问题.

chenditc commented 1 year ago

好像是 api.waditu.com 这个域名挂了

chenditc commented 1 year ago

更新 python sdk 就可以了。用新域名 api.tushare.pro

arisliang commented 1 year ago

更新了pip,可以了。