I've got a script that fetches prices for Vanguard frunds from one of the
APIs I found their website was making XHR's to. It looks something like
(tho I also needed the "Referer: https://vanguard.com"; header:


https://api.vanguard.com/rs/cfv/global/eip-distributions-service-webservice-production-current/rs/price/daily-nav-history/0928.json?start-date=2021-09-30&end-date=2021-10-01

This has worked for most of a year, up til last month, not only for ETFs,
but also Vanguard funds like their target retirement funds, and even the
target retirement trust fund my company uses for the 401k, but now I'm
getting 404s.

I've found this will give me JSON of today's price (but not historical):


https://invproductsui.vanguard.com/content/site-services/market-data/0928

And this will give me HTML of historical prices, but not for the Target
Retirement 2050 Trust fund my company uses for their 401k:


https://personal.vanguard.com/us/funds/tools/pricehistorysearch?radio=1&results=get&FundType=ExchangeTradedShares&FundIntExt=INT&FundId=0928&fundName=0928&radiobutton2=1&beginDate=01/01/2020&endDate=01/02/2020&year=

Does anyone know of APIs to fetch NAV prices for these funds by date?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CACjABknm_oYyVVHjMqRE1Ct6JHcVsnca9cwt87qhYL13xa7-_w%40mail.gmail.com.

Reply via email to