Automatic trading bot that streams market data of specific instruments to buy or sell them by placing bracket orders (back-end for Falcon).
1. TradingView alert is set off creating a JSON message containing ticker parameters such as open and closing price
2. Using TradingView webhooks, a POST request containing the JSON message is sent to a REST API (AWS Lambda function)
3. This executes a Python script running through the AWS Chalice Serverless Framework
4. The Python script then executes a bracket order using the Alpaca API Paper Trading API (tested requests live and offline using Insomnia REST API Client)
- TradingView webhooks: https://www.tradingview.com/support/solutions/43000529348-i-want-to-know-more-about-webhooks/
- AWS Chalice Framework for Serverless Python: https://github.com/aws/chalice
- Alpaca API: https://alpaca.markets/docs/api-documentation/api-v2/