在與我們的經紀公司打開訂單後,我們希望從ExecutionReport
消息中獲得填充價格。下面你會找到使用的回調代碼。QuickFIX/J:未收到ExecutionReport消息
MarketDataSnapshotFullRefresh
消息已正確接收,但第二個if
塊從不觸發。奇怪的是,相應的messages.log文件確實包含多個35=8
消息。
我們使用QuickFIX/J作爲FIX引擎。
@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
}
爲了OP:更多細節在[**的QuickFix/J用戶手冊 - 接收信息**](http://www.quickfixj.org/quickfixj/usermanual/1.5.3/usage/receiving_messages.html ) –