简体   繁体   English

首次安装ib_insync和错误消息

[英]First installation of ib_insync and error messages

I am woarking with python 3.6, I want to use the new API from : ib_insync. 我正在使用python 3.6,我想使用来自ib_insync的新API。

I have installed this library and followed the instructions from the help page : 我已经安装了该库,并按照帮助页面上的说明进行了操作:

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.

Hoever, when I run the sample code on Spyder I have the following error message : IB API from http://interactivebrokers.github.io is required An exception has occurred, use %tb to see the full traceback. 但是,当我在Spyder上运行示例代码时,出现以下错误消息:需要http://interactivebrokers.github.io的 IB API发生了异常,请使用%tb查看完整的追溯。

I have checked that the labrary ib_insync is in the kernel. 我检查了库ib_insync是否在内核中。

Is there is something I could do more ? 有什么我可以做的更多的吗?

Thanks 谢谢

Here is what worked for me. 这对我有用。 Sort of unnecessary "undocumented" step 某种不必要的“无证”步骤

After installing the IB API (on Windows it installs to C:\\TWS API... on Mac / Linux you will unzip to your ~/ folder as per the instructions.) 安装IB API之后(在Windows上,它安装到C:\\ TWS API ...在Mac / Linux上,您将按照说明解压缩到〜/文件夹。)

Navigate to 导航

    cd "C:\TWS API\TWS API\source\pythonclient"

and run the following command. 并运行以下命令。

    python3  setup.py install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM