ValueError: ('Key ID must be given to access Alpaca trade API', ' (env: APCA_API_KEY_ID)')

Getting this error when setting my env vars in main.py within the example-scalping-master project but not sure what im doing wrong

Assuming you have your API keys
If you are using windows do this on your terminal
SET APCA_API_KEY_ID=******************************
SET APCA_API_SECRET_KEY=******************************
SET APCA_API_BASE_URL =https://paper-api.alpaca.markets

or Linux :
export APCA_API_KEY_ID=******************************
export APCA_API_SECRET_KEY=******************************
export APCA_API_BASE_URL=https://paper-api.alpaca.markets

2 Likes