'generated source for method cancelRealTimeBars'

def cancelRealTimeBars(self, tickerId):

    if (not self.m_connected):
        self.notConnected()
        return
    if (self.m_serverVersion < self.MIN_SERVER_VER_REAL_TIME_BARS):
        self.error(EClientErrors.NO_VALID_ID, EClientErrors.UPDATE_TWS, '        It    does    not    support    realtime    bar    data    query    cancellation.')
        return
    VERSION = 1
    try:
        self.send(self.CANCEL_REAL_TIME_BARS)
        self.send(VERSION)
        self.send(tickerId)
    except Exception as e:
        self.error(tickerId, EClientErrors.FAIL_SEND_CANRTBARS, str(e))
        self.close()
