[fix] notify post cancel order

This commit is contained in:
ying liu 2024-07-29 18:37:37 +08:00
parent 2288f0ffe2
commit de167972ac

View File

@ -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 {