nikulpatel3141 / ETF-Scraper

Scrape public ETF and Mutual Fund holdings information
MIT License
16 stars 1 forks source link

InvalidParameterError: No Vanguard data returned for ticker #9

Open bdvir opened 3 months ago

bdvir commented 3 months ago

I can get results for ETFs of other providers, but not for any ETF of Vanguard.

Trying to run:

from etf_scraper import ETFScraper
etf_scraper = ETFScraper()
etf_scraper.query_holdings('VGT')

Raises:

InvalidParameterError: No Vanguard data returned for ticker: VGT, date: 2024-02-29
nikulpatel3141 commented 3 months ago

Hi, Vanguard is trickier then other providers because the release schedule is monthly and (from memory) irregular.

The code defaults to querying the end of the month which fails if they haven't released data yet - in this case the latest holdings you could query are end of January. I didn't implement this logic because it is inconsistent with the other providers. I hope this helps