- Use Python 3.7 or above
- Add any credentials to the
config
directory - Create an instance of
Trader
- Register any brokerages or strategies
- Invoke
trader.start()
. This will read command line arguments and begin running the code - Use the
--help
flag for CLI format
To use the Alpaca brokerage (paper money or real money), follow these steps:
- Go to https://alpaca.markets/
- Create a new account
- Generate the Key ID and Secret Key
- Go to the
/config
directory and runtouch alpaca.json
- Paste your key id and secret in the following format:
{
"key_id": "<YOUR KEY HERE>",
"secret_key": "<YOUR SECRET HERE>"
}