We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5cd5aa + f8175a9 commit 80ed46eCopy full SHA for 80ed46e
pkg/bbgo/interact.go
@@ -147,7 +147,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
147
position := reader.CurrentPosition()
148
if position == nil || position.Base.IsZero() {
149
reply.Message(fmt.Sprintf("Strategy %q has no opened position", signature))
150
- return fmt.Errorf("strategy %T has no opened position", strategy)
+ return nil
151
}
152
153
reply.Send("Your current position:")
0 commit comments