import os
from datetime import datetime
import pandas_datareader.data as web
df = web.DataReader("AAPL", "av-daily", start=datetime(2017, 2, 9),end=datetime(2017, 5, 24),api_key=os.getenv('ABC123'))
print(df)
# use ur own api key or api environment