[fix] notify post cancel order
This commit is contained in:
parent
2288f0ffe2
commit
de167972ac
|
@ -310,6 +310,9 @@ func (s *Strategy) notifyProfit(ctx context.Context, symbol string) {
|
|||
s.EndTrade[symbol] = []types.Trade{}
|
||||
s.OpenQuantity[symbol] = fixedpoint.Value(0)
|
||||
s.EndQuantity[symbol] = fixedpoint.Value(0)
|
||||
|
||||
// 记得取消订单
|
||||
s.cancelOrders(ctx, symbol)
|
||||
}
|
||||
func (s *Strategy) Run(ctx context.Context, orderExecutor qbtrade.OrderExecutor, session *qbtrade.ExchangeSession) error {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user