pythonalpha-vantageimport-module

Fail to import Alpha_vantage.timesseries


EDIT: When I wrote this post I was a beginner on Stackoverflow and in programming generally. I don't remember how I solved this inquiry unfortunately. How can I close this post?

I am having trouble working with this specific module. At first, I had a problem importing alpha vantage but I could install it with the following line: python3 -m pip install alpha_vantage.py( If I tried to install it like this: pip install alphavantage - That did not work.

So now it is working however I need to work with alpha_vantage.timeseries and it doesn't work. If I import the "timeseries" separately, it works but is not linked to the alpha_vantage?! So it doesn't work.

Do you know how can I make it work?

Code snippet


Solution

  • In your example you import TimesSeries from alpha_vantage.timeseries.
    Please note that you have an extra s in TimeSeries.

    Here is an example from their website

    from alpha_vantage.timeseries import TimeSeries