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

Error Originating from price_history.py #14

Open
rsloma opened this issue Sep 11, 2018 · 7 comments
Open

Error Originating from price_history.py #14

rsloma opened this issue Sep 11, 2018 · 7 comments

Comments

@rsloma
Copy link

rsloma commented Sep 11, 2018

I was trying to use this wrapper and was getting this error. I then created a new file and tried running your example code presented at https://pypi.org/project/alphavantage/ and obtained the same error. Please fix since I would like to use this to obtain the date from the alphavantage data as a check when running code to add another day's data to a database.

File "C:\Users\User\Anaconda3\lib\site-packages\alphavantage\price_history.py", line 136, in get_results
updated_at, timezone, is_intraday = self.transform_meta_data(response['Meta Data'])

KeyError: 'Meta Data'

Or, if you could give me an idea of how to obtain the datestamp from the json file data that is normally downloaded, that would help too.

Thanks.

@Justintc217
Copy link

I had a similar issue

@o-fugi
Copy link

o-fugi commented Nov 25, 2018

I also had this issue

@oz19
Copy link

oz19 commented Jul 11, 2019

This worked for me:

I watched the code at price_history.py and realized that the API key is retrieved as an environment variable called ALPHA_VANTAGE_API_KEY. So, I created the environment variable, run the script and it worked.

@yousufj56
Copy link

This worked for me:

I watched the code at price_history.py and realized that the API key is retrieved as an environment variable called ALPHA_VANTAGE_API_KEY. So, I created the environment variable, run the script and it worked.

Noob here. Can you please provide some instructions on how to do it? Or provide the code you used? I'm having the same issue

@oz19
Copy link

oz19 commented Aug 2, 2019 via email

@yousufj56
Copy link

Thanks, thats helpful. But now i get a syntax error on this line:

return f'{interval}min'

You know whats happening?

@yousufj56
Copy link

Thanks, thats helpful. But now i get a syntax error on this line:

return f'{interval}min'

You know whats happening?

Got it, i moved the ' infront of f and now i can get data
return 'f{interval}min'

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

5 participants