Using Python: Get / download daily finance market data (stocks, etfs, etc.) by the securities ISIN (International Securities Identification Number) [closed]

こ雲淡風輕ζ 提交于 2020-03-25 16:01:09

问题


today I tried to find an API or a possibility to get data for specific securities (stocks, ETFs, etc.). Unfortunately the package 'yfinance' only allows you get data based on the securitie's name (e. g. MSFT for Microsoft's shares).


回答1:


After quite a lot of research I found the package investpy which allows you to first find a security, for example an ETF:

investpy.search_etfs(by="isin", value="my_isin")

After that, using the name of your ETF you can also get / download its daily data:

investpy.get_etf_recent_data(etf="etf_name", country="my_country")


来源:https://stackoverflow.com/questions/60799442/using-python-get-download-daily-finance-market-data-stocks-etfs-etc-by-t

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!