{{Quickfixn}} Log In troubles
Erika Hernandez
erika.hernandez at db.com
Thu Nov 21 08:27:37 PST 2013
Classification: Public
Hi ,
I'm ver y new using FIX , I'm trying to send an order from C# to our
server.
I think this approach will work fine:
var order = new QuickFix.FIX42.NewOrderSingle();
order.ClOrdID = new ClOrdID("myOrder");
order.Side = new Side(Side.BUY);
order.OrdType = new OrdType(OrdType.LIMIT);
order.Symbol = new Symbol("AB");
order.Price = new Price((decimal)19.00);
order.Account = new Account("TestAccount");
order.ExDestination = new ExDestination("ARCA_QA");
order.OrderQty = new OrderQty((decimal)995);
order.TimeInForce = new TimeInForce(Convert.ToChar("0"));
order.SecurityID = new SecurityID("AB.N");
order.HandlInst = new HandlInst(HandlInst
.AUTOMATED_EXECUTION_ORDER_PUBLIC_BROKER_INTERVENTION_OK);
Session.SendToTarget(order);
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:
QuickFix.Message msg = new QuickFix.FIX42.Logon();
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.
Does anyone can help me , please?
I would really appreciate any help.
Regards,
Erika
********************************************************************************************************
This email is sent to you by Infosys Limited on behalf of Deutsche Bank.
Diese email wurde Ihnen von Infosys Limited im Auftrag der Deutschen Bank
gesendet
*********************************************************************************************************
---
This communication may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this communication
in error) please notify the sender immediately and destroy this
communication. Any unauthorized copying, disclosure or distribution of the
material in this communication is strictly forbidden.
Deutsche Bank does not render legal or tax advice, and the information
contained in this communication should not be regarded as such.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131121/d07c6067/attachment.htm>
More information about the Quickfixn
mailing list