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

tstock command returns "Error: The API did not return data." when using non-premium AlphaVantage api key #26

Open
forestsmills opened this issue Nov 16, 2022 · 0 comments

Comments

@forestsmills
Copy link

forestsmills commented Nov 16, 2022

The simple command format tstock {stock name abbreviation} no longer works as AlphaVantage has made the TIME_SERIES_DAILYfunction premium only. The TIME_SERIES_DAILY_ADJUSTED function is not premium only and works fine as far as i can tell.

To make tstock use TIME_SERIES_DAILY_ADJUSTED change line 148 of core.py from api_function = 'TIME_SERIES_DAILY' to
api_function = 'TIME_SERIES_DAILY_ADJUSTED'

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

1 participant