alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

Fund is missing #493

Open decser opened 2 years ago

decser commented 2 years ago

Dodge & Cox Income Fund (DODIX) is missing from the api https://www.investing.com/funds/dodge---cox-income the following results in an error investpy.get_fund_historical_data(fund='Dodge & Cox Income Fund', from_date=from_date, to_date=to_date)

ymyke commented 2 years ago

Is this still an issue? I wrote a helper package to make life easier w/ investpy. You can use it to resolve this problem too.

Check it out here: https://github.com/ymyke/tessa

For your issue:

from tessa import *
r = search("DODIX")
print(r)
# Pick the searchobj that fits what you're looking for...
df, currency = price_history('{"id_": 998009, "name": "Dodge & Cox Income Fund", "symbol": "DODIX", "country": "united states", "tag": "/funds/dodge---cox-income", "pair_type": "funds", "exchange": "US Funds"}', "searchobj")