Re: [Quickfix-developers] Capturing message from fromApp event
Brought to you by:
orenmnero
From: Grant B. <gbi...@co...> - 2011-06-07 20:33:32
|
So to clarify, what you are seeing is that your print statement never outputs the 35=W message. Is that correct? Do you set a log factory? It'd be useful to see the raw fix messaging that's received. Perhaps the event log too. On Tue, Jun 7, 2011 at 8:58 AM, Michael Daloia <md...@li...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > This is my fromApp: > > > def fromApp(self, message, sessionID): > > print "fromApp sessionID: ", sessionID > print "fromApp msg: ", message > > LNLog.debug("Notification of app msgbeing recvd from target") > > LNLog.debug(message) > LNLog.debug(sessionID) > > msgType = qfix.MsgType() > beginString = qfix.BeginString() > > header = message.getHeader() > trailer = message.getTrailer() > > field_beginString = header.getField(beginString) > field_msgType = header.getField(msgType) > > if msgType.getValue() == qfix.MsgType_ExecutionReport: > LNLog.info('Execution Report was sent') > > symbol = qfix.Symbol() > side = qfix.Side() > orderQty = qfix.OrderQty() > price = qfix.Price() > clOrdID = qfix.ClOrdID() > > #TODO: strip ^A character > field_symbol = message.getField( symbol ) > field_side = message.getField( side ) > field_orderQty = message.getField( orderQty ) > field_price = message.getField( price ) > field_clOrdID = message.getField( clOrdID ) > else: > LNLog.info('No Execution Report was sent') > > > append_fix_message(message) > > Here is the fix message "35=W" being sent out: > > INFO PID:10896 06/03 13:44:01.993 fix.py 229 SENT > 8=FIX.4.2|9=121|35=W|49=LQNT|56=REUTERS|34=2|52=20110603-17:44:01| > 55=STA.V|268=1|269=2|270=40.52|271=1000|272=20110603|273=17:44:01| > 37=3|10=28| > > > > > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |