I use
exchange.SetDirection('buy') exchange.Buy(50,1) # 想下限价止损单 exchage.SetDirection('closebuy') exchange.Sell(45,1) # 此时会立刻成交
Hopefully, God will give us a code that works.