'generated source for method cancelOrder'

@synchronized(mlock)
def cancelOrder(self, id):

    if (not self.m_connected):
        self.notConnected()
        return
    VERSION = 1
    try:
        self.send(self.CANCEL_ORDER)
        self.send(VERSION)
        self.send(id)
    except Exception as e:
        self.error(id, EClientErrors.FAIL_SEND_CORDER, str(e))
        self.close()
