diff --git a/pandas_eval.py b/pandas_eval.py index 1ba8cda..b0f197f 100644 --- a/pandas_eval.py +++ b/pandas_eval.py @@ -16,6 +16,8 @@ import datetime # Knowledge # https://www.investopedia.com/articles/technical/02/050602.asp +# https://ntguardian.wordpress.com/2016/09/19/introduction-stock-market-data-python-1 + key = '0UO7Z2MVZ2YSQSVE' @@ -43,8 +45,8 @@ def macd(data): return ema_short - ema_long -# Get stock price via data reader if 0: + # Get stock price via data reader start = datetime.datetime(2016,1,1) end = datetime.date.today() apple = web.DataReader("AAPL", "av-monthly", start, end, api_key=key)