This is an IB forum. Some of "what you are doing wrong" may have to do with IB's API symbology or data source. Based on the responses, I think it is important to clear up that the VIX is an index. The VIX is not a tradeable symbol. The CBOE trades VIX options only. The CFE, owned by the CBOE offers VX futures only. It is possible that the data feed for VX futures comes from the CBOE and not the CFE. I'm not a coder and you never showed the error. From line 333 to 339, I do not see anything obviously wrong.