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.
fengokStop-loss functionality is different for each exchange, specifically you can use the io function to hang the stop-loss functionality.
The grasshttps://www.fmz.com/strategy/121081 Refer to this public bot