'generated source for method reqMarketDataType'

@synchronized(mlock)
def reqMarketDataType(self, marketDataType):

    if (not self.m_connected):
        self.notConnected()
        return
    if (self.m_serverVersion < self.MIN_SERVER_VER_REQ_MARKET_DATA_TYPE):
        self.error(EClientErrors.NO_VALID_ID, EClientErrors.UPDATE_TWS, '        It    does    not    support    marketDataType    requests.')
        return
    VERSION = 1
    try:
        self.send(self.REQ_MARKET_DATA_TYPE)
        self.send(VERSION)
        self.send(marketDataType)
    except Exception as e:
        self.error(EClientErrors.NO_VALID_ID, EClientErrors.FAIL_SEND_REQMARKETDATATYPE, str(e))
        self.close()
