[英]First installation of ib_insync and error messages
我正在使用python 3.6,我想使用来自ib_insync的新API。
我已经安装了该库,并按照帮助页面上的说明进行了操作:
Python version 3.6 or higher;
The Interactive Brokers Python API version 9.73.03 or higher;
A running TWS or IB gateway application (version 967 or higher). Make sure the API port is enabled and 'Download open orders on connection' is checked.
但是,当我在Spyder上运行示例代码时,出现以下错误消息:需要http://interactivebrokers.github.io的 IB API发生了异常,请使用%tb查看完整的追溯。
我检查了库ib_insync是否在内核中。
有什么我可以做的更多的吗?
谢谢
这对我有用。 某种不必要的“无证”步骤
安装IB API之后(在Windows上,它安装到C:\\ TWS API ...在Mac / Linux上,您将按照说明解压缩到〜/文件夹。)
导航
cd "C:\TWS API\TWS API\source\pythonclient"
并运行以下命令。
python3 setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.