{{Quickfixn}} Set Stipulations In Quote message

Grant Birchmeier gbirchmeier at connamara.com
Fri Feb 24 14:39:11 PST 2017


You need to read the docs:
http://quickfixn.org/tutorial/repeating-groups.html

In your code, you are actually only setting one Type and Value; each
assignment clobbers the previous one.  You end up sending a message with
NoStipulations=3 but only one Type/Value.

You need to create StipulationGroup objects and add those.  Do NOT manually
set NoStipulations!  Read the doc link above and I think you'll see how it
works.

On Fri, Feb 24, 2017 at 4:24 PM, Nepali, Mahendra (CWM-NR) <
mahendra.nepali at rbccm.com> wrote:

> Hi,
> I am trying to set stipulations in a quote message I am working on using
> quickfix n. The following is the snippet. But in the fix only one
> stipulation Type is set and I get a reject as the number of stipulation
> does not match the items I am sending in the fix. Please let me know what
> is it I am missing here.
>
>             this.Message.SetField(new NoStipulations(3));
>             this.Message.SetField(new StipulationType("SUGGSALESCR"));
>             this.Message.SetField(new StipulationValue(entity.
> BondDeskRetailSalesCredits.ToString()));
>             this.Message.SetField(new StipulationType("MINSALESCR"));
>             this.Message.SetField(new StipulationValue(entity.
> BondDeskRetailSalesCreditsMin.ToString()));
>             this.Message.SetField(new StipulationType("MAXSALESCR"));
>             this.Message.SetField(new StipulationValue(entity.
> BondDeskRetailSalesCreditsMax.ToString()));
>
>
> Regards
> Mahendra
>
>
>
>
> ________________________________________
>
> This E-Mail (including any attachments) may contain privileged or
> confidential information.  It is intended only for the addressee(s)
> indicated above.
>
> The sender does not waive any of its rights, privileges or other
> protections respecting this information.
>
> Any distribution, copying or other use of this E-Mail or the information
> it contains, by other than an intended recipient, is not sanctioned and is
> prohibited.
>
> If you received this E-Mail in error, please delete it and advise the
> sender (by return E-Mail or otherwise) immediately.
>
> This E-Mail (including any attachments) has been scanned for viruses.
>
> It is believed to be free of any virus or other defect that might affect
> any computer system into which it is received and opened.
>
> However, it is the responsibility of the recipient to ensure that it is
> virus free.
>
> The sender accepts no responsibility for any loss or damage arising in any
> way from its use.
>
> E-Mail received by or sent from RBC Capital Markets is subject to review
> by Supervisory personnel.
>
> Such communications are retained and may be produced to regulatory
> authorities or others with legal rights to the information.
>
> IRS CIRCULAR 230 NOTICE:  TO COMPLY WITH U.S. TREASURY REGULATIONS, WE
> ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVICE INCLUDED IN THIS COMMUNICATION
> IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY
> U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER
> PARTY ANY TRANSACTION OR MATTER.
>
> _______________________________________________
> Quickfixn mailing list
> 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/20170224/b9984e6e/attachment-0002.htm>


More information about the Quickfixn mailing list