# ClOrdID max length

**URL:** <https://forum.fixtrading.org/t/clordid-max-length/3978>\
**Category:** General Q&A\
**Tags:** general-qa, xid\_167203, imported\
**Created:** [July 18, 2008, 7:30am UTC](https://forum.fixtrading.org/t/clordid-max-length/3978 "2008-07-18T07:30:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhakapur\_x](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vibhakapur\_x](https://forum.fixtrading.org/u/vibhakapur_x)\
**Post date:** [July 18, 2008, 7:30am UTC](https://forum.fixtrading.org/t/clordid-max-length/3978/1 "2008-07-18T07:30:57Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![vibhakapur\_x](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vibhakapur\_x](https://forum.fixtrading.org/u/vibhakapur_x)\
**Post date:** [July 18, 2008, 7:30am UTC](https://forum.fixtrading.org/t/clordid-max-length/3978/2 "2008-07-18T07:30:57Z")

</div>

Hello Everyone

In my application, i have specified max length as 16 chars for ClOrdID (Tag 11).  
I am getting some exceptions because of this ClOrdID size.

Can anybody, please let me know that what is the maximum length i can consider for Client Order ID (ClOrdID)?

Is there any specification from FIX 4.2 for the same?

Thanks & Regards  
Vibha

---

<div class="post-metadata">

**Author:** ![hanno.klein](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/hanno.klein/32/38_2.png) [@hanno.klein](https://forum.fixtrading.org/u/hanno.klein)\
**Post date:** [July 18, 2008, 8:47am UTC](https://forum.fixtrading.org/t/clordid-max-length/3978/3 "2008-07-18T08:47:22Z")

</div>

FIX intentionally only defines data types but no minimum or maximum length of a field. This is to be bilaterally agreed between the parties exchanging messages. I guess you will have to take the largest value when communicating with multiple parties.

Regards,  
Hanno.

> Hello Everyone
> 
> In my application, i have specified max length as 16 chars for ClOrdID  
> (Tag 11). I am getting some exceptions because of this ClOrdID size.
> 
> Can anybody, please let me know that what is the maximum length i can  
> consider for Client Order ID (ClOrdID)?
> 
> Is there any specification from FIX 4.2 for the same?
> 
> Thanks & Regards Vibha

---

<div class="post-metadata">

**Author:** ![gregnadan\_x](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@gregnadan\_x](https://forum.fixtrading.org/u/gregnadan_x)\
**Post date:** [July 18, 2008, 1:13pm UTC](https://forum.fixtrading.org/t/clordid-max-length/3978/4 "2008-07-18T13:13:00Z")

</div>

Have seen a few places that create CLID’s over 80 chars…

> Hello Everyone
> 
> In my application, i have specified max length as 16 chars for ClOrdID  
> (Tag 11). I am getting some exceptions because of this ClOrdID size.
> 
> Can anybody, please let me know that what is the maximum length i can  
> consider for Client Order ID (ClOrdID)?
> 
> Is there any specification from FIX 4.2 for the same?
> 
> Thanks & Regards Vibha

---

<div class="post-metadata">

**Author:** ![srithayaparan\_x](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@srithayaparan\_x](https://forum.fixtrading.org/u/srithayaparan_x)\
**Post date:** [July 25, 2008, 2:42pm UTC](https://forum.fixtrading.org/t/clordid-max-length/3978/5 "2008-07-25T14:42:47Z")

</div>

Hi Everyone,

In general 50 is a reasonable maximum length. Generally, CMS systems and CMS flavored systems require you to stamp various other info also appended to Client Order ID. If you are the end-executer (exchange), you can limit it to 20 which is reasonable. If you are the order submitter, have 50 to be ready to accommodate pure FIX and CMS flavored FIX.

Personally, I don’t agree on dictating terms to the order submitter to format the client order ID in a “pre-defined” format. Its supposed to be the “Client Order ID”. Again Darwinism holds… “Survival of the fittest” If the exchange is giant enough, you are supposed to obey!

Rgds,  
Thaya.

> Have seen a few places that create CLID’s over 80 chars…
> 
> > Hello Everyone
> > 
> > In my application, i have specified max length as 16 chars for ClOrdID  
> > (Tag 11). I am getting some exceptions because of this ClOrdID size.
> > 
> > Can anybody, please let me know that what is the maximum length i can  
> > consider for Client Order ID (ClOrdID)?
> > 
> > Is there any specification from FIX 4.2 for the same?
> > 
> > Thanks & Regards Vibha
