def record(self, direction, price, quantity):
        if direction:
            self.stocks -= quantity
            self.money += quantity*price
        else:
            self.stocks += quantity
            self.money -= quantity*price
        self.prevorder = [price, True]
Record transaction
dataset/ETHPy150Open jcbagneris/fms/fms/contrib/coleman/agents/probeadjustbstrader.py/ProbeAdjustBSTrader.record