conda config --set allow_conda_downgrades trueconda install conda=4.6.11
conda create -n quant python=3.5conda activate env_quantconda install nb_conda jupyter ipykernel tornado=4.5.3 pywin32 matplotlib autopep8 scikit-learn joblib -y -n quantpip install mpl-finance
conda install -c Quantopian zipline -y -n quantset QUANDL_API_KEY=YOURAPIKEYzipline ingest -b quandlzipline ingest -b quantopian-quandl
Fix JSONDecodeError due to missing IEXTrading API key see here
- Sign-up for an API key at https://iexcloud.io/
- Edit benchmark.py at \Anaconda3\pkgs\zipline-1.3.0-np114py35_0\Lib\site-packages\zipline\data\benchmarks.py
- Changing the
r = requests.get( 'https://api.iextrading.com/1.0/stock/{}/chart/5y'.format(symbol) )part toIIEX_TOKEN = 'APIKEY' r = requests.get( 'https://cloud.iexapis.com/stable/stock/{}/chart/5y?token={}'.format( symbol, IEX_TOKEN) )