{{Quickfixn}} NewOrderList with repeating groups

Selvaraj, Karthik (London) Karthik.Selvaraj at man.com
Wed Mar 26 08:18:30 PDT 2014


Thanks Grant.  So something along these lines ?

                    var orderList = new QuickFix.FIX42.NewOrderList();
                    orderList.ListID = new ListID(tickets[0].OrderId.ToString(CultureInfo.InvariantCulture));
                    orderList.TotNoOrders = new TotNoOrders(tickets.Count);

                    for (var i = 0; i < tickets.Count; i++)
                    {
                        var seqGroup = new QuickFix.FIX42.NewOrderList.NoOrdersGroup();
                        seqGroup.SetField(new ClOrdID(tickets[i].Id.ToString(CultureInfo.InvariantCulture)));
                        seqGroup.SetField(new ListSeqNo(i + 1));

                        seqGroup.SetField(new Symbol(tickets[i].TradingSecId.ToString(CultureInfo.InvariantCulture)));
                        seqGroup.SetField(tickets[i].Quantity > 0 ? new Side(Side.BUY) : new Side(Side.SELL));
                        seqGroup.SetField(new TransactTime(DateTime.Now));
                        seqGroup.SetField(new OrderQty(Math.Abs(tickets[i].Quantity)));
                    orderList.AddGroup(seqGroup);
                      }
  Session.SendToTarget(...............)


Can you confirm if the above appears ok ?

Reg,
Karthik

From: quickfixn-bounces at lists.quickfixn.com [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Grant Birchmeier
Sent: 26 March 2014 15:09
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} NewOrderList with repeating groups

I think you want to create a NoOrdersGroup object, not a generic Group object.  There are no arguments.

var v = new QuickFix.FIX42.NewOrderList.NoOrdersGroup();


On Wed, Mar 26, 2014 at 7:06 AM, Selvaraj, Karthik (London) <Karthik.Selvaraj at man.com<mailto:Karthik.Selvaraj at man.com>> wrote:
Hi there,
  I need an example to create repeating groups of orders using NewOrderList in FIX 4.2.
Not sure what should be the arguments for the QuickFix.Group constructor.

Thanks.


This email has been sent by a member of the Man group ("Man"). Man's parent company, Man Group plc, is registered in England and Wales (company number 08172396) at Riverbank House, 2 Swan  Lane, London, EC4R 3AD.
The contents of this email are for the named addressee(s) only. It contains information which may be confidential and privileged. If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man reserves the right to monitor, record and retain all electronic and telephone communications through its network in accordance with applicable laws and regulations. --UwQe9f5k7pI3vplngP

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com<mailto:Quickfixn at lists.quickfixn.com>
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com



--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140326/8cbc3381/attachment-0002.htm>


More information about the Quickfixn mailing list