To retrieve data from Alpha Vantage :
from alpha_vantage.timeseries
import TimeSeries
import matplotlib.pyplot as plt
import sys
def stockchart(symbol):
ts = TimeSeries(key='1ORS1XLM1YK1GK9Y', output_format='pandas')
data, meta_data = ts.get_intraday(symbol=symbol, interval='1min', outputsize='full')
print (data)
data['close'].plot()
plt.title('Stock chart')
plt.show()
symbol=input("Enter symbol name:") stockchart(symbol)
My question is if there is a way to specify start and end dates for the data. On the website they have mentioned on the limits to number data points but they have not mentioned if start and end dates could be used in the code and still not exceed the number of data points.