A single web application that receiving trading signals through webhook, make the trade requests to broker and display the trade records and performance in a front-end application.
To receive trading signals, make the trade requests to broker and display the trade records and performance in a front-end.
- Flack to build the backend api
- React to get the UI built
- Alpaca for testing trading broker
- Our demo algorithm has a new signal output (Target Portfolio), this will be received through webhook in out bot BE api endpoint
- BE Bot endpoint will do the calculation
- Current portfolio position
- Target portfolio position
- Calculate the difference and send the trading requests to broker
- Save this to a db table
- Visit React page
- Consume data from BE endpoint
/delta- Send the latest record timestamp of the FE cache
- We can use localstorage for caching the data and benchmark data too
- BE return the all delta trading records
- Send the latest record timestamp of the FE cache
- Consume data from BE endpoint
/benchmark- Send a ticker
QQQ,SPY,QQQ + GLD + BIL
- Send latest record timestamp
- Send a ticker
- Render the chart with benchmark and algorithm performance
- Render the table too