Skip to content

Environment Variables

Jason O edited this page Feb 23, 2023 · 5 revisions

The data used for this simulator is from Alpaca Markets. You can make a free account and get paper trading API keys. Paper trading is synthetic stock trading, but it does use actual historical asset data. The simulator uses the actual historical asset data.

Once you make an account, you will have a API key and a secret key.

Open the system properties on your machine. It will look like this:

System Properties

Add the API key and secret key to the environment variables. Make sure you use the variable names listed below or else the simulator will not be able to find your keys.

Env Vars

Make sure you restart your PC after creating or editing environment variables. Failure to restart may cause errors.

That's it!

Next Step: Building a Strategy

Clone this wiki locally