<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">The readme on the link I gave explains what each example app is.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 11:39 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>
</font>
<br><font face="sans-serif">I tried this:</font>
<br>
<br><font size="1" face="}"> </font><font size="1" color="#4181c0" face="}">UnitTestContext</font><font size="1" face="}">
context = </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">UnitTestContext</font><font size="1" face="}">();</font>
<br>
<br><font size="1" face="}">            </font><font size="1" color="#4181c0" face="}">ConnectionViewModel</font><font size="1" face="}">
vm = </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">ConnectionViewModel</font><font size="1" face="}">(context.App);</font>
<br>
<br><font size="1" face="}">            </font><font size="1" color="#4181c0" face="}">Assert</font><font size="1" face="}">.False(vm.IsConnected);</font>
<br>
<br><font size="1" face="}">            vm.ConnectCommand.Execute(</font><font size="1" color="blue" face="}">null</font><font size="1" face="}">);</font>
<br><font size="1" face="}">            context.Login();</font>
<br><font size="1" face="}">            </font><font size="1" color="#4181c0" face="}">Assert</font><font size="1" face="}">.True(vm.IsConnected);</font>
<br>
<br>
<br><font face="sans-serif">But at the end, LogIn just does this:</font>
<br>
<br><font size="1" face="}">  </font><font size="1" color="red" face="}">_qfapp</font><font size="1" face="}">.LogonEvent
+= </font><font size="1" color="blue" face="}">new</font><font size="1" face="}">
</font><font size="1" color="#4181c0" face="}">Action</font><font size="1" face="}">(</font><font size="1" color="blue" face="}">delegate</font><font size="1" face="}">()
{ </font><font size="1" color="red" face="}">IsConnected</font><font size="1" face="}">
= </font><font size="1" color="blue" face="}">true</font><font size="1" face="}">;
});</font>
<br>
<br>
<br><font face="sans-serif">So, I think it is  not really setting
a connection , just changes the flag.</font>
<br><font face="sans-serif">In any part of that code is reading
the config file.</font>
<br>
<br><font face="sans-serif">If I  just need to send orders
from C# to a server ( I'm not expecting to receive anything from the server)
which example should I check?</font>
<br>
<br>
<br><font face="sans-serif">Thanks & regards</font>
<br><div class="im"><font face="sans-serif"><br>
<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>
<br>
<br>
</div><table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><div class="im"><font size="1" face="sans-serif">"Mailing list for QuickFIX/n"
<<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>>, </font>
</div></td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">11/21/2013 12:17 PM</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: {{Quickfixn}} Log In troubles</font></td></tr></tbody></table>
<br>
<hr noshade>
<br>
<br><div><div class="h5">
<br><font>The login happens automatically.</font>
<br>
<br><font>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.</font>
<br>
<br><font>Have you looked at any of the example apps?</font>
<br><a href="https://github.com/connamara/quickfixn/tree/master/Examples" target="_blank"><font size="3" color="blue"><u>https://github.com/connamara/quickfixn/tree/master/Examples</u></font></a>
<br><font size="3"><br>
</font>
<br><font size="3">On Thu, Nov 21, 2013 at 10:27 AM, Erika Hernandez <</font><a href="mailto:erika.hernandez@db.com" target="_blank"><font size="3" color="blue"><u>erika.hernandez@db.com</u></font></a><font size="3">>
wrote:</font>
<br><font size="3" face="sans-serif">Classification: Public<br>
<br>
Hi ,</font><font size="3"> <br>
</font><font size="3" face="sans-serif"><br>
I'm ver y new using FIX , I'm trying to send an order from C# to our server.</font><font size="3">
<br>
</font><font size="3" face="sans-serif"><br>
I think this approach will work fine:</font><font size="3"> <br>
<br>
</font><font size="1" face="}"><br>
            </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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
</font><font size="1" face="}"><br>
            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><font size="3">
<br>
<br>
</font><font size="1" face="}"><br>
            </font><font size="1" color="#4181c0" face="}">Session</font><font size="1" face="}">.SendToTarget(order);
</font><font size="3"><br>
<br>
<br>
</font><font size="3" face="sans-serif"><br>
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><font size="3">
<br>
</font><font size="1" face="}"><br>
 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><font size="3">
<br>
<br>
</font><font size="3" face="sans-serif"><br>
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><font size="3"> <br>
</font><font size="3" face="sans-serif"><br>
Does anyone can help me , please?</font><font size="3"> <br>
<br>
</font><font size="3" face="sans-serif"><br>
I would really appreciate any help.</font><font size="3"> <br>
<br>
</font><font size="3" face="sans-serif"><br>
Regards,</font><font size="3"> </font><font size="3" face="sans-serif"><br>
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><font size="1" face="Arial"><br>
---</font><font size="3" face="Courier New"><br>
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><font size="3"><br>
_______________________________________________<br>
Quickfixn mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank"><font size="3" color="blue"><u>Quickfixn@lists.quickfixn.com</u></font></a><font size="3" color="blue"><u><br>
</u></font><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank"><font size="3" color="blue"><u>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</u></font></a><font size="3"><br>


</font>
<br><font size="3"><br>
</font>
<br>
<br><font size="3">-- </font>
<br><font size="3">Grant Birchmeier</font>
<br><font size="3" color="#4141ff"><b>Connamara Systems, LLC</b></font>
<br><font size="3"><b>Made-To-Measure Trading Solutions.</b></font>
<br><font size="3">Exactly what you need. No more. No less.</font>
<br></div></div><a href="http://connamara.com/" target="_blank"><font size="3" color="blue"><u>http://connamara.com</u></font></a><tt><font>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
</font></tt><div class="HOEnZb"><div class="h5"><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank"><tt><font>http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</font></tt></a><tt><font><br>


</font></tt>
<br>
<br>
<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></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" 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>