{{Quickfixn}} Limit String Length

Grant Birchmeier gbirchmeier at connamara.com
Sat Nov 14 21:05:11 PST 2015


http://i.imgur.com/xJOu1F5.jpg



On Sat, Nov 14, 2015 at 6:06 PM, Russell Brown <russ.brown at rogers.com>
wrote:

> You need:
>
>
> int max = 100;
> String n = "";
>
> while (true)
> {
>     if (n.length() < max)
>     {
>         n += "some data";
>     }
>
>     // some break statement
>
> }
>
>
> RUSSELL BROWN
> Markham Ontario
> Currently a Java Programmer working with the IB-Gateway on the client side.
>
>
>
> ------------------------------
> *From:* "Gaull, Jim" <JGaull at ftportfolios.com>
> *To:* Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
> *Sent:* Friday, November 13, 2015 3:44 PM
>
> *Subject:* Re: {{Quickfixn}} Limit String Length
>
> Thanks for the response!  I can add the logic myself but I didn’t want to
> add my own custom code if there was already a way to do it using QuickFIX.
>
>
>
> *From:* Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] *On
> Behalf Of *Grant Birchmeier
> *Sent:* Friday, November 13, 2015 11:40 AM
> *To:* Mailing list for QuickFIX/n
> *Subject:* Re: {{Quickfixn}} Limit String Length
>
> Sorry, no, that's not an implemented feature in any QF port that I'm aware
> of.
>
> On Fri, Nov 13, 2015 at 9:16 AM, Gaull, Jim <JGaull at ftportfolios.com>
> wrote:
> Hi everyone,
>
> Does anyone know if there’s a way to set the maximum string length that’s
> allowed for a tag through the dictionary?  I would like to reject messages
> back to our counterparty if certain tags are too long.  For example, I
> believe our counterparty could send us a string that’s 100 characters long
> for the symbol (tag 55) but our database isn’t set up to accept a field
> that long.  For the sake of speed, I insert the contents of the messages
> into our database before validating the lengths of the tags.  If it’s not
> possible, I’ll just add a quick check before inserting into the database
> since my inserts are happening on a separate thread and won’t slow down the
> processing of new messages coming in.
>
> Thanks!!
>
>
> _______________________________________________
> 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
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
>
> _______________________________________________
> 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/20151114/ccb80cae/attachment-0002.htm>


More information about the Quickfixn mailing list