Closed norricorp closed 3 years ago
An update. So using BRWM (rather than BRWM.L) the problem seems to be "regularMarketOpen". Does yahoo finance uk give a different json structure to yahoo finance US? And that regularMarketOpen is not an attribute in the data?
Experiencing the same issue.
@norricorp were you able to find out any more about the JSON structure? Would be happy to pick this issue up at the weekend
Actually I moved to rapidapi (https://rapidapi.com/apidojo/api/yahoo-finance1). You do have to sign up but there is a 500 calls/month free plan. And it works really well. You have to end each stock symbol with .L (eg BARC.L) and some symbols are not the same as in the FT but just search for the stock name on the yahoo finance page and use their symbol.
If you don't put the .L for London some stocks will return US Equities instead of London such as WPP for example.
I have some code that scrapes the .L data formats, if I get some time I'll see if I can pull and fix this but it won't be quick as I am mega busy.
It does work, code:
brwm = yf.Ticker("BRWM.L")
brwm.info
close if solved.
Closed
I have tried the MSFT example and it works. But if I use LSE codes, I get the following
Using yahoo finance directly, I noticed that it had the code with an additional "L" (for London I guess), so I tried that.
So should I use just the LSE code or with an additional "L". Of course neither works so what am I doing wrong?
Regards,