Create a Trading Module to execute gold futures trades via API on Thinkofswim brokerage platform.
Client currently has a black box module that generates trading signals. There are 4 potential signals this blackbox can generate:
These signals are written into a database. The new Trading module will need to query this database periodically, initially every 10-15 seconds, and if it finds a new signal, it will have to submit a trade request to the online broker via the broker's API.
Implement API trading on Thinkorswim platform
Create a Trading Module that will be able to retrieve signals from the database and submit Market orders to the online broker using the broker's API.
Create a process that requests current prices from the Broker and stores these prices into a new table in the database every 30 seconds.
Create a process that calculates the current P&L for open positions using the latest prices and stores information about the position and current P&L into a new table in the database.
Create a process that stores all signals received from the black box and all trades executed with the broker into a database.
Create a process that calculates Max Drawdown for each position when the order to close the position is executed and stores the information into a new table in the database.
Create a one-page UI to monitor Bridge performance. The UI will include the following features: