Both sell and buy sides need to maintain a database of all open GT orders.
Code below demonstrates how sell side synchromizes GT orders by sending the GT order to buy side in "Execution Report" messages, at the begining of the trading day.
FIXSessionOrderManager curSessionOM = FIXOrderManager.getSessionOrderManager(curSession);
|
GT handler also needs to implemented to check GT orders during recovery process in case recovery does happen.
static FIXSessionOrderManagerGTOrderHandler sessionGTOrderHandler = new FIXSessionOrderManagerGTOrderHandler() {
|