So I am trying to read in a CSV file with the S&P 500 closing price each day, like so:
fetch_csv("https://www.quandl.com/api/v1/datasets/YAHOO/INDEX_GSPC.csv",symbol='SP5')
The data set has no symbol so i added a custom one (SP5). I am not sure how to access the data imported. I want to know before the trade day starts what the closing price was of the SP 500 was the previous day