def buy_margin(self):
        """
        [float] 买方向保证金
        """
        return sum(position.buy_margin for position in six.itervalues(self._positions))
def buy_margin ( self ) : return sum ( position . buy_margin for position in six . itervalues ( self . _positions ) )
[float] 买方向保证金