From de167972ac6c2d42be2c5352c7e36b18d488da4c Mon Sep 17 00:00:00 2001 From: ying liu Date: Mon, 29 Jul 2024 18:37:37 +0800 Subject: [PATCH] [fix] notify post cancel order --- pkg/strategy/ccinr/strategy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/strategy/ccinr/strategy.go b/pkg/strategy/ccinr/strategy.go index 2cbcfef..18d927d 100644 --- a/pkg/strategy/ccinr/strategy.go +++ b/pkg/strategy/ccinr/strategy.go @@ -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 {