investpy
investpy copied to clipboard
Accented character handling
Sample fund : isin : FR0010341800 name : Palatine Planète I country : france
search_result = investpy.search_quotes(text='FR0010341800', countries=["france"])
Return {"id_": 1153230, "name": "Palatine Plan\u00e8te I", "symbol": "0P00006EG3", "country": "france", "tag": "/funds/palatine-planete-a", "pair_type": "funds", "exchange": "Paris"}
where "\u00e8" is char "è"
On the other side
r = investpy.funds.get_fund_historical_data("Palatine Planète I", "france", "01/01/2022", "15/02/2022", as_json=False, order='ascending', interval='Daily')
do RuntimeError: ERR#0019: fund palatine planete i not found, check if it is correct.
No problem directly on web site https://www.investing.com/funds/palatine-planete-a
The only one I could find in the csv file is "Palatine Planète A." Which is strange because the link you have even posted shows the name as "Palatine Planète A". When I clicked on it however it shows the "Palatine Planète I" but it is the same. I have submitted a PR to Change the name to "Palatine Planète I"
Ok thank for change. I understood that investpy.search_quotes() retrieve live informations and investpy.funds.get_fund_historical_data() use static ressources. The best way is to use search_result[0].retrieve_historical_data() Thank for your job !