I am using the yfinance Python API and have not had any issues in a while.
same here, usinng yfinance
No issues using basic_yahoo_finance | RubyGems.org | your community gem host for getting CALN.SW for example. Note that this library is Ruby.
Thanks! Unfortunately that doesn’t help me much since my whole stock retrieval scripts are written in Python and I don’t “speak” Ruby. If this is the only option I find yes it might be worth the effort.
Anyway I’ve been meaning to “port” all of that to Python 3, maybe it’s time to rearchitecture the whole thing.
In case this helps someone: I found my happiness with the yfinance library that allows to load financial informationfrom Yahoo onto pandas dataframes.
Hello everyone,
i am looking for a way to download historical data for the shares on the Swiss SIX stock exchange.
Is Yahoo Finance still the best way to do it or is there any other service that is better?
I did with investing.com some time ago. You will need to login with some kind of account to be able to download historical data.
I don’t remember exactly, but for SIX I think there was a specific tool to download data. Definitely for indices, not sure about individual securities.
This works well IMO, depending on how historical of course.
Google Sheets and function:
=GOOGLEFINANCE(“swx:rog”, “price”, DATE(2021,1,1), DATE(2021,1,31), “DAILY”)
Have a look at GitHub - cmallwitz/Financials-Extension: Extension for LibreOffice Calc to access stock market data - that’s the extension you could use for LibreOffice Calc to get data from either Yahoo Finance, or Financial Times.
Both work well for historic prices on SWX.
I was at first confused by the laugh reaction on my response, @Dr.PI , only now I see I’m in a python thread. Ok ok, my bad
Oh sorry, I was laughing at myself. Didn’t expect it can be done so easily these days. And I also didn’t see that 4 years ago this thread was about python.