yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Not able to download full data

Open Anurag-Patil-1999 opened this issue 3 years ago • 11 comments

yfinance.download('ABBOTINDIA.NS', period = "2d", interval = "1d", progress = False, threads = True)["Close"]

giving result for data for 1 day only, instead of 2 days which i requested.

image

Anurag-Patil-1999 avatar Feb 04 '22 04:02 Anurag-Patil-1999

I also found that the data for 2022/02/03 was missing when I request all the other stocks. Hope this isssue will be fixed soon.

logyuan avatar Feb 04 '22 16:02 logyuan

I am having a similar problem. I can get multiple day closes but if I select an intra-day interval, I only get the close for each day.

arbitrager44 avatar Feb 04 '22 18:02 arbitrager44

Same issue with this INDIA VIX (^INDIAVIX) symbol.

RY93 avatar Feb 05 '22 11:02 RY93

Anyone found solution for this? Pls help

KrishnaRachh avatar Mar 04 '22 05:03 KrishnaRachh

@ranaroussi

simple code run during market hours on 2022-03-04 provides output but skips the data for 2022-03-03. Below is the code and output

data = yf.download('RELIANCE.NS', start='2022-02-20', interval='1d',rounding=True).reset_index()

image

kmungantiwar avatar Mar 04 '22 06:03 kmungantiwar

Problem still happening?

ValueRaider avatar Jan 06 '23 21:01 ValueRaider

@ValueRaider yes, this problem is still happening occasionally.

Anurag-Patil-1999 avatar Jan 19 '23 03:01 Anurag-Patil-1999

1 observation, whenever this issue happens, if i want data till n date, then it always misses entries of (n-1) date. Don't know how much it can help in debugging.

Anurag-Patil-1999 avatar Jan 19 '23 03:01 Anurag-Patil-1999

What's your yfinance version?

ValueRaider avatar Jan 19 '23 12:01 ValueRaider

yfinance==0.2.3

Anurag-Patil-1999 avatar Jan 19 '23 12:01 Anurag-Patil-1999

Step 1 is confirming what is to blame - Yahoo vs yfinance. Add debug code to print the dates Yahoo returns.

ValueRaider avatar Jan 19 '23 12:01 ValueRaider