def setCapital(self,capital):
        if len(capital) != self.histPrice.shape[1]:
            raise AttributeError('Wrong size of shares vector.')
        self.params['capital'] = capital
        self.params['shares'] = self.params['capital']/self.params['last']
Un-escapes an XML-escaped string.
dataset/ETHPy150Open cmorgan/trading-with-python/lib/classes.py/Portfolio.setCapital--crossover with--dataset/ETHPy150Open limodou/uliweb/uliweb/core/template.py/xhtml_unescape