问题描述
在编写的是,为了使用IB api,您必须通过TWS或IB网关连接到它。
In https://www.interactivebrokers.com/en/index.php?f=5041&ns=T it is written that in order to use the IB api you have to connect to it through the TWS or IB Gateway.
什么每个的优势是什么?什么解决方案(Gateway或TWS)提供更好的性能?
What is the advantage of each? What solution (Gateway or TWS) provides a better performance?
推荐答案
网关缺少TWS的GUI,但提供相同的API。
The Gateway lacks the GUI of the TWS, but provides the same API.
它也是有关自动退出交易平台的优势:
It also has an advantage concerning the automatic logout of TWS:
如果不这样做在开发或部署应用程序时需要TWS的完整GUI,请使用网关。它提供相同的API功能,开销更少。
If you don't need the full GUI of the TWS while you are developing or while your application is deployed, use the gateway. It provides the same API functionlity with much less overhead.
对于所有类型的TWS API相关问题,我建议看一下和。
For all kinds of TWS API related questions I suggest having a look at the IB TWS API Yahoo Group, and "Dmitry’s TWS API FAQ".
这篇关于Interactive Brokers API:交易平台(TWS)与IB网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!