开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Tws Vs Gateway Api


 

Does anyone happen to know??

I use the Gateway API for placing orders using my python script. In?the gateway settings there are a few options to set specific order conditions, However in the settings of the Regular Desktop TWS, there are far more options to set specific order conditions. My question is, will the order settings in my TWS apply to orders I place using the gateway API? Assuming I'm using the same instrument and the same account??

Thank you for any help
Adam


 

Are you referring to the Global Configuration -> Presets -> ... settings in TWS, Adam? Those only impact orders you manually place from within TWS and they are missing from IB Gateway since it does not provide manual order processing.

Those TWS order presets have no impact on orders your client applications place through the TWS API. But you can easily write a small function that initializes presets in the objects you send to the API.

闯ü谤驳别苍


 

Hello Jurgen,?
Wow thank you for the through explanatio, I super appreciate it! Also I am eager to try to come up with something using your solution;? the IBApi.Order object?