Open novapietro opened 8 months ago
This should be possible by using AWS lambda.
Great job with your code framework, Rhett!
Here is my attempt thus far at incorporating TradingView webhook alerts and AWS lamda, but I've not been successful. I've used TradingView webhook alerts, Chalice/AWS/Lambda (deployed through WSL windows subsystem for Linux commands), and AWS Secrets Manager with Alpaca quite successfully, but I'm having a lot of trouble with Coinbase!
Feel free to review and definitely let me know if you find a way to make it work.
Main.txt (rename it to Main.py) is my main trading file, and config.JSON is my AWS config file. I used Rhett's cb_auth.py and util.py files in addition to mine. I also attached my TradingView JSON payload as well.
Let me know if you have any luck!
Okay guys, I figured it out! I am successfully trading tradingview webhook alerts, AWS Lamda and Coinbase with the following:
I use a Heiken Ashi candle ATR Trailing stop strategy that basically swing trades, printing buy and sell signals (and alerts - webhook messages) that I then receive on AWS Lamda (after deploying with chalice deploy in WSL).
I've attached .txt versions of all files I'm using. Feel free to ask questions, and happy trading!
cb_auth.txt coinbase_client.txt config.json utils.txt app.txt tradingview webhook alert.json
Just an idea. It would be useful to connect your code to TradingView Webhook alerts to then automate buy/sell signals thanks for your work on this. pietro