<div dir="ltr"><div dir="ltr" class="gmail_attr">On Mon, May 30, 2022 at 2:16 AM <<a href="mailto:raymond.stone@tindecofs.com">raymond.stone@tindecofs.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">I saw that method while I was looking but I don't see any method to get hold<br>of the data dictionary object when I have an instance of quickfixn</blockquote><div><br></div><div>You can look up the Session instance by SessionID (which is passed to you in the OnCreate, FromApp, FromAdmin, and OnMessage callbacks):</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">Session session = Session.LookupSession(sessionID);</font></div></blockquote><div><br></div><div>And then you can access the DataDictionary properties of the Session:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="monospace">DataDictionary.DataDictionary sessionDataDict = session.SessionDataDictionary;<br>DataDictionary.DataDictionary appDataDict = session.ApplicationDataDictionary;</font></blockquote><div><br></div><div>If you are using FIX.4.4 or earlier, there's only one DataDictionary, so SessionDataDictionary and ApplicationDataDictionary point to the same instance. Separate DataDictionaries are only used with FIXT sessions (i.e. FIX.5.0 and later).</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div><font face="arial, sans-serif" color="#999999">--</font></div><font face="arial, sans-serif" color="#666666"><b>Mike Gatny</b></font></div><div dir="ltr"><b style="color:rgb(153,153,153);font-family:arial,sans-serif;font-size:x-small">CONNAMARA SYSTEMS</b><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 27, 2022 at 2:18 PM Mike Gatny <<a href="mailto:mgatny@connamara.com">mgatny@connamara.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="ltr">Something like this?<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><a href="https://github.com/connamara/quickfixn/blob/master/UnitTests/DataDictionaryTests.cs#L32" target="_blank">https://github.com/connamara/quickfixn/blob/master/UnitTests/DataDictionaryTests.cs#L32</a></div></blockquote><div><div><br></div><div>e.g.:<br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-family:monospace">dataDictionary.FieldsByName["customfield"].Tag</span></div></blockquote><div><font face="monospace"><br clear="all"></font><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="arial, sans-serif" color="#999999">--</font></div><font face="arial, sans-serif" color="#666666"><b>Mike Gatny</b></font></div><div dir="ltr"><b style="color:rgb(153,153,153);font-family:arial,sans-serif;font-size:x-small">CONNAMARA SYSTEMS</b><br></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 27, 2022 at 6:00 AM <<a href="mailto:raymond.stone@tindecofs.com" target="_blank">raymond.stone@tindecofs.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 lang="EN-GB"><div><p class="MsoNormal"><span lang="EN-US">Is there a method provided by default to look up a custom data dictionary to get the tag for a named item?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Basically I am using two providers, both give groups of quotes but both use non standard tags and they differ by provider, so I ideally want to be able to get the field number by name in the dictionary, ie tagno = GetTagForName(“customfield”)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Is this at all possible?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></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>
</blockquote></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>