# Unique EXECID (17) is it for the day or is it never recycled

**URL:** <https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346>\
**Category:** General Q&A\
**Tags:** general-qa, imported, xid\_166042\
**Created:** [May 20, 2005, 6:41pm UTC](https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346 "2005-05-20T18:41:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [May 20, 2005, 6:41pm UTC](https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346/1 "2005-05-20T18:41:39Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [May 20, 2005, 6:41pm UTC](https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346/2 "2005-05-20T18:41:39Z")

</div>

[original email was from Zul Kagalwalla - [zkagalwalla@fmco.com](mailto:zkagalwalla@fmco.com) ]  
Hello,

According to FIX specifications it is recommended that the EXECID be unique for a day.

My question is based on the FIX communities expereince are people using a unique EXECID for the day or globally unique? (i.e. once an execid is used, then it is never used again).

Thanks  
Zul

---

<div class="post-metadata">

**Author:** ![rickygodinho\_x](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rickygodinho\_x](https://forum.fixtrading.org/u/rickygodinho_x)\
**Post date:** [May 20, 2005, 8:38pm UTC](https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346/3 "2005-05-20T20:38:08Z")

</div>

If you are handling day orders only there is no reason why you shouldn’t recycle your ExecIds daily. But if you are looking into supporting multi day orders (GTC, GTD,…) then you have to guarantee uniqueness across different days. A good way to achieve this is by prefixing the ExecId with YYYYMMDD for example, ie, 17=YYYYMMDDuvwxyz.

> Hello,
> 
> According to FIX specifications it is recommended that the EXECID be  
> unique for a day.
> 
> My question is based on the FIX communities expereince are people using  
> a unique EXECID for the day or globally unique? (i.e. once an execid is  
> used, then it is never used again).
> 
> Thanks Zul

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [May 20, 2005, 8:56pm UTC](https://forum.fixtrading.org/t/unique-execid-17-is-it-for-the-day-or-is-it-never-recycled/2346/4 "2005-05-20T20:56:38Z")

</div>

[original email was from John Prewett - [jprewett@lavatrading.com](mailto:jprewett@lavatrading.com) ]  
I believe it is always preferable to allocate permanently unique ExecIDs, even if you are only processing day orders (you never know what line of business will open up tomorrow, right?).

You can never tell if the recipients of your ExecIDs are storing them in a database which requires permanent uniqueness. Under this circumstance, if your ExecIDs aren’t permanently unique, you are adding a chore onto the recipient to prepend YYYYMMDD to your ExecID and also to remember to strip it off again when sending it back to you.

Unfortunately, the downside to a permanently unique ExecID is that the additional YYYYMMDD also makes the ExecID 8 characters longer. Some recipients are (IMHO overly) sensitive to the length of the ExecID and may force you to keep it to an (IMHO unreasonably) small length. Under this circumstance, the allocator can still have the ExecID start with YYYYMMDD internally, but strip off the 8 characters prior to transmission. Of course, receiving an “abbreviated” ExecID will also cause you to have to add today’s date onto the front of it under these circumstances. Clearly, the sender of the abbreviated ExecID can only refer to today’s business, but that’s their problem for having imposed an absurdly small ExecID length upon you.

I hope this helps (and isn’t too opinionated 🙂

JohnP

> If you are handling day orders only there is no reason why you shouldn’t  
> recycle your ExecIds daily. But if you are looking into supporting multi  
> day orders (GTC, GTD,…) then you have to guarantee uniqueness across  
> different days. A good way to achieve this is by prefixing the ExecId  
> with YYYYMMDD for example, ie, 17=YYYYMMDDuvwxyz.
> 
> > Hello,
> > 
> > According to FIX specifications it is recommended that the EXECID be  
> > unique for a day.
> > 
> > My question is based on the FIX communities expereince are people  
> > using a unique EXECID for the day or globally unique? (i.e. once an  
> > execid is used, then it is never used again).
> > 
> > Thanks Zul
