<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">The login happens automatically.</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)">
If you create an initiator, and configure it with the proper login information and session times, then it will try to connect whenever it is started during an active session.</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)">Have you looked at any of the example apps?</div><div class="gmail_default"><font color="#000000"><a href="https://github.com/connamara/quickfixn/tree/master/Examples">https://github.com/connamara/quickfixn/tree/master/Examples</a></font><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 10:27 AM, Erika Hernandez <span dir="ltr"><<a href="mailto:erika.hernandez@db.com" target="_blank">erika.hernandez@db.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Classification: Public<br>
<br>
Hi ,</font>
<br>
<br><font face="sans-serif">I'm ver y new using FIX , I'm trying
to send an order from C# to our server.</font>
<br>
<br><font face="sans-serif">I think this approach will work fine:</font>
<br>
<br>
<br><font size="1" face="}"> </font><font size="1" color="blue" face="}">var</font><font size="1" face="}">
order = </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
QuickFix.FIX42.</font><font size="1" color="#4181c0" face="}">NewOrderSingle</font><font size="1" face="}">();</font>
<br><font size="1" face="}"> order.ClOrdID
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">ClOrdID</font><font size="1" face="}">(</font><font size="1" color="#a11f12" face="}">"myOrder"</font><font size="1" face="}">);</font>
<br><font size="1" face="}"> order.Side
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">Side</font><font size="1" face="}">(</font><font size="1" color="#4181c0" face="}">Side</font><font size="1" face="}">.BUY);</font>
<br><font size="1" face="}"> order.OrdType
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">OrdType</font><font size="1" face="}">(</font><font size="1" color="#4181c0" face="}">OrdType</font><font size="1" face="}">.LIMIT);</font>
<br><font size="1" face="}"> order.Symbol
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">Symbol</font><font size="1" face="}">(</font><font size="1" color="#a11f12" face="}">"AB"</font><font size="1" face="}">);</font>
<br><font size="1" face="}"> order.Price
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">Price</font><font size="1" face="}">((</font><font size="1" color="blue" face="}">decimal</font><font size="1" face="}">)19.00);</font>
<br><font size="1" face="}"> order.Account
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">Account</font><font size="1" face="}">(</font><font size="1" color="#a11f12" face="}">"TestAccount"</font><font size="1" face="}">);</font>
<br><font size="1" face="}"> order.ExDestination
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">ExDestination</font><font size="1" face="}">(</font><font size="1" color="#a11f12" face="}">"ARCA_QA"</font><font size="1" face="}">);</font>
<br><font size="1" face="}"> order.OrderQty
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">OrderQty</font><font size="1" face="}">((</font><font size="1" color="blue" face="}">decimal</font><font size="1" face="}">)995);</font>
<br><font size="1" face="}"> order.TimeInForce
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">TimeInForce</font><font size="1" face="}">(</font><font size="1" color="#4181c0" face="}">Convert</font><font size="1" face="}">.ToChar(</font><font size="1" color="#a11f12" face="}">"0"</font><font size="1" face="}">));</font>
<br><font size="1" face="}"> order.SecurityID
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">SecurityID</font><font size="1" face="}">(</font><font size="1" color="#a11f12" face="}">"AB.N"</font><font size="1" face="}">);</font>
<br><font size="1" face="}"> order.HandlInst
= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">HandlInst</font><font size="1" face="}">(</font><font size="1" color="#4181c0" face="}">HandlInst</font><font size="1" face="}">.AUTOMATED_EXECUTION_ORDER_PUBLIC_BROKER_INTERVENTION_OK);</font>
<br>
<br>
<br><font size="1" face="}"> </font><font size="1" color="#4181c0" face="}">Session</font><font size="1" face="}">.SendToTarget(order);
</font>
<br>
<br>
<br>
<br><font face="sans-serif">But previously I need to set a connection
with the server , but I don't know how to log in, I found this approach
in the sample code:</font>
<br>
<br><font size="1" face="}"> QuickFix.</font><font size="1" color="#4181c0" face="}">Message</font><font size="1" face="}">
msg = </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
QuickFix.FIX42.</font><font size="1" color="#4181c0" face="}">Logon</font><font size="1" face="}">();</font>
<br>
<br>
<br><font face="sans-serif">But I don't know how to execute it or
setting the connection data ( host, port, senderCompID , targetCompID)
, I tried to follow the example but is not clear enough for me.</font>
<br>
<br><font face="sans-serif">Does anyone can help me , please?</font>
<br>
<br>
<br><font face="sans-serif">I would really appreciate any help.</font>
<br>
<br>
<br><font face="sans-serif">Regards,</font>
<br><font face="sans-serif">Erika <br>
<br>
********************************************************************************************************<br>
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.<br>
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet<br>
*********************************************************************************************************
</font>
<br><font size="1" face="Arial">---</font><br>
<font face="Courier New">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</font><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" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>
</font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br>
</div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></div>
</div>