[英]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.