mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: log submitOrder
This commit is contained in:
parent
c0573210b3
commit
d5cf1a7311
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user