Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidParameterError: No Vanguard data returned for ticker #9

Open
bdvir opened this issue Mar 14, 2024 · 1 comment
Open

InvalidParameterError: No Vanguard data returned for ticker #9

bdvir opened this issue Mar 14, 2024 · 1 comment

Comments

@bdvir
Copy link

bdvir commented Mar 14, 2024

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
@bdvir bdvir changed the title 'No Vanguard data returned for ticker' exception InvalidParameterError: No Vanguard data returned for ticker Mar 14, 2024
@nikulpatel3141
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants