这是一个一定会成交,并且立刻结转(及t+0)的交易入口

def make_deal(self, code, datetime, amount=100, towards=ORDER_DIRECTION.BUY, price=0, order_model=ORDER_MODEL.MARKET, amount_model=AMOUNT_MODEL.BY_AMOUNT):
        """
        这是一个一定会成交,并且立刻结转(及t+0)的交易入口
        """
        self.account.receive_deal(self.backtest_broker.receive_order(QA_Event(order=self.account.send_order(
            code=code, time=datetime, amount=amount, towards=towards, price=price, order_model=order_model, amount_model=amount_model
        ))))
        self.account.settle()