diff --git a/pkg/bbgo/interact.go b/pkg/bbgo/interact.go index d39cff261..133c1b13f 100644 --- a/pkg/bbgo/interact.go +++ b/pkg/bbgo/interact.go @@ -147,7 +147,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) { position := reader.CurrentPosition() if position == nil || position.Base.IsZero() { reply.Message(fmt.Sprintf("Strategy %q has no opened position", signature)) - return fmt.Errorf("strategy %T has no opened position", strategy) + return nil } reply.Send("Your current position:")