No, first one mustn't always be SMART. Only specify SMART if you want your
toggle quoted message
Show quoted text
order to be smart-routed. If you want it routed to a specific exchange, specify that exchange. The primary exchange argument is only needed when you've specified SMART for the first argument, AND there is more than one SMART router for that stock (for example one in USA and one in Europe). The primary exchange argument tells IB which SMART router to use. For example, in TWS add a market data line for IBM: you'll see in the Contract Selection dialogue that there are two SMART entries: one for USA exchanges and one for European exchanges. So if you wanted your order routed via European SMART, you'd have to specify say IBIS as the primary exchange. I don't know what happens if you don't specify a primary exchange in these circumstances. Richard -----Original Message-----
From: TWSAPI@... [mailto:TWSAPI@...]On Behalf Of Luis C. Uribe Sent: 13 April 2006 18:33 To: TWSAPI@... Subject: [TWS API] PlaceOrder arguments This method of the API for placing orders has 2 contiguous exchange arguments. For stocks my understanding is that the first must always be SMART. My question what should the second one be? Should I code SMART again? I would prefer not having to know on what exchange each stock is traded as the documentation of the API seems to imply for coding this second exchange argument. Thanks for any help, Luis C Uribe |