Re: [Quickfix-developers] Order Types/ FIX Codes
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-10-05 14:37:01
|
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 |