Thread: [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++)
Brought to you by:
orenmnero
From: gtsafas <gt...@rb...> - 2010-03-19 14:04:32
|
I am trying to pull the following tags into strings. I can see the message having the tag and value but its not pulling the value. I am trying to do it the following way, which works for all other tags. FIX::SenderCompID SENDERCOMPID; if (message.isSetField(SENDERCOMPID)){ fSenderCompID = message.getField(SENDERCOMPID).getString(); } else { if (message.isSetField(49)){ fSenderCompID = message.getField(49); } } FIX::TargetCompID TARGETCOMPID; if (message.isSetField(TARGETCOMPID)){ fTargetCompID = message.getField(TARGETCOMPID).getString(); } else { if (message.isSetField(56)){ fTargetCompID = message.getField(56); } } FIX::OnBehalfOfLocationID ONBEHALFOFLOCATIONID; if (message.isSetField(ONBEHALFOFLOCATIONID)){ fOnBehalfOfLocationID = message.getField(ONBEHALFOFLOCATIONID).getString(); } else { if (message.isSetField(144)){ fOnBehalfOfLocationID = message.getField(144); } } -- View this message in context: http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBehalfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: gtsafas <gt...@rb...> - 2010-03-19 14:24:45
|
(8=FIX.4.29=035635=8115=NYSE144=RN128=SN57=u002116=9437549=VA56=_DROP52=20100319-14:18:0734=167330=NYSE382=1375=LOC100=N76=SN1=SN37=5258711=23042100319000301439=220=0150=238=20014=200151=055=KSS54=16=55.1344=55.1317=5150826819=XRL_ACA 5876/03192010 0037400374CB132=10031=55.1375=2010031960=20100319-14:18:06113=N29=147=A10=091) <20100319-14:18:07, FIX.4.2:_DROP->VA, event> (Message 1673 Rejected: Conditionally Required Field Missing:144) I tried doing it without the check, as you can see im getting tag 144=RN , what am I missing? -- View this message in context: http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBehalfOfLocation-%28C%2B%2B%29-tp27950964p27950972.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Kenny S. <ks...@co...> - 2010-03-19 14:33:53
|
msg.getHeader() -- Kenny Stone Connamara Systems, LLC On Fri, Mar 19, 2010 at 9:24 AM, gtsafas <gt...@rb...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > (8=FIX.4.29=035635=8115=NYSE144=RN128=SN57=u002116=9437549=VA56=_DROP52=20100319-14:18:0734=167330=NYSE382=1375=LOC100=N76=SN1=SN37=5258711=23042100319000301439=220=0150=238=20014=200151=055=KSS54=16=55.1344=55.1317=5150826819=XRL_ACA > 5876/03192010 > > 0037400374CB132=10031=55.1375=2010031960=20100319-14:18:06113=N29=147=A10=091) > > <20100319-14:18:07, FIX.4.2:_DROP->VA, event> > (Message 1673 Rejected: Conditionally Required Field Missing:144) > > > I tried doing it without the check, as you can see im getting tag 144=RN , > what am I missing? > -- > View this message in context: > http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBehalfOfLocation-%28C%2B%2B%29-tp27950964p27950972.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: <Ed....@gl...> - 2010-03-19 14:46:27
|
Those tags are in the header so are treated differently. Use getHeader(). getField( senderCompID ); Tel: +44 (0) 207 412 3698 Mobile: +44 (0) 7990 500 925 gtsafas <gt...@rb...> 19/03/2010 14:05 To qui...@li... cc Subject [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++) QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html I am trying to pull the following tags into strings. I can see the message having the tag and value but its not pulling the value. I am trying to do it the following way, which works for all other tags. FIX::SenderCompID SENDERCOMPID; if (message.isSetField(SENDERCOMPID)){ fSenderCompID = message.getField(SENDERCOMPID).getString(); } else { if (message.isSetField(49)){ fSenderCompID = message.getField(49); } } FIX::TargetCompID TARGETCOMPID; if (message.isSetField(TARGETCOMPID)){ fTargetCompID = message.getField(TARGETCOMPID).getString(); } else { if (message.isSetField(56)){ fTargetCompID = message.getField(56); } } FIX::OnBehalfOfLocationID ONBEHALFOFLOCATIONID; if (message.isSetField(ONBEHALFOFLOCATIONID)){ fOnBehalfOfLocationID = message.getField(ONBEHALFOFLOCATIONID).getString(); } else { if (message.isSetField(144)){ fOnBehalfOfLocationID = message.getField(144); } } -- View this message in context: http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBehalfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system. |
From: George T. <GT...@rb...> - 2010-03-19 14:53:04
|
Thank you very much Ed and Kenny, you guys saved me a lot of headache George Tsafas Rosenblatt Securities ________________________________ From: Ed....@gl... [mailto:Ed....@gl...] Sent: Friday, March 19, 2010 10:16 AM To: George Tsafas Cc: qui...@li... Subject: Re: [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++) Those tags are in the header so are treated differently. Use getHeader <http://www.quickfixengine.org/quickfix/doc/html/class_f_i_x_1_1_message .html#f4dd86b82c0d3ee2c63df03a80c02c41> ().getField <http://www.quickfixengine.org/quickfix/doc/html/class_f_i_x_1_1_field_m ap.html#9116cfc2e25ee379a08e7e10579fde44> ( senderCompID ); Tel: +44 (0) 207 412 3698 Mobile: +44 (0) 7990 500 925 gtsafas <gt...@rb...> 19/03/2010 14:05 To qui...@li... cc Subject [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++) QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html <http://www.quickfixengine.org/quickfix/doc/html/index.html> QuickFIX Support: http://www.quickfixengine.org/services.html <http://www.quickfixengine.org/services.html> I am trying to pull the following tags into strings. I can see the message having the tag and value but its not pulling the value. I am trying to do it the following way, which works for all other tags. FIX::SenderCompID SENDERCOMPID; if (message.isSetField(SENDERCOMPID)){ fSenderCompID = message.getField(SENDERCOMPID).getString(); } else { if (message.isSetField(49)){ fSenderCompID = message.getField(49); } } FIX::TargetCompID TARGETCOMPID; if (message.isSetField(TARGETCOMPID)){ fTargetCompID = message.getField(TARGETCOMPID).getString(); } else { if (message.isSetField(56)){ fTargetCompID = message.getField(56); } } FIX::OnBehalfOfLocationID ONBEHALFOFLOCATIONID; if (message.isSetField(ONBEHALFOFLOCATIONID)){ fOnBehalfOfLocationID = message.getField(ONBEHALFOFLOCATIONID).getString(); } else { if (message.isSetField(144)){ fOnBehalfOfLocationID = message.getField(144); } } -- View this message in context: http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBeh alfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html <http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBe halfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html> Sent from the QuickFIX - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev <http://p.sf.net/sfu/intel-sw-dev> _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers <https://lists.sourceforge.net/lists/listinfo/quickfix-developers> LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system. |