Пример #1
0
    def get_current_mulfix(self):
        """
        get ``xa.mulfix`` of the whole setup

        :return:
        """
        if self.trades:
            return mulfix(*[v for _, v in self.trades.items()],
                          totmoney=self.totmoney)
        else:
            return
Пример #2
0
    def get_current_mulfix(self, totmoney=None):
        """
        get ``xa.mulfix`` of the whole setup

        :return:
        """
        if self.trades:
            if totmoney is None:
                totmoney = self.totmoney
            return mulfix(*[v for _, v in self.trades.items()],
                          totmoney=totmoney,
                          cashobj=cashinfo(start=self.start))
        else:
            return