'generated source for method cancelCalculateImpliedVolatility'

@synchronized(mlock)
def cancelCalculateImpliedVolatility(self, reqId):

    if (not self.m_connected):
        self.notConnected()
        return
    if (self.m_serverVersion < self.MIN_SERVER_VER_CANCEL_CALC_IMPLIED_VOLAT):
        self.error(reqId, EClientErrors.UPDATE_TWS, '        It    does    not    support    calculate    implied    volatility    cancellation.')
        return
    VERSION = 1
    try:
        self.send(self.CANCEL_CALC_IMPLIED_VOLAT)
        self.send(VERSION)
        self.send(reqId)
    except Exception as e:
        self.error(reqId, EClientErrors.FAIL_SEND_CANCALCIMPLIEDVOLAT, str(e))
        self.close()
