<font size=2 face="sans-serif">Classification: Public<br>
<br>
Hi ,</font>
<br>
<br><font size=2 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 size=2 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 size=2 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 size=2 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 size=2 face="sans-serif">Does anyone can help me , please?</font>
<br>
<br>
<br><font size=2 face="sans-serif">I would really appreciate any help.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 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 size="2" 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>