After opening an order with our brokerage firm, we desire to obtain the fill price from the ExecutionReport
messages. Below you will find the callback code used.
The MarketDataSnapshotFullRefresh
messages are received properly, but the second if
block is never triggered. Strangely, the corresponding messages.log file does contain multiple 35=8
messages.
We use QuickFIX/J as FIX engine.
@Override
public void fromApp(Message message, SessionID sessionID) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType {
if (message instanceof MarketDataSnapshotFullRefresh) {
// do stuff with MarketDataSnapshotFullRefresh
}
if(message instanceof ExecutionReport) {
// do stuff with ExecutionReport
}