example-scalping
example-scalping copied to clipboard
How do I link this to Alpaca to test?
I don't see where to enter api keys for either Alpaca or Polygon in the code? Can you point me to what I'm missing?
From a forum answer. This worked just by pasting them in as commands.
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
Right here https://github.com/alpacahq/example-scalping/blob/master/main.py#L13