enayath
enayath

Reputation: 11

Alphavantage.co : Historical data is unable to fetch with 5 min interval

I am trying to fetch the historical data using Alpha Vantage API.

Whenever I try to get historical data with 5-minute intervals by using the URL in the browser, it only displays one month of data. I think it should display more than one month of data.

Am I missing anything?

Sample calls:

  1. https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&outputsize=full&interval=5min&apikey=CN3J

  2. https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=INFY&outputsize=full&interval=5min&apikey=CN3J

Upvotes: 0

Views: 1346

Answers (1)

Patrick Collins
Patrick Collins

Reputation: 6131

For Alpha Vantage data API, historical data for intraday only goes back a certain number of entries. If you changed the interval to 1 minute, a smaller time window would be given. If the interval was 60 minutes, you'd get a larger time window.

To get all 20 years of data (not intraday) you'd use something like the daily weekly, or monthly.

Upvotes: 0

Related Questions