'generated source for method updatePortfolio'

@classmethod
def updatePortfolio(cls, contract, position, marketPrice, marketValue, averageCost, unrealizedPNL, realizedPNL, accountName):

    msg = (((((((((((((('updatePortfolio:    ' + cls.contractMsg(contract)) + str(position)) + '    ') + str(marketPrice)) + '    ') + str(marketValue)) + '    ') + str(averageCost)) + '    ') + str(unrealizedPNL)) + '    ') + str(realizedPNL)) + '    ') + accountName)
    return msg
