-
Notifications
You must be signed in to change notification settings - Fork 638
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
Historical quotes with Alphavantage using TIME_SERIES_DAILY_ADJUSTED not working #3605
Comments
I gues the only chance to get rid of the Alpha Vantage back and forth behaviour is to create a second quote feed, one for TIME_SERIES and the other for TIME_SERIES_DAILY_ADJUSTED. For Yahoo it's more or less similar. |
Given the behavior described (them switching it back and forth behind users' backs), I doubt that would help for long time. More scalable approach would be to let use define which API endpoint they want to use, as a settings parameter. But before that, you may want to consider why you use AlphaVantage with such a behavior in the first place. For me, in #3275, it was the case that AlphaVantage was forced upon me by a particular importer. The issue with that importer was since then fixed, it was switched to the default Yahoo Finance, and I never looked back. |
Or alternatively we leave it with one provider for alpha vatage, but add configurations to switch between |
I think the most elastic solution is to let user configure the parameters themselves as @OnkelDok suggests. So that the beginning is pre-defined, i.e. the part: But also thank you for the remark regarding Yahoo Finance @pfalcon, seems all my Invesco ETF's are covered by it in the mean time so I also switched. |
That reads like it was a mistake on their product team. It does not make the data series "premium" which has less data than the free one 🙃 Therefore first we should just revert the commit. Any objections? @OnkelDok @pfalcon Then about the question how to make the AlphaVantage more configurable: It is not only about the URL, but also the content changes - because the code is using the CSV format, one has to read the value from a different column. Plus: if one would want to use the adjusted value, then one has to also be able configure which values to use (and PP does not supported the download of adjusted values properly because one has to alway reload all values). And one can use the generic JSON Provider to run any query against AlphaVantage if wanted. And finally: how many folks really use AlphaVantage? Therefore I am hesitating to invest precious time to invest on this issue while we have many other to spend time on... |
…istorical prices" This reverts commit e9e6e00. Closes portfolio-performance#3605
Hi All, I agree with you @buchen. It appears to me that Alphavantage hasn't switched this endpoint since almost a year. Since then this feature also doesn't work anymore in PP. I was missing this feed quite a lot since then and therefore I'd suggest as well to revert back. I've created a revert commit to switch back to the original implementation and tested it. It works perfectly fine. |
Describe the bug
The call for historical quotes using Alphavantage with:
https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=SYMBOL&apikey=KEY
is not working anymore. Also, the amount of data delivered by default has been changed, so the call should look like that now:
https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=SYMBOL&outputsize=full&apikey=KEY
To Reproduce
Steps to reproduce the behavior:
"Information": "Thank you for using Alpha Vantage! This is a premium endpoint. You may subscribe to any of the premium plans at https://www.alphavantage.co/premium/ to instantly unlock all premium endpoints"
}
Expected behavior
No error and historical quotes are being obtained
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: