I have been looking for answers to my questions, but haven't found a definitive answer. I am new to python, mysql, and data science, so any advice is appreciated
What I want to be able to do is:
- use python to pull daily close data from quandl for n securities
- store the data in a database
- retrieve, clean, and normalize the data
- run regressions on different pairs
- write the results to a csv file
The pseudocode below shows in a nutshell what I want to be able to do.
The questions I have are:
How do I store the quandl data in MySQL?
How do I retrieve that data from MySQL? Do I store it into lists and use statsmodels?
tickers = [AAPL, FB, GOOG, YHOO, XRAY, CSCO]
qCodes = [x + 'WIKI/' for x in tickers]
for i in range(0, len(qCodes)):
ADD TO MYSQLDB->Quandl.get(qCodes[i], collapse='daily', start_date=start, end_date=end)
for x in range(0, len(qCodes)-1):
for y in range(x+1, len(qCodes)):
//GET FROM MYSQLDB-> x, y
//clean(x,y)
//normalize(x,y)
//write to csv file->(regression(x,y))