From 5f942e85ed4a9a65676013bec1e6d2db01fffa8c Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 15 Jan 2022 03:13:30 +0800 Subject: [PATCH] bbgo: show position with plaintext mode instead of string format --- pkg/bbgo/interact.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bbgo/interact.go b/pkg/bbgo/interact.go index c44c21eaa..ec0327085 100644 --- a/pkg/bbgo/interact.go +++ b/pkg/bbgo/interact.go @@ -76,7 +76,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) { position := reader.CurrentPosition() if position != nil { reply.Send("Your current position:") - reply.Send(position.String()) + reply.Send(position.PlainText()) if position.Base == 0 { reply.Message(fmt.Sprintf("Strategy %q has no opened position", signature)) @@ -125,7 +125,7 @@ func (it *CoreInteraction) Commands(i *interact.Interact) { position := reader.CurrentPosition() if position != nil { reply.Send("Your current position:") - reply.Send(position.String()) + reply.Send(position.PlainText()) if position.Base == 0 { reply.Message("No opened position")