'generated source for method cancelCalculateOptionPrice'

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

    if (not self.m_connected):
        self.notConnected()
        return
    if (self.m_serverVersion < self.MIN_SERVER_VER_CANCEL_CALC_OPTION_PRICE):
        self.error(reqId, EClientErrors.UPDATE_TWS, '        It    does    not    support    calculate    option    price    cancellation.')
        return
    VERSION = 1
    try:
        self.send(self.CANCEL_CALC_OPTION_PRICE)
        self.send(VERSION)
        self.send(reqId)
    except Exception as e:
        self.error(reqId, EClientErrors.FAIL_SEND_CANCALCOPTIONPRICE, str(e))
        self.close()
