example-scalping icon indicating copy to clipboard operation
example-scalping copied to clipboard

How do I link this to Alpaca to test?

Open GreengageLTD opened this issue 3 years ago • 2 comments

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?

GreengageLTD avatar Feb 19 '21 17:02 GreengageLTD

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

GreengageLTD avatar Feb 19 '21 17:02 GreengageLTD

Right here https://github.com/alpacahq/example-scalping/blob/master/main.py#L13

ElliotVilhelm avatar Mar 18 '21 19:03 ElliotVilhelm