RE: [Quickfix-developers] Order Types/ FIX Codes
Brought to you by:
orenmnero
|
From: Jo J. <jo...@tr...> - 2005-10-05 14:43:22
|
The system I use is a combination of date and sequence number generated by my database. i.e. 20051004-0000001 I feel like this is a pretty good guarantee of uniqueness, and I can reset the sequence in the DB each night. The only trick is to make sure the id isn't too long for your broker/exchange's system to handle. Jo Janssens Telluride Asset Management 952.653.6456 -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Oren Miller Sent: Wednesday, October 05, 2005 09:37 To: Caleb Epstein Cc: Shankar Krishnan; qui...@li... Subject: Re: [Quickfix-developers] Order Types/ FIX Codes QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html A convenient solution for most systems, if you don't want to put a lot of effort into it, is to use the value of the MsgSeqNum. If you are worried about sequence resets, pair it with a time value. --oren On Oct 5, 2005, at 9:25 AM, Caleb Epstein wrote: > On 10/5/05, Shankar Krishnan <skr...@jw...> wrote: > What is the normal method used to generate ClOrdID, is using the > random number gen valid or should I use something > More robust. > > Most exchanges and sell-side systems expect every ClOrdID to be > unique for a given session and will reject or ignore duplicates. > Using a random number generator isn't a very good idea unless you > can be sure it doesn't repeat. Most systems use either a simple > increasing sequence number or something like the NYSE DOT system's > branch code + sequence number convention (AAA 0001, AAA 0002, ... > ZZZ 9999). > > -- > Caleb Epstein > caleb dot epstein at gmail dot com ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |