def market_value(self):
        """
        [float] 市值
        """
        return sum(position.market_value for position in six.itervalues(self._positions))
def market_value ( self ) : return sum ( position . market_value for position in six . itervalues ( self . _positions ) )
[float] 市值