Imported from previous forum
[ original email was from Ram Pantangi - ram.pantangi@morganstanley.com ]
Can anybody help me find how long clOrdId can be? Does it depend on exchange? I have googled alot but did not find much documentation except that it looks like BATS needs it less than 20 characters. Thanks.
Can anybody help me find how long clOrdId can be? Does it depend on exchange? I have googled alot but did not find much documentation except that it looks like BATS needs it less than 20 characters. Thanks.
ClOrdID length depends on the FIX host you plan to connect too. Usually the FIX host defines the length required based on their internal requirements and field lengths. BATS is a good example as most systems will allow at least 20 characters. Many times Client FIX systems will incorporate the date in some fashion into the creation of their ClOrdID in order to help identify and accommodate sending of GTC orders. (Example 20121003-1, 20121003-2,…). Using alpha numeric counters can increase the total number of IDs generated but the complexity is usually left up to you.