安装IBKR python API

IB官网下载最新API,选Software: TWS API,然后”I Agree” License aggreement。然后选平台,比如TWS API Latest for Mac / Unix。

https://www.interactivebrokers.com/en/index.php?f=5041

cd 到下载地址。

unzip twsapi_macunix.985.02.zip

根据README.md里说的

python3 setup.py sdist
python3 setup.py bdist_wheel
python3 -m pip install  --upgrade dist/ibapi-9.85.2-py3-none-any.whl

具体版本可能有点不一样。我安装的时候README.md里的版本有点过时,不是下载的现有版本。

安装完成后就可以读User’s Guide了。

Leave a Comment

Your email address will not be published.