erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.81k stars 754 forks source link

this is a great project that i am looking for #90

Closed viponedream closed 6 years ago

viponedream commented 6 years ago

i make people to use the ibapi easyly. how can to add this to another trade system?

https://github.com/vnpy/ this is one has a easy system to trade to, also easy to add more gateway, can anyone to add ib_insync as vnpy's gateway?

viponedream commented 6 years ago

i add some fun in that gateway. when i run reqContractDetails or qualifyContracts to get the contract by using your frame, when it return in contractDetails, a error happen

return dict[key]

KeyError: 'contract' During handling of the above exception, another exception occurred: return getattr(dict, key) AttributeError: 'dict' object has no attribute 'contract' return getattr(dict, key) AttributeError: 'dict' object has no attribute 'future'

but i use in normal way without asyncio, it return well.