【How 2】 Set Up Trading API Template In Python — Placing orders with Interactive Brokers

Michael Hsia
9 min readDec 13, 2022

This is the second part of the Set Up Trading API Template In Python. We’re going to focus on implementing the rest of the functions in our Interactive Broker class.

Previous researches

Recap and what’s the next

In the previous post, we get to know how our trading script sends API calls to the IBKR API service via the IB gateway. Also, we have learned how to configure the IB gateway application. Lastly, we also showcase the code snippet to get…

--

--

Michael Hsia

A quant trader who loves researching and technology and rock n' roll