xmaker: remove duplicated log entry

This commit is contained in:
c9s 2024-08-24 12:13:44 +08:00
parent 5ca1c4fb62
commit e8bd370aa2
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -587,7 +587,6 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
s.hedgeErrorRateReservation = nil s.hedgeErrorRateReservation = nil
} }
log.Infof("submitting %s hedge order %s %v", s.Symbol, side.String(), quantity)
bbgo.Notify("Submitting %s hedge order %s %v", s.Symbol, side.String(), quantity) bbgo.Notify("Submitting %s hedge order %s %v", s.Symbol, side.String(), quantity)
submitOrders := []types.SubmitOrder{ submitOrders := []types.SubmitOrder{
@ -603,7 +602,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
formattedOrders, err := s.sourceSession.FormatOrders(submitOrders) formattedOrders, err := s.sourceSession.FormatOrders(submitOrders)
if err != nil { if err != nil {
log.WithError(err).Errorf("unable to format orders") log.WithError(err).Errorf("unable to format hedge orders")
return return
} }