Open ymyke opened 3 years ago
I guess a PR wouldn't make sense sinse the .csv files are auto-generated.
Hi @ymyke :fire: I'm currently developing the scripts so that any user can automatically generate/update the static files so that any user can easily create a PR with the updated CSV either the complete version of it or just per country which may be easier!
Let's say you want to update the Luxembourg funds as that's the main functionality that you use and you don't want to rely that much on investpy.search_quotes()
, then you will be able to run the funds.csv
generation script for just Luxembourg and then create a PR so that I can easily merge it, instead of just me generating the files, this can be a community work/contribution!
All the scripts should be available during this month, but I'm still working on those! :fire:
Also, remember that in the meantime you can use investpy.search_quotes()
to retrieve the data of the financial products missing in the static CSVs.
:pushpin: Make sure that you are using the latest investpy version! investpy v1.0.6
>>> import investpy
>>> search_result = investpy.search_quotes(text='LU1152091168', products=['funds'], countries=['Luxembourg'], n_results=1)
>>> print(search_result)
{"id_": 1160209, "name": "Ubs (lux) Equity Fund - China Opportunity (usd) P-mdist", "symbol": "0P000159H2", "country": "luxembourg", "tag": "/funds/lu1152091168", "pair_type": "funds", "exchange": "Luxembourg"}
>>> recent_data = search_result.retrieve_recent_data()
>>> historical_data = search_result.retrieve_historical_data(from_date='01/01/2020', to_date='01/01/2021')
>>> information = search_result.retrieve_information()
To further explore the functionality of investpy.search_quotes()
please check [Wiki - investpy.search_quotes()](https://github.com/alvarobartt/investpy/wiki/investpy.search_quotes())
Could you add this fund to funds.csv?
luxembourg,Ubs (lux) Equity Fund - China Opportunity (usd) P-mdist,0P000159H2,lu1152091168,1160209,UBS Fund Management (Luxembourg) S.A.,LU1152091168,equity,USD
If you prefer a PR, I can create one.