def makeStkContract(contractTuple):
    newContract = Contract()
    newContract.m_symbol = contractTuple[0]
    newContract.m_secType = contractTuple[1]
    newContract.m_exchange = contractTuple[2]
    newContract.m_currency = contractTuple[3]
   
    print contractTuple % 'Contract Values:%s,%s,%s,%s:'
    return newContract
dataset/ETHPy150Open cmorgan/trading-with-python/cookbook/connectToTWS.py/makeStkContract/swapped operands of `%`