0

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

Patrick Collins
  • 5,621
  • 3
  • 26
  • 64
enayath
  • 11
  • 4
  • I dont think alphavantage will be providing more historical data. Basically 5 mins data is provided under Intraday data and 15 days data is enough for any analytics IMO. – Anand Vaidya Oct 31 '19 at 07:42
  • As a note, when asking questions on this forum, please be careful to reveal API keys. I hope that is a free key. – Patrick Collins Oct 31 '19 at 16:08

1 Answers1

0

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.

Patrick Collins
  • 5,621
  • 3
  • 26
  • 64
  • Okay , So there is No way to get the historical data for 5min interval using alphavantage.co (historical data of around 10 years 5min interval)? – enayath Oct 31 '19 at 18:44
  • You cannot get 10 years of data with 5-minute intraday intervals at the present time. For that time range, only, daily, weekly, and monthly data work. – Patrick Collins Nov 01 '19 at 00:41