¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Direct orders to TGATE are routed SMART, status stay dark blue


 

Good evening,

since years I am sending orders via API (Excel) direct with PrimExchange = TGATE and Exchange = TGATE (no smart routing). I never faced any problems. Since yesterday I see these orders int the TWS application with a " dark blue" status (instead of green) and although I used direct routing they are not sendet to Tradegate, but have a "smart" label. I have aboslutely no idea what causes this behaviour. Did IB change something in the smart routing? Is it a bug in there system?

Any help or ideas are aprpeciated.

Regards,
Daniel


 

Hello Daniel,

I send my orders to Tradegate too. I while ago I had to check a new configuration setting in the IB gateway: "API->Precautions->Bypass Redirect Order warning for Stock API Orders". I cannot remember if it was the same issue you are describing, but it helped getting my TGATE orders working again.
Also if you are placing your orders after 5.30 p.m. you have to set the "rth"-Attribute to true. I don't know if it's the same in Excel as I use the Java API.

Hope I could help you.

Regards,
Michael


 

Hi Michael,

thanks for your answer, althought it did not solve my problem ("rth"-attribute was already set and the order warning did not cause the problem). However, in case someone has the same problem in the future, Id like to share the solution:

In the TWS-configuration in the "presets" --> "stocks" section you find the box "Prefer SMART". TWS will SMART route all orders if Smart-routing is available, regardless of the routing selection defined for the ticker. And only if you navigate with the mouse over the small info-icon they tell you, that this also applies to orders send via the API!

I never changed this setting, so i dont know if the setting changed by itself in the last week or if the way the setting works changed. However: I checked the box and now everything works fine again.

Regards,
Daniel