<div dir="ltr">Igor,<div><br></div><div>The typical delimiter for NoPositions is <a href="http://www.fixtradingcommunity.org/FIXimate/FIXimate3.0/en/FIX.5.0SP2/tag703.html">PosType (tag 703)</a>, which works around the fact that the group might only contain 702 <i>or</i> 704.  The simplest work-around is to ask your broker to send tag 703.  The only other work-around I can think of is: if your broker is only ever going to send NoPositions=1, you could maybe change the DataDictionary to treat NoPositions, LongQty, and ShortQty as if they are regular fields (not repeating group fields).  In your DataDictionary, you would change the PositionReport message definition to have this:<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><field name='NoPositions' required='N' /></font></div></div><div><div><font face="monospace, monospace"><field name='LongQty' required='N' /></font></div></div><div><div><font face="monospace, monospace"><field name='ShortQty' required='N' /></font></div></div><div><div><font face="monospace, monospace"><field name='PosQtyStatus' required='N' /></font></div></div></blockquote><div><br></div><div>Not this:<br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace"><div><component name='PositionQty' required='Y' /></div></font></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace"><div><br></div></font></div></blockquote><div>p.s. Google translate worked very well -- hopefully it works the other way too :)</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">--</font></div><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font></div></div></div>
<br><div class="gmail_quote">On Thu, Jul 28, 2016 at 5:54 AM, Igor Kalganov <span dir="ltr"><<a href="mailto:ikalganov@outlook.com" target="_blank">ikalganov@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div dir="ltr" style="font-family:'Calibri','Segoe UI','Meiryo','Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','sans-serif';font-size:12pt"><div><div>Hello,</div><div><br></div><div>I develop a client application to the stock exchange. Data exchange takes place on the FIX protocol. I use the library QuickFix.Net.</div><div><br></div><div>When you receive a message PositionReport a deviation message. The documentation NoPositions broker has the following format:<br>702 NoPositions - required=Y<br>704 LongPos - required=N<br>705 ShortPos - required=N.</div><div><br></div><div>DataDictionary configured as follows:<br><group name="NoPositions" required="Y"><br>        <field name="LongQty" required="N" /><br>        <field name="ShortQty" required="N" /><br></group></div><div><br></div><div>If the position for Buy comes from a broker:<br>702=1|704=1000<br>then there is no problem.</div><div><br></div><div>If the broker's position comes to Sell:<br>702=1|705=1000<br>an error occurs and the message is rejected:<br>Group 702's first entry does not start with delimeter 704.</div><div><br></div><div>Please tell me how to fix this error.</div><div><br></div><div>P.S. Sorry for my translation via Google.Translate :)</div><div>​<div>Regards,</div><div>Igor</div></div></div><div><br></div></div>
</div>

<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br></div></div></div>