[Quickfix-developers] Order routing best practices?
Brought to you by:
orenmnero
|
From: John H. <jr...@ya...> - 2006-09-13 16:14:11
|
Is there an example available of best-practice / suggested method for routing orders? Specifically, here's what I'm trying to do:
I have an application which allows users to enter new stock orders, and specify which exchange or clearing firm they would like to send to (ARCA, Island, ISE, Redi, Pax). My FIX interface can correctly route to the desired exchange by passing in the appropriate TargetCompID (I'm connecting to all five exchanges directly with five different sessions). In the event that one of my exchange connections is down, I'd like my application to immediately re-route the new order to an available exchange. This way the order gets in for my users, although not necessarily to their first choice of exchanges.
What's the safest/best way to test that a session is logged on and available? Does SendToTarget return an error code if the target is not available? Is there a Session Logon status I can query prior to calling SendToTarget? Any suggestions would be greatly appreciated.
Many thanks,
John Haldi
--------------------------------------
John Haldi
Allagash Trading, LLC
120 Broadway, 20th Floor
New York, NY 10271
212.433.3958
jo...@al...
|