Blog Archives

Sample code: place orders and check how many shares in positions

Placing orders and checking how many shares in your account is a common step in algorithm trading programs. This sample code is to provide users an example about placing orders and then checking how many shares of each position in

Posted in Sample Code

A sample code to show how to get historical data for VIX

The following sample code is to get historical data for VIX from Interactive Brokers if the user has the subscription to VIX at IB. The function of superSymbol ( ) is to define the security. data.history ( ) has the same

Posted in Sample Code