简体   繁体   中英

Installed ibpy2 but cannot import

I installed Ibpy2 to connect to my interactive broker account.

https://github.com/blampe/IbPy

I installed IbPy2 successfully (by installing pip install IbPy2 AND python setup.py install ).

However, when I open Spyder in Anaconda and run from IBWrapper import IBWrapper, contract . It says:

No module named 'IBWrapper'.

Please advise how I may fix it. Many, many thanks!

IbPy is outdated, it's a 3rd party module that's no longer supported as there is an official Python module available.

If you wish to use a IbPy like interface to interact with the official API, use IbPythonic. It's almost identical to IbPy with minor adjustments, for example IbPy has 'm_' prefixes in functions.

Please refer to https://github.com/anthonyng2/ib It is third party python file that you may directly code

from IBWrapper import IBWrapper, contract

You need to download the IBWrapper.py file and copy it into your python library path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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