erdewit / ib_insync

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

How to use the right precision for buying stock using ib_insync? #254

Closed kootenpv closed 4 years ago

kootenpv commented 4 years ago

It's unclear to me how to ensure I don't specify too many but also not too little precision when placing an order?

erdewit commented 4 years ago

That can be done with ib.reqMarketRule.