Download
If you find this page useful, please consider donating by going to our donation page!
Step 4
In Alpaca, click on view, generate api keys, and save your api key and your secret key. (you will need them later)

Step 5
In your google cloud project, create a new function (you can name it anything) and select Python 3.10 as your runtime. Set the entry point as "trade_function"

Step 6
Create these three files and leave them blank for now:
​
main.py
config.py
requirements.txt

Step 8
Lastly, run the function, paste the trigger url in your Tradingview webhook alert and paste the payload.json file into the message.
​
​
Congratulations, you just set up your first automated trading system!

What next?
The BrokerBot team suggests experimenting with many different strategies using paper money before using real money. More often than not, a strategy won't be viable forever and, as such, strategies should be continuously updated to better react to market conditions. With that said, happy trading!