Closed kk0186 closed 2 years ago
Hi @kk0186, I think you're reporting this against the wrong project, as you're writing in and importing a python library whereas this project is for node / javascript :sweat_smile:
So you can try check with the right project but I wonder if maybe your issue is exceeding Yahoo's rate limit and them blocking you. You could try insert a small delay (try 1s first to check, but probably 200ms might be ok) between requests and make sure that you don't execute more than say 4 simultaneous requests to Yahoo at a time. But yeah I don't know anything about the library you're using so YMMV :)
@gadicc apologize for my mistake, but appreciate your comment , I will tried to see if adding the delay would work. thank you very much
:ok_hand::grin::pray:
I have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all related stock info on each stock ( and I have tried both yahoo_fin.stock_info and yfinance packages). But then it just got stuck at certain stock and never return the result. I am using spyder for my python coding. below is the code:
when I run the code below what it shows in my console:
I tired many times already , everytime it just stuck on different ticker everytime. Also I have also tried to leave the code running for a day but it just stop it right there and never give me return. when I tried to debug, it also stop running at either the si.get.data line or si.get_quote_table line. I actually use this code since last year and it work fine, it just start not working when I run this code again last week. I also tried several other packages ( e.g. pandas_datareader.data) still not able to get the stock info. Appreciate if anyone can let me know what is the problem.