stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
12.57k stars 4.03k forks source link

ValueError: Please set your QUANDL_API_KEY environment variable and retry. #275

Closed quant2008 closed 1 year ago

quant2008 commented 1 year ago

after run: zipline ingest -b quandl

I get the following error:

ValueError: Please set your QUANDL_API_KEY environment variable and retry.

I am using windows 10. what should I do?

stefan-jansen commented 1 year ago

Please see this guide on environment variables in Windows 10.

AkshayVaghani commented 11 months ago

Same error r- ValueError: Please set your QUANDL_API_KEY environment variable and retry. How to set env variable in Window and where to get API key ?

Eating-Sulfur commented 11 months ago

? what is this?

Akshay @.***> schrieb am Fr., 18. Aug. 2023, 17:13:

Same error r- ValueError: Please set your QUANDL_API_KEY environment variable and retry. How to set env variable in Window and where to get API key ?

— Reply to this email directly, view it on GitHub https://github.com/stefan-jansen/machine-learning-for-trading/issues/275#issuecomment-1684064147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALK6ZEBWH5HTXLXXX2PLA3XV6BBTANCNFSM6AAAAAATKNHTFA . You are receiving this because you are subscribed to this thread.Message ID: <stefan-jansen/machine-learning-for-trading/issues/275/1684064147@ github.com>

AkshayVaghani commented 11 months ago

sorry for confusion , This is error occurring while running single_factor_zipline notebook. I installed zipline-reloaded and to run the notebook which suggested me to run zipline ingest -b quandl and then get following error. ValueError: Please set your QUANDL_API_KEY environment variable and retry. I am using windows 11.

AkshayVaghani commented 11 months ago

basically I am getting following error while running single_factor_zipline.ipynb notebook. Would you help ?

ValueError: SQLite file 'C:\Users\lalta\.zipline\data\quandl\2023-08-18T14;56;37.388452\assets-7.sqlite' doesn't exist. Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

On Fri, Aug 18, 2023 at 11:36 AM Eating-Sulfur @.***> wrote:

? what is this?

Akshay @.***> schrieb am Fr., 18. Aug. 2023, 17:13:

Same error r- ValueError: Please set your QUANDL_API_KEY environment variable and retry. How to set env variable in Window and where to get API key ?

— Reply to this email directly, view it on GitHub < https://github.com/stefan-jansen/machine-learning-for-trading/issues/275#issuecomment-1684064147>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALK6ZEBWH5HTXLXXX2PLA3XV6BBTANCNFSM6AAAAAATKNHTFA>

. You are receiving this because you are subscribed to this thread.Message ID: <stefan-jansen/machine-learning-for-trading/issues/275/1684064147@ github.com>

— Reply to this email directly, view it on GitHub https://github.com/stefan-jansen/machine-learning-for-trading/issues/275#issuecomment-1684093167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4IUOINWQAPFNTHGSQB7D3XV6DXBANCNFSM6AAAAAATKNHTFA . You are receiving this because you commented.Message ID: @.*** com>

MBounouar commented 11 months ago

You need a QUANDL api key from https://data.nasdaq.com/ and set up the environment variable in windows