I am unable to understand how this code will work and where i have to put my quandl api key

import quandl

from datetime import datetime


quantrautil is a module specific to Quantra to fetch stock data

from quantrautil import get_quantinsti_api_key 

api_key = get_quantinsti_api_key()



data = quandl.get('EOD/AAPL', start_date='2017-1-1', end_date='2018-1-1', api_key= api_key)


Note that you need to know the "Quandl code" of each dataset you download. In the above example, it is 'EOD/AAPL'.

To get your personal API key, sign up for a free Quandl account. Then, you can find your API key on Quandl account settings page.


data.head()

Hello Nimesh,



To be able to run this code with your quandl API you'll need to pass your own quandl API into the api_key parameter.



You can get your quandl API if you goto quandl.com. Then goto the "Account Settings" -> "Your profile" -> "

YOUR API KEY" 



You can copy this key to a new variable called my_key like show below and then pass it as a parameter in the quandl get call.



my_key = "
skjxYUeLFXBTJyzzq77xyz"

data = quandl.get('EOD/AAPL', start_date='2017-1-1', end_date='2018-1-1', api_key= my_key)