mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
bbgo: notify closing position
This commit is contained in:
parent
6c22c3799e
commit
5c18bc4d41
|
@ -257,8 +257,11 @@ func (e *GeneralOrderExecutor) ClosePosition(ctx context.Context, percentage fix
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("closing %s position with tags: %v", e.symbol, tags)
|
tagStr := strings.Join(tags, ",")
|
||||||
submitOrder.Tag = strings.Join(tags, ",")
|
submitOrder.Tag = tagStr
|
||||||
|
|
||||||
|
Notify("closing %s position %s with tags: %v", e.symbol, percentage.Percentage(), tagStr)
|
||||||
|
|
||||||
_, err := e.SubmitOrders(ctx, *submitOrder)
|
_, err := e.SubmitOrders(ctx, *submitOrder)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user