<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">If you look at the FIX4.2. spec's default DataDictionary, you'll see that MultiLegReportingType (tag 442) does not actually belong to NewOrderSingle.  Since the default FIX42 build is based on the spec, of course the method NewOrderSingle.Set(MultiLegReportingType) does not exist.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">I'm guessing you're new to FIX and QuickFIX.  What you're seeing is that your counterparty has made customizations to their DD, adding 442 to NewOrderSingle.  Surely they have made many other customizations as well.  You will need to obtain (ask your counterparty!) or create a new custom FIX42.xml DataDictionary and set your QF config to use it.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">To set 442 in your message outside of a repeating group, you can use a generic tag setter:<br></div><div class="gmail_default"><font color="#000000">> order.SetField(new MultiLegReportingType('3'));</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">See for more tips:</font></div><div class="gmail_default"><font color="#000000"><a href="http://quickfixn.org/tutorial/sending-messages.html">http://quickfixn.org/tutorial/sending-messages.html</a></font><br></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Depending on the complexity of your DD changes, another option is regenerating the QF/n source with your DD and creating a custom build.  But that's an advanced topic.</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">-Grant</font></div><div class="gmail_default"><font color="#000000"><br></font></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 1:33 PM Miguel Angel Torres <<a href="mailto:mikitowers@gmail.com">mikitowers@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr">Hi everybody,<div>I sent a email last week about send order with legs with fix 4.2. I was investigating about it, there is a property MultiLegReportingType at documentation fix 4.2, the code is 442 and it indicates the type of instrument the Execution Report
refers to. Used with multi-leg securities such as, Options
Strategies, Spreads, etc.</div><div><br></div><div>Using this property at quickfix 4.2 I can' t set to the NewOrderSingle because the attribute MultiLegReportingTye isn't at NewOrderSingle class but it's present at QuickFix.Fields.</div><div><br></div><div>For example:</div><div>QuickFix.FIX42.NewOrderSingle orden = new QuickFix.FIX42.NewOrderSingle(<br>                               new QuickFix.Fields.ClOrdID("1"),<br>                               new QuickFix.Fields.HandlInst(1),<br>                               new QuickFix.Fields.Symbol("AAL"),<br>                               new QuickFix.Fields.Side(QuickFix.Fields.Side.BUY),<br>                               new QuickFix.Fields.TransactTime(DateTime.Now),<br>                               new QuickFix.Fields.OrdType(QuickFix.Fields.OrdType.MARKET)<br>  );<br>  <font color="#f44336">orden.Set(new QuickFix.Fields.MultiLegReportingType('3'));</font></div><div dir="auto"><br></div><div dir="auto">The error is <font color="#f44336">here</font>: </div><div dir="auto">CS1503: argument 1 can't convert  from QuickFix.Fields.MultiLegReportingType to QuickFix.Fields.ClOrdID</div><div><div><br></div><div>I don't know how solve it, if anyone have any idea about the solution please answer me. I will continue investigating about it.</div><div><br></div><div>Thanks for all.</div><div>Best regards.</div><div><br></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr">::Miguel Angel Torres Pado::</div></div></div></div>
</div></div>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>

<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span>