ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.67k stars 2.44k forks source link

Not able to access data from certain Tickers #112

Closed martimfj closed 5 years ago

martimfj commented 5 years ago

I tried to get historical data from Brazilian market, but got some anomalies:

import yfinance as yf

for i in ["KLBN11", "SANB11", "YDUQ3"]:
    ticker = yf.Ticker(f"{i}.SA")
    data = ticker.history(period="6mo")["Close"].to_frame()
    data.columns = [i]
    print(data)

From KLBN11 and SAMB11 I got only the Close value of the day. YDUQ3 I got 42 days of data. I checked the Yahoo Finance website and was able to see all the data history,

ranaroussi commented 5 years ago

Can additional information found on Yahoo!?

jasonxu1991 commented 5 years ago

Hi im having the same issue like you. For example i can't fetch the information (using ticker.info) on tickers like "AABA" "NIO" just to name two. Also ticker.recommendations doesn't work as welll. But ticker.history seems like working fine.

ranaroussi commented 5 years ago

Fixed in 0.1.50. Please re-open if the problem persists.

RudolfLapie commented 3 years ago

Using yfinance 0.1.55 and python 3.8.1 Had the same issue again with ticker SGLN.L. Ticker.info raises an exception which Ticker.history returns resulst