grid2: log submitOrder

This commit is contained in:
c9s 2022-12-03 15:17:31 +08:00
parent c0573210b3
commit d5cf1a7311
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -126,7 +126,7 @@ func (s *Strategy) InstanceID() string {
}
func (s *Strategy) handleOrderFilled(o types.Order) {
s.logger.Infof("order filled: %s", o.String())
s.logger.Infof("GRID ORDER FILLED: %s", o.String())
// check order fee
newSide := types.SideTypeSell
@ -160,6 +160,8 @@ func (s *Strategy) handleOrderFilled(o types.Order) {
Quantity: newQuantity,
}
s.logger.Infof("SUBMIT ORDER: %s", orderForm.String())
if createdOrders, err := s.orderExecutor.SubmitOrders(context.Background(), orderForm); err != nil {
s.logger.WithError(err).Errorf("can not submit arbitrage order")
} else {