Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Alpha_vantage package issues
-
I'm trying to get the alpha_vantage package installed and working under Pythonista. <https://github.com/RomelTorres/alpha_vantage.
'pip install alpha_vantage works fine but there seem to be some problems running the demo:from alpha_vantage.timeseries import TimeSeries
ts = TimeSeries(key='YOUR_API_KEY')
#Get json object with the intraday data and another with the call's metadata
data, meta_data = ts.get_intraday('GOOGL')If I run this (with an API_key which you can get for free), I get "cannot import name TImeSeries'. The timeseries script is in the alpha_vantage directory in Site_Packages. Can anyone see the problem?
-
Can anyone help me to get this working? I tried placing my test script in site-packages/alpha_vantage but that does not help (get relative import error in timeseries).The test script looks like this:
from timeseries import TimesSeries ts = TimesSeries(key='api-key’) # Get json object with the intraday data and another with the call's metadata data, meta_data = ts.get_intraday('GOOGL')
-
Your first example works fine for me, after placing the
alpha_vantage
package in site-packages. Perhaps you have a subtle typo in your script? I noticed that you're using TimesSeries instead of TimeSeries in your second attempt (which would result in an import error). -
@omz Thank you for pointing out my typo —- it now works fine. Of course, the other demos require Pandas but I won’t go there :-)